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