Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-WmiObject Win32_OperatingSystem
Get-ADUser -Filter 'Enabled -eq True'
Add-Content -Path C:\Scripts\deploy.ps1 -Value '# Deployment script updated'
Get-SmbSession
Get-EventLog -LogName Application -Newest 50
Get-Service -Name WinRM | Format-List *
Get-EventLog -LogName Security -InstanceId 4625 -Newest 50
New-Item -Path C:\Temp -ItemType Directory
Add-Content -Path C:\Scripts\deploy.ps1 -Value '# Deployment script updated'
Get-EventLog -List
Start-Sleep -Seconds 10
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
hostname
Get-EventLog -LogName Security -InstanceId 4624 -Newest 100
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
New-Item -Path C:\Temp -ItemType Directory
Get-ADPrincipalGroupMembership svc_backup
Get-Counter '\Processor(_Total)\% Processor Time'
New-Item -Path C:\Temp -ItemType Directory
Get-WinEvent -ListLog * | Where-Object { $_.RecordCount -gt 0 }
Get-EventLog -LogName Application -Newest 50
Get-Process | Sort-Object CPU -Descending | Select-Object -First 20
Get-ADGroup -Filter *
Get-EventLog -LogName Security -InstanceId 4625 -Newest 50
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-NetFirewallRule | Where-Object { $_.Enabled -eq 'True' }
Get-ADOrganizationalUnit -Filter *
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-Process | Where-Object { $_.CPU -gt 100 }
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-ADGroupMember 'Domain Admins'
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-NetIPAddress
Start-Sleep -Seconds 10
Get-Process -Name powershell
Get-Acl -Path 'AD:\OU=BadOU,DC=novatech,DC=local'
cls
Get-ScheduledTask
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Test-Connection -ComputerName dc01.novatech.local
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-EventLog -LogName Security -InstanceId 4624 -Newest 100
Get-NetFirewallRule | Where-Object { $_.Enabled -eq 'True' }
Get-ADPrincipalGroupMembership svc_backup
Get-Service | Where-Object { $_.Name -like '*Splunk*' }
Get-HotFix -Id KB5005565
Get-Process | Where-Object { $_.CPU -gt 100 }
Set-Location C:\Temp
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-EventLog -LogName Security -InstanceId 4624 -Newest 100
Get-ProcessMitigation -Name powershell.exe
hostname
Get-SmbSession
Get-Content C:\Scripts\deploy.ps1
Get-ADServiceAccount -Filter *
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-WmiObject Win32_Service | Where-Object { $_.StartMode -eq 'Auto' }
Get-LocalGroupMember -Group 'Administrators'
Copy-Item -Path C:\Temp\* -Destination Z:\Backup\
Get-NetFirewallRule | Where-Object { $_.Enabled -eq 'True' }
ipconfig /all
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Disconnect-PSDrive Z
Get-ADUser -Filter *
cls
Get-Service | Where-Object { $_.Status -eq 'Running' }
Get-ADServiceAccount -Filter *
Get-Acl -Path 'AD:\OU=BadOU,DC=novatech,DC=local'
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-WinEvent -LogName Security -MaxEvents 10000 | Export-Csv -Path C:\Splunk\Logs\Security_$(Get-Date -Format 'yyyyMMdd').csv
Import-Module ActiveDirectory
Get-EventLog -LogName System -Newest 50
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-ADServiceAccount -Filter * -Properties *
Get-Content C:\Scripts\deploy.ps1
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-SmbShare
Get-WmiObject Win32_Service | Where-Object { $_.StartMode -eq 'Auto' }
Get-WinEvent -LogName Application -MaxEvents 5000 | Export-Csv -Path C:\Splunk\Logs\Application.csv
Get-Credential
Get-EventLog -LogName System -Newest 50
Get-SmbShare
Get-NetFirewallProfile
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-NetTCPConnection | Where-Object { $_.State -eq 'Established' }
New-Item -Path C:\Temp -ItemType Directory
Get-ADServiceAccount -Filter *
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-NetIPAddress
Get-Date
Get-EventLog -LogName Security -InstanceId 4625 -Newest 50
systeminfo
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-EventLog -LogName System -Newest 50
Get-Content C:\Users\svc_backup\AppData\Local\Temp\deploy.log
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-EventLog -LogName Application -Newest 50
New-PSDrive -Name Z -PSProvider FileSystem -Root \\DC01\SYSVOL
Get-CimInstance -ClassName Win32_QuickFixEngineering
Disconnect-PSDrive Z
Get-FileHash -Path C:\Windows\System32\notepad.exe -Algorithm SHA256
Import-Module ActiveDirectory
