Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-ChildItem -Recurse C:\\Scripts\\
Test-Connection -ComputerName dc01.novatech.local
Get-Process -Name powershell
cls
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-ADGroupMember 'Domain Admins'
ipconfig /all
Get-SmbShare
Get-ADUser -Filter 'Enabled -eq True'
Get-NTFSAccess -Path C:\\SYSVOL
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-ADServiceAccount -Filter * -Properties *
Get-WmiObject Win32_OperatingSystem
Import-Module ActiveDirectory
ipconfig /all
Get-ADGroupMember 'Domain Admins'
Test-NetConnection google.com
systeminfo
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-HotFix -Id KB5005565
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-ADOrganizationalUnit -Filter *
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-SmbOpenFile
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-ADOrganizationalUnit -Filter *
Remove-Item C:\\Temp\\old_log.log -Force
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-ADServiceAccount -Filter * -Properties *
Get-Credential
Get-ADGroupMember 'Domain Admins'
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-ProcessMitigation -Name powershell.exe
Get-ScheduledTask
Get-ADPrincipalGroupMembership svc_backup
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-Credential
Get-ADUser -Filter 'Enabled -eq True'
Get-HotFix -Id KB5005565
Get-SmbOpenFile
Get-LocalGroupMember -Group 'Administrators'
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-NTFSAccess -Path C:\\SYSVOL
Get-Date
Get-ADPrincipalGroupMembership svc_backup
Disconnect-PSDrive Z
Import-Module ActiveDirectory
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-ADUser -Filter 'Enabled -eq True'
Get-NTFSAccess -Path C:\\SYSVOL
Get-Credential
Get-LocalGroupMember -Group 'Administrators'
cls
Get-NTFSAccess -Path C:\\SYSVOL
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-Service | Where-Object {.Status -eq 'Running'}
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-NetIPAddress
Get-SmbSession
Get-Service -Name WinRM | Format-List *
Get-Process | Where-Object {.CPU -gt 100}
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-Content C:\\Scripts\\deploy.ps1
Test-Connection -ComputerName dc01.novatech.local
Set-Location C:\\Temp
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-ADUser svc_backup -Properties lastLogonTimestamp
systeminfo
Get-Command -Module ActiveDirectory
Get-Service -Name WinRM | Format-List *
Set-ExecutionPolicy RemoteSigned -Scope Process
Disconnect-PSDrive Z
Get-ChildItem -Recurse C:\\Scripts\\
Get-Command -Module ActiveDirectory
Get-ADServiceAccount -Filter * -Properties *
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-ADPrincipalGroupMembership svc_backup
Get-SmbOpenFile
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-ProcessMitigation -Name powershell.exe
Get-Credential
Get-SmbOpenFile
New-Item -Path C:\\Temp -ItemType Directory
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
systeminfo
Disconnect-PSDrive Z
Import-Module ActiveDirectory
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-ScheduledTask
Disconnect-PSDrive Z
hostname
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Import-Module ActiveDirectory
Test-NetConnection google.com
Get-SmbShare
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-ADComputer -Filter *
ipconfig /all
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
