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