Restart-Service -Name 'WinRM'
Get-ScheduledTask
systeminfo
Get-SmbOpenFile
Get-Date
Get-ChildItem -Recurse C:\\Scripts\\
Start-Sleep -Seconds 10
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-WmiObject Win32_OperatingSystem
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Start-Sleep -Seconds 10
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-Command -Module ActiveDirectory
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-ADServiceAccount -Filter * -Properties *
Get-ADServiceAccount -Filter * -Properties *
Get-ADOrganizationalUnit -Filter *
Get-NetIPAddress
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Test-Connection -ComputerName dc01.novatech.local
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
hostname
Get-ADOrganizationalUnit -Filter *
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-NetIPAddress
Get-Service -Name WinRM | Format-List *
Get-Process -Name powershell
Get-Command -Module ActiveDirectory
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-LocalGroupMember -Group 'Administrators'
Get-Credential
Get-EventLog -LogName Application -Newest 50
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-ADUser -Filter 'Enabled -eq True'
Get-NTFSAccess -Path C:\\SYSVOL
hostname
Get-ADPrincipalGroupMembership svc_backup
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Restart-Service -Name 'WinRM'
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-ADGroupMember 'Domain Admins'
Restart-Service -Name 'WinRM'
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-EventLog -LogName Application -Newest 50
Get-WmiObject Win32_OperatingSystem
Get-SmbOpenFile
Import-Module ActiveDirectory
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
whoami
Remove-Item C:\\Temp\\old_log.log -Force
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Start-Sleep -Seconds 10
Disconnect-PSDrive Z
Get-LocalGroupMember -Group 'Administrators'
Get-SmbShare
Get-ADGroupMember 'Domain Admins'
Get-ADOrganizationalUnit -Filter *
whoami
Restart-Service -Name 'WinRM'
Test-NetConnection google.com
whoami
Disconnect-PSDrive Z
whoami
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-Credential
Get-Process -Name powershell
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-Credential
Test-Connection -ComputerName dc01.novatech.local
Get-NetIPAddress
Get-Content C:\\Scripts\\deploy.ps1
Get-SmbShare
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-NTFSAccess -Path C:\\SYSVOL
Get-SmbShare
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Remove-Item C:\\Temp\\old_log.log -Force
Get-ADUser -Filter 'Enabled -eq True'
Get-Service -Name WinRM | Format-List *
Get-Credential
Get-NetIPAddress
Get-NetFirewallProfile
Get-ChildItem -Recurse C:\\Scripts\\
Get-Service -Name WinRM | Format-List *
Get-EventLog -LogName System -Newest 50
Get-ADUser -Filter 'Enabled -eq True'
Disconnect-PSDrive Z
ipconfig /all
Get-NetIPAddress
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Restart-Service -Name 'WinRM'
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
ipconfig /all
New-Item -Path C:\\Temp -ItemType Directory
Get-Date
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-NTFSAccess -Path C:\\SYSVOL
Get-ADComputer -Filter *
Get-Credential
New-Item -Path C:\\Temp -ItemType Directory
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
hostname
Get-SmbSession
