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