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