Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Disconnect-PSDrive Z
Get-NetFirewallRule | Where-Object { $_.Enabled -eq 'True' }
Get-ADGroup -Filter *
Get-NetFirewallProfile
Get-LocalGroupMember -Group 'Administrators'
Get-EventLog -LogName System -Newest 50
ipconfig /all
Get-EventLog -LogName Application -Newest 50
Get-ADServiceAccount -Filter * -Properties *
Get-SmbSession
Get-ScheduledTask
Get-EventLog -LogName Application -Newest 50
Start-Sleep -Seconds 10
Get-FileHash -Path C:\Windows\System32\notepad.exe -Algorithm SHA256
Get-ProcessMitigation -Name powershell.exe
Get-Service -Name WinRM | Format-List *
Get-WmiObject Win32_Service | Where-Object { $_.StartMode -eq 'Auto' }
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-Service | Where-Object { $_.Name -like '*SQL*' }
Get-SmbSession
Get-Service | Where-Object { $_.Status -eq 'Running' }
Remove-Item C:\Temp\old_log.log -Force
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-Service -Name WinRM | Format-List *
Get-Process | Where-Object { $_.CPU -gt 100 }
Get-ADServiceAccount -Filter *
Test-ADServiceAccount gmsa_finance
Get-Process | Where-Object { $_.CPU -gt 100 }
Get-SqlAgent -ServerInstance 'SRV-SQL01'
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Invoke-Sqlcmd -Query 'SELECT @@VERSION'
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-ADUser -Filter 'Enabled -eq True'
Get-NTFSAccess -Path C:\SYSVOL
Get-Service | Where-Object { $_.Name -like '*crypt*' }
New-PSDrive -Name Z -PSProvider FileSystem -Root \\DC01\SYSVOL
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-Command -Module ActiveDirectory
Get-NetIPAddress
Get-NTFSAccess -Path C:\SYSVOL
Get-HotFix | Sort-Object InstalledOn -Descending
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-Date
Get-NetFirewallRule | Where-Object { $_.Enabled -eq 'True' }
Get-HotFix -Id KB5005565
Copy-Item -Path C:\Temp\* -Destination Z:\Backup\
Get-SmbOpenFile
Remove-Item C:\Temp\old_log.log -Force
Copy-Item -Path C:\Temp\* -Destination Z:\Backup\
Get-ADServiceAccount -Filter *
Restart-Service -Name 'WinRM'
Get-ScheduledTask
systeminfo
Get-EventLog -LogName System -Newest 50
Get-CimInstance -ClassName Win32_QuickFixEngineering
Start-Sleep -Seconds 10
Get-WmiObject Win32_OperatingSystem
Get-ADComputer -Filter *
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-ChildItem -Recurse C:\Scripts\
Get-SmbShare
Get-NetFirewallProfile
Get-Acl -Path 'AD:\OU=BadOU,DC=novatech,DC=local'
Get-Date
Get-Content C:\Scripts\deploy.ps1
Get-ADUser svc_backup -Properties lastLogonTimestamp
Set-Location C:\Temp
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-SmbOpenFile
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-Content C:\Scripts\deploy.ps1
Get-ADPrincipalGroupMembership svc_backup
Get-ADUser -Filter *
Backup-SqlDatabase -ServerInstance 'SRV-SQL01' -Database 'NovaTech_Production'
Get-Credential
hostname
Test-Connection -ComputerName srv-sql01.novatech.local
Get-ADObject -LDAPFilter '(objectCategory=computer)'
hostname
Import-Module ActiveDirectory
Get-HotFix -Id KB5005565
Get-WmiObject Win32_Service | Where-Object { $_.StartMode -eq 'Auto' }
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-Content C:\Users\svc_backup\AppData\Local\Temp\deploy.log
Get-NetIPAddress
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-WmiObject Win32_OperatingSystem
hostname
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Disconnect-PSDrive Z
Get-ADUser -Filter *
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-EventLog -LogName Application -Newest 50
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-ADServiceAccount -Filter * -Properties ServicePrincipalNames | Select-Object Name,ServicePrincipalNames
Get-NetFirewallRule | Where-Object { $_.Enabled -eq 'True' }
Get-ADServiceAccount -Filter * | Where-Object { $_.Name -like '*sql*' }
Get-Process -Name powershell
Get-EventLog -LogName System -Newest 50
Get-ChildItem -Recurse C:\Scripts\
Get-NetIPAddress
Get-NetFirewallRule | Where-Object { $_.Enabled -eq 'True' }
Get-ADUser -Filter *
Get-ADComputer -Filter *
Get-FileHash -Path C:\Windows\System32\notepad.exe -Algorithm SHA256
Get-Service | Where-Object { $_.Status -eq 'Running' }
Get-ADGroupMember 'Domain Admins'
Get-Service | Where-Object { $_.Status -eq 'Running' }
Get-EventLog -LogName System -Newest 50
Get-ADUser -Filter *
Get-EventLog -LogName Security -InstanceId 4625 -Newest 50
Get-ChildItem -Recurse C:\Scripts\
Get-Service | Where-Object { $_.Name -like '*crypt*' }
ipconfig /all
Get-Content C:\Users\svc_backup\AppData\Local\Temp\deploy.log
Get-ADGroup -Filter *
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-NetFirewallProfile
Add-Content -Path C:\Scripts\deploy.ps1 -Value '# Deployment script updated'
Get-EventLog -LogName Application -Newest 50
Get-Process | Where-Object { $_.CPU -gt 100 }
Get-EventLog -LogName System -Newest 50
Get-ADGroup -Filter *
Remove-Item C:\Temp\old_log.log -Force
Disconnect-PSDrive Z
Get-Process -Name powershell
Get-Command -Module ActiveDirectory
Get-HotFix | Sort-Object InstalledOn -Descending
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-HotFix | Sort-Object InstalledOn -Descending
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-Process | Where-Object { $_.CPU -gt 100 }
Get-HotFix | Sort-Object InstalledOn -Descending
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-SqlDatabase -ServerInstance 'SRV-SQL01'
Get-ADServiceAccount gmsa_finance -Properties ServicePrincipalNames
Get-ScheduledTask
Get-NetFirewallProfile
Disconnect-PSDrive Z
klist
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Restart-Service -Name 'WinRM'
Get-Acl -Path 'AD:\OU=BadOU,DC=novatech,DC=local'
Get-NetFirewallProfile
Get-Date
whoami
Get-ADComputer -Filter *
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
whoami
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-EventLog -LogName Security -InstanceId 4624 -Newest 100
Restart-Service -Name 'WinRM'
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
