Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-ProcessMitigation -Name powershell.exe
Get-ScheduledTask
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Test-Connection -ComputerName dc01.novatech.local
Get-ADPrincipalGroupMembership svc_backup
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-Service | Where-Object {.Status -eq 'Running'}
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Remove-Item C:\\Temp\\old_log.log -Force
Get-ScheduledTask
Get-ADGroupMember 'Domain Admins'
Get-Credential
Get-Service -Name WinRM | Format-List *
Get-ScheduledTask
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
cls
Get-SmbShare
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-HotFix -Id KB5005565
Get-NTFSAccess -Path C:\\SYSVOL
Test-Connection -ComputerName dc01.novatech.local
Get-ADGroup -Filter *
Get-ADOrganizationalUnit -Filter *
Get-EventLog -LogName System -Newest 50
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-Process -Name powershell
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
New-Item -Path C:\\Temp -ItemType Directory
Test-NetConnection google.com
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-Process | Where-Object {.CPU -gt 100}
New-Item -Path C:\\Temp -ItemType Directory
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Restart-Service -Name 'WinRM'
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-Service | Where-Object {.Status -eq 'Running'}
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-ADServiceAccount -Filter * -Properties *
Restart-Service -Name 'WinRM'
Restart-Service -Name 'WinRM'
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
hostname
Get-ADOrganizationalUnit -Filter *
whoami
Get-SmbOpenFile
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-ADComputer -Filter *
Get-ScheduledTask
systeminfo
Get-ADUser -Filter 'Enabled -eq True'
Restart-Service -Name 'WinRM'
Get-ADPrincipalGroupMembership svc_backup
Get-ADGroup -Filter *
Disconnect-PSDrive Z
Get-ScheduledTask
Get-NetFirewallProfile
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Import-Module ActiveDirectory
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Set-Location C:\\Temp
Test-Connection -ComputerName dc01.novatech.local
Get-SmbSession
Test-Connection -ComputerName dc01.novatech.local
Restart-Service -Name 'WinRM'
Get-Process | Where-Object {.CPU -gt 100}
Get-EventLog -LogName System -Newest 50
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-NTFSAccess -Path C:\\SYSVOL
Get-NetIPAddress
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-HotFix -Id KB5005565
Get-Service | Where-Object {.Status -eq 'Running'}
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-Process -Name powershell
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
New-Item -Path C:\\Temp -ItemType Directory
Get-ADUser -Filter 'Enabled -eq True'
Get-ProcessMitigation -Name powershell.exe
Get-WmiObject Win32_OperatingSystem
Test-Connection -ComputerName dc01.novatech.local
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-ADUser svc_backup -Properties lastLogonTimestamp
Disconnect-PSDrive Z
Start-Sleep -Seconds 10
Get-ADComputer -Filter *
Start-Sleep -Seconds 10
cls
Get-Command -Module ActiveDirectory
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-SmbShare
Get-ADGroup -Filter *
hostname
Get-Service | Where-Object {.Name -like '*crypt*'}
Restart-Service -Name 'WinRM'
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-Command -Module ActiveDirectory
Set-Location C:\\Temp
Get-EventLog -LogName Application -Newest 50
Get-ADPrincipalGroupMembership svc_backup
Get-HotFix -Id KB5005565
Get-EventLog -LogName Application -Newest 50
Restart-Service -Name 'WinRM'
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
whoami
Remove-Item C:\\Temp\\old_log.log -Force
Get-HotFix -Id KB5005565
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Start-Sleep -Seconds 10
hostname
systeminfo
Test-NetConnection google.com
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
