Get-Command -Module ActiveDirectory
Get-ScheduledTask
Get-ADUser -Filter 'Enabled -eq True'
Restart-Service -Name 'WinRM'
New-Item -Path C:\\Temp -ItemType Directory
Import-Module ActiveDirectory
Get-LocalGroupMember -Group 'Administrators'
Get-NetIPAddress
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-ProcessMitigation -Name powershell.exe
Get-Service | Where-Object {.Status -eq 'Running'}
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-EventLog -LogName System -Newest 50
Get-Process | Where-Object {.CPU -gt 100}
Get-EventLog -LogName Application -Newest 50
Get-LocalGroupMember -Group 'Administrators'
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-ADComputer -Filter *
systeminfo
Get-Process | Where-Object {.CPU -gt 100}
Get-ADUser svc_backup -Properties lastLogonTimestamp
whoami
Get-Process | Where-Object {.CPU -gt 100}
Get-EventLog -LogName System -Newest 50
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Restart-Service -Name 'WinRM'
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
whoami
cls
Get-Process | Where-Object {.CPU -gt 100}
Import-Module ActiveDirectory
Get-Command -Module ActiveDirectory
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-Process | Where-Object {.CPU -gt 100}
Get-Command -Module ActiveDirectory
Get-ADOrganizationalUnit -Filter *
Import-Module ActiveDirectory
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
New-Item -Path C:\\Temp -ItemType Directory
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-ChildItem -Recurse C:\\Scripts\\
Get-ADOrganizationalUnit -Filter *
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-Process | Where-Object {.CPU -gt 100}
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-ADOrganizationalUnit -Filter *
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-Date
Get-Process | Where-Object {.CPU -gt 100}
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Disconnect-PSDrive Z
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-ScheduledTask
Start-Sleep -Seconds 10
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Test-NetConnection google.com
Import-Module ActiveDirectory
Get-SmbSession
Set-Location C:\\Temp
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-HotFix -Id KB5005565
Get-ScheduledTask
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-ADObject -LDAPFilter '(objectCategory=computer)'
whoami
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-EventLog -LogName System -Newest 50
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
New-Item -Path C:\\Temp -ItemType Directory
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-ProcessMitigation -Name powershell.exe
Get-ADGroup -Filter *
hostname
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-HotFix -Id KB5005565
Get-LocalGroupMember -Group 'Administrators'
Get-Process | Where-Object {.CPU -gt 100}
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Import-Module ActiveDirectory
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-Command -Module ActiveDirectory
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-NetFirewallProfile
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-SmbShare
Get-WmiObject Win32_OperatingSystem
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Remove-Item C:\\Temp\\old_log.log -Force
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
cls
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-SmbOpenFile
Get-LocalGroupMember -Group 'Administrators'
Get-Command -Module ActiveDirectory
Get-HotFix -Id KB5005565
whoami
Get-ScheduledTask
Get-Process -Name powershell
systeminfo
Get-ADObject -LDAPFilter '(objectCategory=computer)'
