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