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