Get-Process -Name powershell
Disconnect-PSDrive Z
Get-ADOrganizationalUnit -Filter *
Get-EventLog -LogName Application -Newest 50
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-ADOrganizationalUnit -Filter *
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
whoami
Get-Service | Where-Object {.Name -like '*crypt*'}
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-EventLog -LogName Application -Newest 50
Get-NetFirewallProfile
Test-NetConnection google.com
Start-Sleep -Seconds 10
Get-NetFirewallProfile
Start-Sleep -Seconds 10
ipconfig /all
Get-Date
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-ADServiceAccount -Filter * -Properties *
Get-ScheduledTask
Get-Service -Name WinRM | Format-List *
Get-ADUser svc_backup -Properties lastLogonTimestamp
ipconfig /all
Get-Service -Name WinRM | Format-List *
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-Process -Name powershell
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Import-Module ActiveDirectory
Get-Process | Where-Object {.CPU -gt 100}
systeminfo
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-Content C:\\Scripts\\deploy.ps1
Get-Content C:\\Scripts\\deploy.ps1
Get-NetIPAddress
Test-NetConnection google.com
Get-ADComputer -Filter *
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-NetIPAddress
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-SmbSession
Get-ScheduledTask
Set-Location C:\\Temp
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Set-ExecutionPolicy RemoteSigned -Scope Process
Restart-Service -Name 'WinRM'
whoami
Get-Process -Name powershell
Get-NetFirewallProfile
Restart-Service -Name 'WinRM'
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-ADPrincipalGroupMembership svc_backup
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-SmbShare
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Import-Module ActiveDirectory
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-Service | Where-Object {.Status -eq 'Running'}
ipconfig /all
Get-ADUser -Filter 'Enabled -eq True'
Start-Sleep -Seconds 10
hostname
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-ADPrincipalGroupMembership svc_backup
Import-Module ActiveDirectory
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-EventLog -LogName System -Newest 50
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-ADUser -Filter 'Enabled -eq True'
Get-ADComputer -Filter *
Get-ADComputer -Filter *
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-Content C:\\Scripts\\deploy.ps1
Get-SmbOpenFile
Get-ProcessMitigation -Name powershell.exe
Get-LocalGroupMember -Group 'Administrators'
Get-ChildItem -Recurse C:\\Scripts\\
Get-ADGroup -Filter *
Set-Location C:\\Temp
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
whoami
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-ProcessMitigation -Name powershell.exe
Get-EventLog -LogName System -Newest 50
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-Credential
Get-EventLog -LogName Application -Newest 50
Get-Process | Where-Object {.CPU -gt 100}
Restart-Service -Name 'WinRM'
Get-ADGroup -Filter *
Get-ADServiceAccount -Filter * -Properties *
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Test-Connection -ComputerName dc01.novatech.local
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-LocalGroupMember -Group 'Administrators'
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-SmbSession
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Set-ExecutionPolicy RemoteSigned -Scope Process
New-Item -Path C:\\Temp -ItemType Directory
Get-ProcessMitigation -Name powershell.exe
Get-Credential
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-Content C:\\Scripts\\deploy.ps1
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Start-Sleep -Seconds 10
New-Item -Path C:\\Temp -ItemType Directory
Get-Date
