Get-Content C:\Scripts\deploy.ps1
Get-EventLog -LogName Application -Newest 50
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-SmbShare
klist
whoami
Set-Location C:\Temp
Get-ScheduledTask
Get-FileHash -Path C:\Windows\System32\notepad.exe -Algorithm SHA256
Disconnect-PSDrive Z
Get-LocalGroupMember -Group 'Administrators'
Get-ADServiceAccount -Filter *
hostname
Get-LocalGroupMember -Group 'Administrators'
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-ADServiceAccount -Filter *
Get-WmiObject Win32_OperatingSystem
Get-EventLog -LogName Security -InstanceId 4624 -Newest 100
Get-BrokerDesktopGroup
Import-Module ActiveDirectory
Get-WmiObject Win32_OperatingSystem
Test-Connection -ComputerName dc01.novatech.local
Get-Service | Where-Object { $_.Status -eq 'Running' }
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-ADServiceAccount -Filter * -Properties *
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-Process | Where-Object { $_.CPU -gt 100 }
Get-ADOrganizationalUnit -Filter *
Get-EventLog -LogName System -Newest 50
Get-Date
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
whoami
cls
Get-Content C:\Users\svc_backup\AppData\Local\Temp\deploy.log
Get-ProcessMitigation -Name powershell.exe
whoami
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-Process | Where-Object { $_.CPU -gt 100 }
Get-ADUser -Filter 'Enabled -eq True'
Test-Connection -ComputerName citrix.novatech.local
klist
klist
Get-EventLog -LogName Security -InstanceId 4625 -Newest 50
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-BrokerSession
hostname
Get-Acl -Path 'AD:\OU=BadOU,DC=novatech,DC=local'
Restart-Service -Name 'WinRM'
Get-ADUser -Filter 'Enabled -eq True'
Get-HotFix | Sort-Object InstalledOn -Descending
Get-HotFix -Id KB5005565
Get-SmbOpenFile
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-NTFSAccess -Path C:\SYSVOL
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-Process -Name powershell
systeminfo
Get-ADServiceAccount -Filter * -Properties *
Get-Process -Name powershell
Get-WmiObject -Class Win32_Process | Where-Object { $_.Name -like '*spoolsv*' }
ipconfig /all
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-ADUser -Filter *
Get-WmiObject Win32_Service | Where-Object { $_.StartMode -eq 'Auto' }
Get-Service | Where-Object { $_.Name -like '*Citrix*' }
whoami
Get-FileHash -Path C:\Windows\System32\notepad.exe -Algorithm SHA256
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
systeminfo
Get-ScheduledTask
Get-WmiObject Win32_OperatingSystem
Get-ADUser -Filter *
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Copy-Item -Path C:\Temp\* -Destination Z:\Backup\
cls
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Import-Module ActiveDirectory
Get-Command -Module ActiveDirectory
Get-WmiObject Win32_OperatingSystem
Get-Process | Where-Object { $_.CPU -gt 100 }
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-BrokerMachine
Get-Service | Where-Object { $_.Name -like '*crypt*' }
Get-NetFirewallRule | Where-Object { $_.Enabled -eq 'True' }
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-ADObject -LDAPFilter '(objectCategory=computer)'
systeminfo
Get-ADUser -Filter *
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-Service | Where-Object { $_.Name -like '*crypt*' }
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-ADGroup -Filter *
Get-ADOrganizationalUnit -Filter *
Get-ADGroupMember 'Domain Admins'
systeminfo
Get-SmbShare
cls
Import-Module ActiveDirectory
Get-Process -Name powershell
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-ADPrincipalGroupMembership svc_backup
Get-ADGroup -Filter *
Get-HotFix | Sort-Object InstalledOn -Descending
Remove-Item C:\Temp\old_log.log -Force
Get-Credential
Get-SmbSession
Copy-Item -Path C:\Temp\* -Destination Z:\Backup\
Get-EventLog -LogName Application -Newest 50
Remove-Item C:\Temp\old_log.log -Force
Get-SmbShare
Get-Content C:\Users\svc_backup\AppData\Local\Temp\deploy.log
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-NetFirewallProfile
Get-WmiObject -Class Win32_Process | Where-Object { $_.Name -like '*spoolsv*' }
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
