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