Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-Content C:\\Scripts\\deploy.ps1
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-EventLog -LogName Application -Newest 50
Disconnect-PSDrive Z
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
ipconfig /all
Get-ADGroup -Filter *
New-Item -Path C:\\Temp -ItemType Directory
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-NetIPAddress
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-ScheduledTask
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
systeminfo
New-Item -Path C:\\Temp -ItemType Directory
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-Command -Module ActiveDirectory
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-NetFirewallProfile
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-SmbShare
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-ScheduledTask
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-EventLog -LogName Application -Newest 50
Get-NetFirewallProfile
Get-ADComputer -Filter *
Get-ADComputer -Filter *
Get-Content C:\\Scripts\\deploy.ps1
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-NTFSAccess -Path C:\\SYSVOL
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-Content C:\\Scripts\\deploy.ps1
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Test-Connection -ComputerName dc01.novatech.local
Get-Credential
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-Content C:\\Scripts\\deploy.ps1
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-SmbOpenFile
Get-EventLog -LogName System -Newest 50
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
New-Item -Path C:\\Temp -ItemType Directory
Disconnect-PSDrive Z
hostname
Get-ScheduledTask
Get-Service -Name WinRM | Format-List *
hostname
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-ScheduledTask
Get-NetIPAddress
Get-SmbOpenFile
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Restart-Service -Name 'WinRM'
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-NTFSAccess -Path C:\\SYSVOL
Get-EventLog -LogName Application -Newest 50
Get-HotFix -Id KB5005565
Get-ADGroupMember 'Domain Admins'
Get-EventLog -LogName System -Newest 50
Get-Service | Where-Object {.Status -eq 'Running'}
hostname
Get-HotFix -Id KB5005565
Get-ADPrincipalGroupMembership svc_backup
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Set-Location C:\\Temp
Get-Process -Name powershell
Get-ADComputer -Filter *
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Import-Module ActiveDirectory
Get-Content C:\\Scripts\\deploy.ps1
Disconnect-PSDrive Z
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Test-Connection -ComputerName dc01.novatech.local
Get-ADUser -Filter 'Enabled -eq True'
Get-Content C:\\Scripts\\deploy.ps1
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-ADGroup -Filter *
Get-ProcessMitigation -Name powershell.exe
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-ADOrganizationalUnit -Filter *
Disconnect-PSDrive Z
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-ADGroup -Filter *
Get-NetIPAddress
Get-HotFix -Id KB5005565
Get-EventLog -LogName Application -Newest 50
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
New-Item -Path C:\\Temp -ItemType Directory
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-SmbShare
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-ADGroupMember 'Domain Admins'
Get-ScheduledTask
Get-ADGroup -Filter *
Get-ADOrganizationalUnit -Filter *
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
