Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-ADComputer -Filter *
Get-Process | Where-Object {.CPU -gt 100}
whoami
Get-ADUser -Filter 'Enabled -eq True'
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
hostname
Get-EventLog -LogName Application -Newest 50
Disconnect-PSDrive Z
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-ChildItem -Recurse C:\\Scripts\\
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-WmiObject Win32_OperatingSystem
Get-ADServiceAccount -Filter * -Properties *
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Set-ExecutionPolicy RemoteSigned -Scope Process
Restart-Service -Name 'WinRM'
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-ProcessMitigation -Name powershell.exe
Restart-Service -Name 'WinRM'
Get-Service -Name WinRM | Format-List *
whoami
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-ADOrganizationalUnit -Filter *
Get-ScheduledTask
Get-Process | Where-Object {.CPU -gt 100}
Disconnect-PSDrive Z
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-NetIPAddress
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-SmbOpenFile
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-ADPrincipalGroupMembership svc_backup
systeminfo
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
ipconfig /all
Test-Connection -ComputerName dc01.novatech.local
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-ADComputer -Filter *
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-ADComputer -Filter *
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-NTFSAccess -Path C:\\SYSVOL
cls
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-ChildItem -Recurse C:\\Scripts\\
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Remove-Item C:\\Temp\\old_log.log -Force
Restart-Service -Name 'WinRM'
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-ProcessMitigation -Name powershell.exe
Get-Content C:\\Scripts\\deploy.ps1
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Test-Connection -ComputerName dc01.novatech.local
Get-Credential
Get-NTFSAccess -Path C:\\SYSVOL
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-HotFix -Id KB5005565
Get-ProcessMitigation -Name powershell.exe
Get-Service -Name WinRM | Format-List *
Get-NetFirewallProfile
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-HotFix -Id KB5005565
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-Date
Get-ScheduledTask
hostname
Get-ADUser -Filter 'Enabled -eq True'
Get-ADGroupMember 'Domain Admins'
Get-SmbSession
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-EventLog -LogName Application -Newest 50
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-Date
Get-NetIPAddress
Get-ScheduledTask
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-NetIPAddress
New-Item -Path C:\\Temp -ItemType Directory
Get-Service -Name WinRM | Format-List *
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-LocalGroupMember -Group 'Administrators'
Get-ADServiceAccount -Filter * -Properties *
Test-Connection -ComputerName dc01.novatech.local
Get-Date
Test-NetConnection google.com
Get-HotFix -Id KB5005565
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-EventLog -LogName Application -Newest 50
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-NetIPAddress
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-ADServiceAccount -Filter * -Properties *
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Test-Connection -ComputerName dc01.novatech.local
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-HotFix -Id KB5005565
Get-HotFix -Id KB5005565
Test-Connection -ComputerName dc01.novatech.local
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
