Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-NetIPAddress
New-PSDrive -Name Z -PSProvider FileSystem -Root \\DC01\SYSVOL
Get-Service | Where-Object { $_.Status -eq 'Running' }
Get-Service -Name WinRM | Format-List *
klist
Get-EventLog -LogName Security -InstanceId 4625 -Newest 50
klist
Get-Content C:\Users\svc_backup\AppData\Local\Temp\deploy.log
Get-EventLog -LogName Security -InstanceId 4624 -Newest 100
Get-SmbShare
Get-ADOrganizationalUnit -Filter *
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-SmbOpenFile
Get-Content C:\Scripts\deploy.ps1
Start-Sleep -Seconds 10
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-Date
Get-CimInstance -ClassName Win32_QuickFixEngineering
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-ADGroup -Filter *
hostname
Test-Connection -ComputerName netbackup.novatech.local
Get-WmiObject -Class Win32_Process | Where-Object { $_.Name -like '*spoolsv*' }
Get-ADGroupMember 'Domain Admins'
Add-Content -Path C:\Scripts\deploy.ps1 -Value '# Deployment script updated'
Get-Content C:\Users\svc_backup\AppData\Local\Temp\deploy.log
Get-Credential
Get-Command -Module ActiveDirectory
Get-WmiObject Win32_Service | Where-Object { $_.StartMode -eq 'Auto' }
Get-FileHash -Path C:\Windows\System32\notepad.exe -Algorithm SHA256
Get-Service | Where-Object { $_.Name -like '*crypt*' }
New-PSDrive -Name Z -PSProvider FileSystem -Root \\DC01\SYSVOL
Get-ADComputer -Filter *
hostname
Get-ADServiceAccount -Filter * -Properties *
Get-Service | Where-Object { $_.Name -like '*crypt*' }
Start-Sleep -Seconds 10
Get-WmiObject -Class Win32_Process | Where-Object { $_.Name -like '*spoolsv*' }
Get-ADGroupMember 'Domain Admins'
Get-Process | Where-Object { $_.CPU -gt 100 }
Get-ChildItem -Recurse C:\Scripts\
klist
Copy-Item -Path C:\Temp\* -Destination Z:\Backup\
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-HotFix -Id KB5005565
Get-SmbOpenFile
hostname
Import-Module ActiveDirectory
Get-EventLog -LogName Security -InstanceId 4625 -Newest 50
Get-EventLog -LogName Application -Newest 50
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-Command -Module ActiveDirectory
Get-Content C:\Users\svc_backup\AppData\Local\Temp\deploy.log
Get-Content C:\Users\svc_backup\AppData\Local\Temp\deploy.log
Get-WmiObject Win32_Service | Where-Object { $_.StartMode -eq 'Auto' }
Get-HotFix | Sort-Object InstalledOn -Descending
Get-EventLog -LogName System -Newest 50
Get-FileHash -Path C:\Windows\System32\notepad.exe -Algorithm SHA256
Get-HotFix | Sort-Object InstalledOn -Descending
Get-Service | Where-Object { $_.Status -eq 'Running' }
systeminfo
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-Service | Where-Object { $_.Name -like '*Veritas*' }
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-SmbOpenFile
Get-HotFix | Sort-Object InstalledOn -Descending
Get-ADUser -Filter 'Enabled -eq True'
Get-Command -Module ActiveDirectory
Start-Sleep -Seconds 10
Get-Content C:\Scripts\deploy.ps1
Get-NetFirewallRule | Where-Object { $_.Enabled -eq 'True' }
Get-ProcessMitigation -Name powershell.exe
Add-Content -Path C:\Scripts\deploy.ps1 -Value '# Deployment script updated'
Get-SmbShare
Get-ADServiceAccount -Filter *
Get-ProcessMitigation -Name powershell.exe
Get-SmbShare
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-ScheduledTask
Get-Date
Get-ChildItem \\FS01\Backup\Veritas
Get-Service | Where-Object { $_.Status -eq 'Running' }
Get-SmbShare
Get-EventLog -LogName System -Newest 50
Get-ADGroup -Filter *
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-ADComputer -Filter *
Get-Date
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-ADOrganizationalUnit -Filter *
Get-Process | Where-Object { $_.CPU -gt 100 }
Get-NetFirewallRule | Where-Object { $_.Enabled -eq 'True' }
Get-Credential
Get-HotFix -Id KB5005565
Get-NTFSAccess -Path C:\SYSVOL
Get-Process -Name powershell
Get-ADGroupMember 'Domain Admins'
Get-Command -Module ActiveDirectory
Get-SmbShare
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-ADOrganizationalUnit -Filter *
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-EventLog -LogName System -Newest 50
ipconfig /all
ipconfig /all
bpdbjobs -report
Get-ADPrincipalGroupMembership svc_backup
Get-ChildItem -Recurse C:\Scripts\
whoami
Disconnect-PSDrive Z
Get-SmbOpenFile
Get-WmiObject -Class Win32_Process | Where-Object { $_.Name -like '*spoolsv*' }
Get-Content C:\Users\svc_backup\AppData\Local\Temp\deploy.log
Get-SmbSession
hostname
Get-ADComputer -Filter *
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-ScheduledTask
Get-ADObject -LDAPFilter '(objectCategory=computer)'
bppllist
Start-Sleep -Seconds 10
Get-EventLog -LogName Application -Newest 50
Get-ADServiceAccount -Filter * -Properties *
Get-EventLog -LogName System -Newest 50
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-Service | Where-Object { $_.Status -eq 'Running' }
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-SmbShare
ipconfig /all
Get-FileHash -Path C:\Windows\System32\notepad.exe -Algorithm SHA256
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-ADOrganizationalUnit -Filter *
Get-ADServiceAccount -Filter *
Get-ADUser -Filter 'Enabled -eq True'
Get-Content C:\Users\svc_backup\AppData\Local\Temp\deploy.log
Get-NetIPAddress
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-ProcessMitigation -Name powershell.exe
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
