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