Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-NetIPAddress
Set-Location C:\Temp
Set-Location C:\Temp
Get-EventLog -LogName Security -InstanceId 4625 -Newest 50
Get-EventLog -LogName System -Newest 50
Add-Content -Path C:\Scripts\deploy.ps1 -Value '# Deployment script updated'
Get-HotFix | Sort-Object InstalledOn -Descending
Get-ADUser svc_backup -Properties lastLogonTimestamp
Copy-Item -Path C:\Temp\* -Destination Z:\Backup\
Get-ChildItem -Recurse C:\Scripts\
Restart-Service -Name 'WinRM'
Get-ADUser -Filter 'Enabled -eq True'
Get-WmiObject Win32_Service | Where-Object { $_.StartMode -eq 'Auto' }
Get-EventLog -LogName Security -InstanceId 4624 -Newest 100
Restart-Service -Name 'WinRM'
New-PSDrive -Name Z -PSProvider FileSystem -Root \\DC01\SYSVOL
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-HotFix | Sort-Object InstalledOn -Descending
Get-WmiObject Win32_OperatingSystem
Get-ADServiceAccount -Filter *
klist
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-EventLog -LogName Application -Newest 50
Get-Service | Where-Object { $_.Name -like '*crypt*' }
Get-LocalGroupMember -Group 'Administrators'
Get-ADGroup -Filter *
Get-ProcessMitigation -Name powershell.exe
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-Queue
systeminfo
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
ipconfig /all
Set-Location C:\Temp
New-Item -Path C:\Temp -ItemType Directory
Get-Date
Get-Acl -Path 'AD:\OU=BadOU,DC=novatech,DC=local'
Get-SmbOpenFile
Get-ADServiceAccount -Filter * -Properties *
Get-Service | Where-Object { $_.Name -like '*Exchange*' }
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
klist
Get-LocalGroupMember -Group 'Administrators'
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Copy-Item -Path C:\Temp\* -Destination Z:\Backup\
cls
Test-ServiceHealth
Get-Mailbox -ResultSize Unlimited
Test-Connection -ComputerName dc01.novatech.local
Get-Content C:\Scripts\deploy.ps1
Get-ScheduledTask
Get-ADOrganizationalUnit -Filter *
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-ADPrincipalGroupMembership svc_backup
Get-TransportService
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
New-PSDrive -Name Z -PSProvider FileSystem -Root \\DC01\SYSVOL
Get-NetIPAddress
Get-ADComputer -Filter *
Get-ADGroupMember 'Domain Admins'
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-NTFSAccess -Path C:\SYSVOL
Get-MailboxDatabase
cls
Get-ADServiceAccount -Filter *
Get-FileHash -Path C:\Windows\System32\notepad.exe -Algorithm SHA256
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-ADComputer -Filter *
Import-Module ActiveDirectory
Get-HotFix -Id KB5005565
Get-EventLog -LogName Application -Newest 50
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-SmbSession
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-ProcessMitigation -Name powershell.exe
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-SmbOpenFile
Get-Command -Module ActiveDirectory
Get-Process | Where-Object { $_.CPU -gt 100 }
Get-MailboxStatistics -Database 'Mailbox Database 01'
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-ProcessMitigation -Name powershell.exe
Get-EventLog -LogName Security -InstanceId 4625 -Newest 50
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Test-Connection -ComputerName dc01.novatech.local
Test-MAPIConnectivity
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-ExchangeServer
Set-ExecutionPolicy RemoteSigned -Scope Process
systeminfo
Get-SmbShare
hostname
Get-ADGroup -Filter *
Get-SmbSession
Get-Service -Name WinRM | Format-List *
Get-Process | Where-Object { $_.CPU -gt 100 }
Get-MessageTrackingLog -Start (Get-Date).AddDays(-1)
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-SmbShare
Get-Process | Where-Object { $_.CPU -gt 100 }
Disconnect-PSDrive Z
whoami
Get-WmiObject -Class Win32_Process | Where-Object { $_.Name -like '*spoolsv*' }
Get-Service -Name WinRM | Format-List *
Get-NTFSAccess -Path C:\SYSVOL
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-ADServiceAccount -Filter *
Get-ChildItem -Recurse C:\Scripts\
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-EventLog -LogName Application -Newest 50
Get-ADServiceAccount -Filter * -Properties *
Import-Module ActiveDirectory
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
hostname
hostname
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-ADServiceAccount -Filter * -Properties *
Get-ADGroupMember 'Domain Admins'
