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