Get-Acl -Path 'AD:\OU=BadOU,DC=novatech,DC=local'
Copy-Item -Path C:\Temp\* -Destination Z:\Backup\
New-PSDrive -Name Z -PSProvider FileSystem -Root \\DC01\SYSVOL
Get-ADUser svc_backup -Properties lastLogonTimestamp
Remove-Item C:\Temp\old_log.log -Force
Get-ChildItem -Recurse C:\Scripts\
Add-Content -Path C:\Scripts\deploy.ps1 -Value '# Deployment script updated'
Get-ADUser -Filter *
Get-HotFix | Sort-Object InstalledOn -Descending
Get-NTFSAccess -Path C:\SYSVOL
Get-EventLog -LogName Application -Newest 50
cls
Get-NetFirewallProfile
Start-Sleep -Seconds 10
New-PSDrive -Name Z -PSProvider FileSystem -Root \\DC01\SYSVOL
Get-ChildItem -Recurse C:\Scripts\
Add-Content -Path C:\Scripts\deploy.ps1 -Value '# Deployment script updated'
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-ADPrincipalGroupMembership svc_backup
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-SmbSession
Get-FileHash -Path C:\Windows\System32\notepad.exe -Algorithm SHA256
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-ADUser -Filter 'Enabled -eq True'
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-Credential
Get-Command -Module ActiveDirectory
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-PSDrive | Where-Object { $_.Provider -like '*FileSystem*' }
Get-NTFSAccess -Path C:\SYSVOL
Get-NetIPAddress
wbadmin get versions
Get-Acl -Path 'AD:\OU=BadOU,DC=novatech,DC=local'
Get-NetFirewallRule | Where-Object { $_.Enabled -eq 'True' }
Get-EventLog -LogName System -Newest 50
Copy-Item -Path C:\Temp\* -Destination Z:\Backup\
Get-ADGroup -Filter *
Get-ADComputer -Filter *
ipconfig /all
Get-Service -Name WinRM | Format-List *
Get-ProcessMitigation -Name powershell.exe
Get-EventLog -LogName Security -InstanceId 4625 -Newest 50
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
New-PSDrive -Name Z -PSProvider FileSystem -Root \\DC01\SYSVOL
Get-ADUser -Filter *
Get-SmbShare
Import-Module ActiveDirectory
Get-ADComputer -Filter *
hostname
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
systeminfo
ipconfig /all
Get-ADGroup -Filter *
Start-Sleep -Seconds 10
Get-SmbOpenFile
New-PSDrive -Name Z -PSProvider FileSystem -Root \\DC01\SYSVOL
Get-Service | Where-Object { $_.Name -like '*crypt*' }
Get-NetFirewallProfile
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
ipconfig /all
Get-ScheduledTask
Test-Connection -ComputerName dc01.novatech.local
Get-ADServiceAccount -Filter *
Get-ADUser svc_backup -Properties lastLogonTimestamp
Import-Module ActiveDirectory
Get-NetIPAddress
Get-ADUser -Filter 'Enabled -eq True'
Get-WmiObject Win32_OperatingSystem
Get-WmiObject Win32_OperatingSystem
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
wbadmin start systemstatebackup -backupTarget:\\FS01\Backup -quiet
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-Command -Module ActiveDirectory
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-ADUser -Filter 'Enabled -eq True'
Get-VBRBackupSession | Where-Object { $_.EndTime -gt (Get-Date).AddDays(-7) }
Remove-Item C:\Temp\old_log.log -Force
Disconnect-PSDrive Z
Get-HotFix | Sort-Object InstalledOn -Descending
Get-EventLog -LogName Security -InstanceId 4625 -Newest 50
Get-Acl -Path 'AD:\OU=BadOU,DC=novatech,DC=local'
Get-HotFix | Sort-Object InstalledOn -Descending
Get-ADGroup -Filter *
Get-HotFix | Sort-Object InstalledOn -Descending
Get-EventLog -LogName Security -InstanceId 4624 -Newest 100
Get-Service | Where-Object { $_.Status -eq 'Running' }
Remove-Item C:\Temp\old_log.log -Force
Get-NetIPAddress
New-Item -Path C:\Temp -ItemType Directory
Get-VBRJob
Get-Service -Name WinRM | Format-List *
Start-Sleep -Seconds 10
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-WmiObject Win32_OperatingSystem
Get-Service | Where-Object { $_.Status -eq 'Running' }
Get-ADUser -Filter 'Enabled -eq True'
Get-ChildItem \\FS01\Backup | Sort-Object LastWriteTime -Descending | Select-Object -First 10
ipconfig /all
Get-ADGroup -Filter *
Get-Content C:\Scripts\deploy.ps1
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-Service | Where-Object { $_.Name -like '*Veeam*' }
Get-Service -Name WinRM | Format-List *
Get-SmbOpenFile
Get-SmbShare
Get-Process | Where-Object { $_.CPU -gt 100 }
Get-ADServiceAccount -Filter *
Get-EventLog -LogName Application -Newest 50
Get-LocalGroupMember -Group 'Administrators'
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Disconnect-PSDrive Z
Get-EventLog -LogName Security -InstanceId 4625 -Newest 50
Get-ADServiceAccount -Filter * -Properties *
Get-Process -Name powershell
Get-SmbShare
Get-ADOrganizationalUnit -Filter *
Get-ADGroup -Filter *
systeminfo
Disconnect-PSDrive Z
Start-VBRJob -Job 'Daily Backup'
Get-EventLog -LogName System -Newest 50
Get-EventLog -LogName Application -Newest 50
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-NetIPAddress
Get-ADPrincipalGroupMembership svc_backup
ipconfig /all
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Test-Connection -ComputerName dc01.novatech.local
Get-WmiObject -Class Win32_Process | Where-Object { $_.Name -like '*spoolsv*' }
Get-Date
Get-ADServiceAccount -Filter * -Properties *
Get-WmiObject Win32_OperatingSystem
Get-NetFirewallRule | Where-Object { $_.Enabled -eq 'True' }
Get-EventLog -LogName Security -InstanceId 4625 -Newest 50
Get-ProcessMitigation -Name powershell.exe
Get-Command -Module ActiveDirectory
Set-Location C:\Temp
Test-Connection -ComputerName dc01.novatech.local
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-SmbSession
