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