Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-HotFix -Id KB5005565
Get-LocalGroupMember -Group 'Administrators'
Get-ADGroup -Filter *
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-ScheduledTask
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-NetFirewallProfile
Get-ADPrincipalGroupMembership svc_backup
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-HotFix -Id KB5005565
Get-EventLog -LogName Security -InstanceId 4624 -Newest 100
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-ProcessMitigation -Name powershell.exe
Get-ADComputer -Filter *
Get-ADUser -Filter 'Enabled -eq True'
Get-ADServiceAccount -Filter *
Get-CimInstance -ClassName Win32_QuickFixEngineering
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-ProcessMitigation -Name powershell.exe
Get-ChildItem C:\Jenkins\Builds -Recurse | Where-Object { $_.LastWriteTime -lt (Get-Date).AddDays(-30) } | Remove-Item -Force
Get-HotFix | Sort-Object InstalledOn -Descending
Get-Command -Module ActiveDirectory
systeminfo
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Register-ScheduledTask -TaskName 'Jenkins_NightlyBuild' -Action $action -Trigger $trigger
Start-Sleep -Seconds 10
Import-Module ActiveDirectory
Copy-Item -Path C:\Jenkins\Scripts\deploy.ps1 -Destination \\FS01\Deploy\ -Force
Get-ADComputer -Filter *
Get-WmiObject Win32_OperatingSystem
Get-Content C:\Scripts\deploy.ps1
Get-WmiObject Win32_OperatingSystem
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-Command -Module ActiveDirectory
Get-SmbShare
Get-Content C:\Users\svc_backup\AppData\Local\Temp\deploy.log
New-Item -Path C:\Temp -ItemType Directory
Get-ChildItem -Recurse C:\Scripts\
Get-NetFirewallRule | Where-Object { $_.Enabled -eq 'True' }
Get-NetIPAddress
Get-Content C:\Scripts\deploy.ps1
Start-Sleep -Seconds 10
Get-ADGroupMember 'Domain Admins'
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-NetFirewallRule | Where-Object { $_.Enabled -eq 'True' }
New-ScheduledTaskTrigger -Daily -At 2am
Get-ADOrganizationalUnit -Filter *
Get-NTFSAccess -Path C:\SYSVOL
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-Process | Where-Object { $_.CPU -gt 100 }
cls
Copy-Item -Path C:\Temp\* -Destination Z:\Backup\
Get-Service | Where-Object { $_.Status -eq 'Running' }
Get-Acl -Path 'AD:\OU=BadOU,DC=novatech,DC=local'
Get-ProcessMitigation -Name powershell.exe
Get-NTFSAccess -Path C:\SYSVOL
Test-Connection -ComputerName dc01.novatech.local
Get-Service | Where-Object { $_.Name -like '*crypt*' }
Get-HotFix -Id KB5005565
Get-ChildItem -Recurse C:\Scripts\
Get-ADPrincipalGroupMembership svc_backup
hostname
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
New-Item -Path C:\Temp -ItemType Directory
Get-SmbSession
Get-ProcessMitigation -Name powershell.exe
Get-ScheduledTask
Get-EventLog -LogName Application -Newest 50
hostname
Get-Process -Name powershell
Get-LocalGroupMember -Group 'Administrators'
Get-EventLog -LogName Security -InstanceId 4625 -Newest 50
Get-FileHash -Path C:\Windows\System32\notepad.exe -Algorithm SHA256
Get-HotFix -Id KB5005565
Get-ADServiceAccount -Filter *
Get-Acl -Path 'AD:\OU=BadOU,DC=novatech,DC=local'
hostname
Get-FileHash -Path C:\Windows\System32\notepad.exe -Algorithm SHA256
Get-ProcessMitigation -Name powershell.exe
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-Service | Where-Object { $_.Name -like '*crypt*' }
Get-ScheduledTask
Get-ScheduledTask
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-FileHash -Path C:\Windows\System32\notepad.exe -Algorithm SHA256
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-EventLog -LogName Security -InstanceId 4625 -Newest 50
Get-WmiObject Win32_OperatingSystem
Get-ADGroup -Filter *
Get-ScheduledTask | Where-Object { $_.TaskName -like '*Jenkins*' }
New-PSDrive -Name Z -PSProvider FileSystem -Root \\DC01\SYSVOL
klist
New-ScheduledTaskAction -Execute 'powershell.exe' -Argument '-ExecutionPolicy Bypass -File C:\Jenkins\Scripts\nightly_build.ps1'
Get-ADComputer -Filter *
Get-LocalGroupMember -Group 'Administrators'
systeminfo
New-PSDrive -Name Z -PSProvider FileSystem -Root \\DC01\SYSVOL
Get-SmbShare
Get-ADObject -LDAPFilter '(objectCategory=computer)'
powershell.exe -ExecutionPolicy Bypass -File C:\Jenkins\Scripts\deploy_app.ps1
Test-Connection -ComputerName jenkins.novatech.local
Get-Credential
Get-Date
Get-WmiObject Win32_Service | Where-Object { $_.StartMode -eq 'Auto' }
New-Item -Path C:\Temp -ItemType Directory
Get-Content C:\Scripts\deploy.ps1
Get-Process -Name powershell
Get-SmbShare
Set-Location C:\Temp
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-ADGroupMember 'Domain Admins'
hostname
Get-EventLog -LogName System -Newest 50
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
