Get-EventLog -LogName System -Newest 50
Get-Date
Get-Content C:\\Scripts\\deploy.ps1
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-EventLog -LogName Application -Newest 50
Restart-Service -Name 'WinRM'
Get-ADComputer -Filter *
ipconfig /all
Get-WmiObject Win32_OperatingSystem
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-CimInstance -ClassName Win32_QuickFixEngineering
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-Service | Where-Object {.Name -like '*crypt*'}
Set-Location C:\\Temp
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-ScheduledTask
cls
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-NetIPAddress
Get-ChildItem -Recurse C:\\Scripts\\
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-SmbOpenFile
Get-ADServiceAccount -Filter * -Properties *
Get-SmbOpenFile
whoami
Get-WmiObject Win32_OperatingSystem
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-NTFSAccess -Path C:\\SYSVOL
Get-ChildItem -Recurse C:\\Scripts\\
Get-Credential
systeminfo
Get-ADGroupMember 'Domain Admins'
Get-Content C:\\Scripts\\deploy.ps1
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-SmbOpenFile
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
cls
Get-ADPrincipalGroupMembership svc_backup
Disconnect-PSDrive Z
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-Process -Name powershell
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
whoami
Get-NTFSAccess -Path C:\\SYSVOL
Get-HotFix -Id KB5005565
systeminfo
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-Command -Module ActiveDirectory
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Test-NetConnection google.com
Set-Location C:\\Temp
Test-Connection -ComputerName dc01.novatech.local
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-ADOrganizationalUnit -Filter *
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-ScheduledTask
Get-Credential
Set-ExecutionPolicy RemoteSigned -Scope Process
systeminfo
Get-ADComputer -Filter *
Get-ADObject -LDAPFilter '(objectCategory=computer)'
whoami
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Disconnect-PSDrive Z
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
New-Item -Path C:\\Temp -ItemType Directory
Restart-Service -Name 'WinRM'
ipconfig /all
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-Date
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Restart-Service -Name 'WinRM'
Get-Process | Where-Object {.CPU -gt 100}
Get-ProcessMitigation -Name powershell.exe
Get-ProcessMitigation -Name powershell.exe
Remove-Item C:\\Temp\\old_log.log -Force
Get-ADUser -Filter 'Enabled -eq True'
Get-NetIPAddress
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-HotFix -Id KB5005565
hostname
Get-Credential
Get-ChildItem -Recurse C:\\Scripts\\
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-ADComputer -Filter *
Remove-Item C:\\Temp\\old_log.log -Force
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Set-Location C:\\Temp
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-Content C:\\Scripts\\deploy.ps1
Get-EventLog -LogName Application -Newest 50
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Import-Module ActiveDirectory
Get-Date
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-Command -Module ActiveDirectory
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-ADPrincipalGroupMembership svc_backup
Get-NTFSAccess -Path C:\\SYSVOL
Get-Process | Where-Object {.CPU -gt 100}
Disconnect-PSDrive Z
Get-LocalGroupMember -Group 'Administrators'
Get-ADOrganizationalUnit -Filter *
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-ProcessMitigation -Name powershell.exe
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-ScheduledTask
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
