Get-EventLog -LogName System -Newest 50
Get-ADUser -Filter 'Enabled -eq True'
Get-WmiObject Win32_Service | Where-Object { $_.StartMode -eq 'Auto' }
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
New-PSDrive -Name Z -PSProvider FileSystem -Root \\DC01\SYSVOL
Test-Connection -ComputerName dc01.novatech.local
Get-EventLog -LogName Application -Newest 50
Test-Connection -ComputerName dc01.novatech.local
Get-Content C:\Scripts\deploy.ps1
Import-Module ActiveDirectory
Copy-Item -Path C:\Temp\* -Destination Z:\Backup\
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-ADComputer -Filter *
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-ADComputer -Filter *
Get-Content C:\Users\svc_backup\AppData\Local\Temp\deploy.log
Get-SmbSession
Get-Process | Where-Object { $_.CPU -gt 100 }
Get-Acl -Path 'AD:\OU=BadOU,DC=novatech,DC=local'
Get-NTFSAccess -Path C:\SYSVOL
Get-Command -Module ActiveDirectory
Get-WmiObject Win32_OperatingSystem
Get-ADGroupMember 'Domain Admins'
Get-MpPreference
Set-Location C:\Temp
Get-EventLog -LogName System -Newest 50
Get-ADGroupMember 'Domain Admins'
Get-ADGroupMember 'Domain Admins'
Get-Service -Name WinRM | Format-List *
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-ProcessMitigation -Name powershell.exe
Get-Acl -Path 'AD:\OU=BadOU,DC=novatech,DC=local'
Get-Service | Where-Object { $_.Name -like '*crypt*' }
Get-ADUser -Filter *
Get-ADGroupMember 'Domain Admins'
Get-Command -Module ActiveDirectory
Get-SmbShare
Get-ADUser -Filter *
Get-ADServiceAccount -Filter *
Remove-Item C:\Temp\old_log.log -Force
Get-EventLog -LogName System -Newest 50
Update-MpSignature
Get-MpComputerStatus
Add-Content -Path C:\Scripts\deploy.ps1 -Value '# Deployment script updated'
Get-ADGroup -Filter *
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-HotFix -Id KB5005565
Get-SmbShare
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Restart-Service -Name 'WinRM'
Get-Credential
cls
ipconfig /all
Get-ADGroup -Filter *
Start-MpScan -ScanType QuickScan
Set-Location C:\Temp
Copy-Item -Path C:\Temp\* -Destination Z:\Backup\
Get-ScheduledTask
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-LocalGroupMember -Group 'Administrators'
Get-ADComputer -Filter *
Get-Service | Where-Object { $_.Name -like '*McAfee*' }
ipconfig /all
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-ADServiceAccount -Filter * -Properties *
Get-SmbOpenFile
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-WmiObject -Class Win32_Process | Where-Object { $_.Name -like '*spoolsv*' }
Get-ADPrincipalGroupMembership svc_backup
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-ADServiceAccount -Filter *
Get-ScheduledTask
Get-MpThreat
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-FileHash -Path C:\Windows\System32\notepad.exe -Algorithm SHA256
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
systeminfo
Get-ADComputer -Filter *
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-Process | Where-Object { $_.CPU -gt 100 }
Get-Content C:\Users\svc_backup\AppData\Local\Temp\deploy.log
Get-HotFix | Sort-Object InstalledOn -Descending
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-ADServiceAccount -Filter *
Get-WmiObject Win32_OperatingSystem
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-WmiObject Win32_OperatingSystem
Get-EventLog -LogName Application -Newest 50
New-PSDrive -Name Z -PSProvider FileSystem -Root \\DC01\SYSVOL
Get-ChildItem -Recurse C:\Scripts\
Get-WmiObject Win32_Service | Where-Object { $_.StartMode -eq 'Auto' }
Add-Content -Path C:\Scripts\deploy.ps1 -Value '# Deployment script updated'
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-HotFix -Id KB5005565
Get-ProcessMitigation -Name powershell.exe
Get-ADComputer -Filter *
Disconnect-PSDrive Z
Get-ADPrincipalGroupMembership svc_backup
Get-NetFirewallProfile
Get-NetFirewallProfile
Get-ProcessMitigation -Name powershell.exe
Get-EventLog -LogName Security -InstanceId 4624 -Newest 100
Get-ScheduledTask
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-NTFSAccess -Path C:\SYSVOL
Get-NetFirewallProfile
Get-ADGroupMember 'Domain Admins'
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-WmiObject Win32_Service | Where-Object { $_.StartMode -eq 'Auto' }
Get-ADUser -Filter *
Add-Content -Path C:\Scripts\deploy.ps1 -Value '# Deployment script updated'
Import-Module ActiveDirectory
