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