Get-NetFirewallRule | Where-Object { $_.Enabled -eq 'True' }
Get-ADOrganizationalUnit -Filter *
Get-ADUser -Filter 'Enabled -eq True'
Get-Date
Get-HotFix | Sort-Object InstalledOn -Descending
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
New-Item -Path C:\Temp -ItemType Directory
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-FileHash -Path C:\Windows\System32\notepad.exe -Algorithm SHA256
whoami
Get-ScheduledTask
Get-Service | Where-Object { $_.Name -like '*crypt*' }
Get-Service | Where-Object { $_.Status -eq 'Running' }
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-ADComputer -Filter *
Get-ChildItem -Recurse C:\Scripts\
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Remove-Item C:\Temp\old_log.log -Force
Remove-Item C:\Temp\old_log.log -Force
Get-EventLog -LogName Security -InstanceId 4625 -Newest 50
Set-Location C:\Temp
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-WmiObject -Class Win32_Process | Where-Object { $_.Name -like '*spoolsv*' }
Get-Content C:\Scripts\deploy.ps1
Disconnect-PSDrive Z
Get-Content C:\Scripts\deploy.ps1
Get-WmiObject -Class Win32_Printer
Restart-Service -Name 'WinRM'
Remove-Item C:\Temp\old_log.log -Force
Get-EventLog -LogName Security -InstanceId 4625 -Newest 50
Get-ADUser -Filter *
Get-SmbOpenFile
Set-Location C:\Temp
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Set-Location C:\Temp
Get-ProcessMitigation -Name powershell.exe
Get-ADServiceAccount -Filter * -Properties *
New-Item -Path C:\Temp -ItemType Directory
Get-WmiObject Win32_OperatingSystem
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-ADGroupMember 'Domain Admins'
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-PrintJob -PrinterName *
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Remove-Item C:\Temp\old_log.log -Force
Get-ChildItem -Recurse C:\Scripts\
Remove-Item C:\Temp\old_log.log -Force
Get-WmiObject Win32_OperatingSystem
Get-Content C:\Scripts\deploy.ps1
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-Service | Where-Object { $_.Name -like '*crypt*' }
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-EventLog -LogName System -Newest 50
hostname
hostname
ipconfig /all
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-Content C:\Scripts\deploy.ps1
Get-Acl -Path 'AD:\OU=BadOU,DC=novatech,DC=local'
Restart-Service -Name Spooler
Get-ADGroupMember 'Domain Admins'
Get-ADComputer -Filter *
Get-SmbOpenFile
Restart-Service -Name 'WinRM'
New-PSDrive -Name Z -PSProvider FileSystem -Root \\DC01\SYSVOL
Get-PrinterDriver
Get-NetIPAddress
Get-LocalGroupMember -Group 'Administrators'
Get-SmbShare
New-PSDrive -Name Z -PSProvider FileSystem -Root \\DC01\SYSVOL
Get-Printer
Get-WmiObject Win32_Service | Where-Object { $_.StartMode -eq 'Auto' }
Test-Connection -ComputerName dc01.novatech.local
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
cls
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-EventLog -LogName Security -InstanceId 4625 -Newest 50
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-WmiObject Win32_OperatingSystem
Start-Sleep -Seconds 10
Start-Sleep -Seconds 10
Get-NetIPAddress
Add-Content -Path C:\Scripts\deploy.ps1 -Value '# Deployment script updated'
klist
Get-Service | Where-Object { $_.Name -like '*crypt*' }
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-Acl -Path 'AD:\OU=BadOU,DC=novatech,DC=local'
Import-Module ActiveDirectory
Get-FileHash -Path C:\Windows\System32\notepad.exe -Algorithm SHA256
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-Process | Where-Object { $_.CPU -gt 100 }
Get-Service | Where-Object { $_.Name -like '*crypt*' }
Get-ADServiceAccount -Filter *
Get-Command -Module ActiveDirectory
New-PSDrive -Name Z -PSProvider FileSystem -Root \\DC01\SYSVOL
Get-ADUser -Filter *
Restart-Service -Name 'WinRM'
Get-Service -Name Spooler
Get-WmiObject Win32_Service | Where-Object { $_.StartMode -eq 'Auto' }
Get-Date
Get-SmbOpenFile
Get-EventLog -LogName System -Newest 50
Start-Sleep -Seconds 10
Import-Module ActiveDirectory
Get-ProcessMitigation -Name powershell.exe
Set-Location C:\Temp
Get-EventLog -LogName Security -InstanceId 4625 -Newest 50
Get-Content C:\Users\svc_backup\AppData\Local\Temp\deploy.log
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-ADUser svc_backup -Properties lastLogonTimestamp
whoami
Copy-Item -Path C:\Temp\* -Destination Z:\Backup\
Get-SmbOpenFile
