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