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