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