Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-ADServiceAccount -Filter * -Properties *
Get-Command -Module ActiveDirectory
Get-ADServiceAccount -Filter * -Properties *
Get-HotFix | Sort-Object InstalledOn -Descending
Start-Sleep -Seconds 10
Get-CimInstance -ClassName Win32_QuickFixEngineering
Start-Sleep -Seconds 10
Get-ADGroupMember 'Domain Admins'
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Restart-Service -Name 'WinRM'
Get-Credential
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
whoami
Set-ExecutionPolicy RemoteSigned -Scope Process
hostname
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Test-Connection -ComputerName dc01.novatech.local
Import-Module ActiveDirectory
Disconnect-PSDrive Z
Get-Process | Where-Object { $_.CPU -gt 100 }
Get-EventLog -LogName Application -Newest 50
Get-EventLog -LogName Application -Newest 50
Get-ADComputer -Filter *
Get-ADPrincipalGroupMembership svc_backup
Set-Location C:\Temp
Import-Module ActiveDirectory
Get-Process | Where-Object { $_.CPU -gt 100 }
Import-Module WebAdministration
New-Item -Path C:\Temp -ItemType Directory
klist
Get-IISSite
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Disconnect-PSDrive Z
Get-HotFix -Id KB5005565
Get-ADServiceAccount -Filter *
ipconfig /all
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-LocalGroupMember -Group 'Administrators'
Get-Website
Start-Sleep -Seconds 10
Get-EventLog -LogName System -Newest 50
Import-Module ActiveDirectory
Get-ADServiceAccount -Filter *
Get-LocalGroupMember -Group 'Administrators'
Get-Process -Name powershell
Get-ADServiceAccount -Filter * -Properties *
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
klist
Get-Service -Name WinRM | Format-List *
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-NetFirewallRule | Where-Object { $_.Enabled -eq 'True' }
Get-Date
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Restart-Service -Name 'WinRM'
Get-NetIPAddress
Restart-Service -Name 'WinRM'
Set-Location C:\Temp
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
whoami
Get-Acl -Path 'AD:\OU=BadOU,DC=novatech,DC=local'
whoami
Remove-Item C:\Temp\old_log.log -Force
Test-Connection -ComputerName dc01.novatech.local
cls
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-ADOrganizationalUnit -Filter *
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-ADUser svc_backup -Properties lastLogonTimestamp
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-ADUser -Filter 'Enabled -eq True'
Get-HotFix -Id KB5005565
Get-ADServiceAccount -Filter * -Properties *
Get-ADComputer -Filter *
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-ADOrganizationalUnit -Filter *
Start-Sleep -Seconds 10
Get-EventLog -LogName Security -InstanceId 4624 -Newest 100
Copy-Item -Path C:\Temp\* -Destination Z:\Backup\
Get-NetFirewallProfile
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Set-Location C:\Temp
Get-NetIPAddress
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-EventLog -LogName System -Newest 50
Get-ScheduledTask
Remove-Item C:\Temp\old_log.log -Force
Copy-Item -Path C:\Temp\* -Destination Z:\Backup\
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-ADGroupMember 'Domain Admins'
Get-Acl -Path 'AD:\OU=BadOU,DC=novatech,DC=local'
Get-Content C:\Users\svc_backup\AppData\Local\Temp\deploy.log
whoami
Get-Service -Name W3SVC
Get-ChildItem -Recurse C:\Scripts\
Get-ADGroup -Filter *
Get-Command -Module ActiveDirectory
Get-WebAppPoolState -Name 'DefaultAppPool'
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Remove-Item C:\Temp\old_log.log -Force
Get-WebBinding
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-ScheduledTask
Get-NTFSAccess -Path C:\SYSVOL
Remove-Item C:\Temp\old_log.log -Force
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Restart-Service -Name 'WinRM'
Set-Location C:\Temp
Test-Connection -ComputerName dc01.novatech.local
Get-Service -Name WinRM | Format-List *
Get-EventLog -LogName Application -Newest 50
Get-ADComputer -Filter *
Disconnect-PSDrive Z
Get-LocalGroupMember -Group 'Administrators'
Restart-Service -Name 'WinRM'
Get-NTFSAccess -Path C:\SYSVOL
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-ADGroup -Filter *
Get-EventLog -LogName Application -Newest 50
Get-NetIPAddress
