Get-ADServiceAccount -Filter * -Properties *
Get-FileHash -Path C:\Windows\System32\notepad.exe -Algorithm SHA256
Get-Command -Module ActiveDirectory
Get-HotFix -Id KB5005565
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-NetFirewallRule | Where-Object { $_.Enabled -eq 'True' }
Import-Module ActiveDirectory
Get-FileHash -Path C:\Windows\System32\notepad.exe -Algorithm SHA256
Get-WmiObject Win32_Service | Where-Object { $_.StartMode -eq 'Auto' }
Restart-Service -Name 'WinRM'
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-ScheduledTask
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-Process -Name powershell
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Set-Location C:\Temp
Get-HotFix | Sort-Object InstalledOn -Descending
Get-ChildItem -Recurse C:\Scripts\
Get-SmbOpenFile
Get-Service | Where-Object { $_.Name -like '*crypt*' }
Get-SmbShare
Get-ADServiceAccount -Filter *
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-WmiObject Win32_OperatingSystem
Get-EventLog -LogName Security -InstanceId 4625 -Newest 50
Get-Service -Name WinRM | Format-List *
Import-Module ActiveDirectory
New-PSDrive -Name Z -PSProvider FileSystem -Root \\DC01\SYSVOL
Get-LocalGroupMember -Group 'Administrators'
hostname
Get-ADServiceAccount -Filter * -Properties *
Test-Connection -ComputerName dc01.novatech.local
Get-ADComputer -Filter *
Add-Content -Path C:\Scripts\deploy.ps1 -Value '# Deployment script updated'
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-WmiObject Win32_Service | Where-Object { $_.StartMode -eq 'Auto' }
hostname
Get-SmbShare
Get-EventLog -LogName Security -InstanceId 4625 -Newest 50
Get-ADUser -Filter 'Enabled -eq True'
Get-Service | Where-Object { $_.Name -like '*SMS*' }
Get-Content C:\Users\svc_backup\AppData\Local\Temp\deploy.log
Get-Date
hostname
Get-Command -Module ActiveDirectory
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-ProcessMitigation -Name powershell.exe
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-Service | Where-Object { $_.Name -like '*crypt*' }
Get-EventLog -LogName System -Newest 50
whoami
Get-EventLog -LogName Security -InstanceId 4624 -Newest 100
Get-Credential
Get-Service -Name WinRM | Format-List *
Get-EventLog -LogName System -Newest 50
Remove-Item C:\Temp\old_log.log -Force
Get-ProcessMitigation -Name powershell.exe
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-CMSoftwareUpdate
Get-SmbSession
Set-Location C:\Temp
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-WmiObject Win32_Service | Where-Object { $_.StartMode -eq 'Auto' }
Remove-Item C:\Temp\old_log.log -Force
Get-EventLog -LogName Security -InstanceId 4625 -Newest 50
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-LocalGroupMember -Group 'Administrators'
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
whoami
Get-SmbOpenFile
Get-Process | Where-Object { $_.CPU -gt 100 }
Get-NTFSAccess -Path C:\SYSVOL
Get-NetIPAddress
Get-Service -Name WinRM | Format-List *
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-ADUser -Filter *
Get-EventLog -LogName System -Newest 50
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-Content C:\Users\svc_backup\AppData\Local\Temp\deploy.log
Get-Content C:\Scripts\deploy.ps1
Disconnect-PSDrive Z
Get-LocalGroupMember -Group 'Administrators'
Get-CMCollection
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Test-Connection -ComputerName sccm.novatech.local
Get-ADGroupMember 'Domain Admins'
Get-EventLog -LogName Application -Newest 50
Get-FileHash -Path C:\Windows\System32\notepad.exe -Algorithm SHA256
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-ADUser -Filter 'Enabled -eq True'
Get-Acl -Path 'AD:\OU=BadOU,DC=novatech,DC=local'
Get-FileHash -Path C:\Windows\System32\notepad.exe -Algorithm SHA256
Get-NTFSAccess -Path C:\SYSVOL
Get-NetFirewallRule | Where-Object { $_.Enabled -eq 'True' }
Test-Connection -ComputerName dc01.novatech.local
Get-ADServiceAccount -Filter *
Get-HotFix | Sort-Object InstalledOn -Descending
Get-Process -Name powershell
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-FileHash -Path C:\Windows\System32\notepad.exe -Algorithm SHA256
Get-CMDevice | Measure-Object
Get-ADComputer -Filter *
Get-ADGroupMember 'Domain Admins'
Get-SmbSession
Restart-Service -Name 'WinRM'
Get-Service | Where-Object { $_.Status -eq 'Running' }
New-Item -Path C:\Temp -ItemType Directory
Get-ADUser -Filter *
Get-Acl -Path 'AD:\OU=BadOU,DC=novatech,DC=local'
Get-ADPrincipalGroupMembership svc_backup
Remove-Item C:\Temp\old_log.log -Force
Test-Connection -ComputerName dc01.novatech.local
Get-Credential
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
ipconfig /all
whoami
Get-ChildItem -Recurse C:\Scripts\
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Remove-Item C:\Temp\old_log.log -Force
Get-ADUser -Filter 'Enabled -eq True'
Get-SmbOpenFile
Get-FileHash -Path C:\Windows\System32\notepad.exe -Algorithm SHA256
Get-ADGroupMember 'Domain Admins'
Test-Connection -ComputerName dc01.novatech.local
Get-WmiObject Win32_OperatingSystem
Get-ADUser -Filter *
Import-Module ActiveDirectory
Get-HotFix -Id KB5005565
Restart-Service -Name 'WinRM'
Get-ADServiceAccount -Filter *
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-CMApplication
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-ADOrganizationalUnit -Filter *
Get-ADUser svc_backup -Properties lastLogonTimestamp
klist
Get-Date
klist
Get-ADOrganizationalUnit -Filter *
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Restart-Service -Name 'WinRM'
Get-FileHash -Path C:\Windows\System32\notepad.exe -Algorithm SHA256
Get-SmbShare
Get-LocalGroupMember -Group 'Administrators'
New-PSDrive -Name Z -PSProvider FileSystem -Root \\DC01\SYSVOL
Get-EventLog -LogName Application -Newest 50
Get-Process -Name powershell
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-Command -Module ActiveDirectory
Import-Module ActiveDirectory
