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