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