Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-ADGroupMember 'Domain Admins'
Get-SmbOpenFile
Get-Command -Module ActiveDirectory
Get-EventLog -LogName Application -Newest 50
Get-EventLog -LogName System -Newest 50
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-Service | Where-Object {.Status -eq 'Running'}
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
New-Item -Path C:\\Temp -ItemType Directory
Set-Location C:\\Temp
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
cls
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
cls
whoami
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-ADPrincipalGroupMembership svc_backup
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-EventLog -LogName System -Newest 50
Get-EventLog -LogName Application -Newest 50
Disconnect-PSDrive Z
Import-Module ActiveDirectory
Get-ProcessMitigation -Name powershell.exe
Get-ADOrganizationalUnit -Filter *
Get-Service | Where-Object {.Status -eq 'Running'}
New-Item -Path C:\\Temp -ItemType Directory
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-WmiObject Win32_OperatingSystem
Get-EventLog -LogName Application -Newest 50
New-Item -Path C:\\Temp -ItemType Directory
Get-ChildItem -Recurse C:\\Scripts\\
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-HotFix -Id KB5005565
Get-ADServiceAccount -Filter * -Properties *
Get-ADGroupMember 'Domain Admins'
Get-NetIPAddress
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Start-Sleep -Seconds 10
Get-ADServiceAccount -Filter * -Properties *
Get-WmiObject Win32_OperatingSystem
Start-Sleep -Seconds 10
Get-Service -Name WinRM | Format-List *
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-SmbSession
Test-Connection -ComputerName dc01.novatech.local
Get-ScheduledTask
Get-EventLog -LogName Application -Newest 50
Get-Content C:\\Scripts\\deploy.ps1
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-ScheduledTask
Get-ChildItem -Recurse C:\\Scripts\\
Get-NetFirewallProfile
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-Process -Name powershell
Import-Module ActiveDirectory
Get-ADGroupMember 'Domain Admins'
hostname
Get-Service | Where-Object {.Status -eq 'Running'}
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-Process | Where-Object {.CPU -gt 100}
Get-ADComputer -Filter *
Get-ADComputer -Filter *
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Start-Sleep -Seconds 10
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-Process | Where-Object {.CPU -gt 100}
New-Item -Path C:\\Temp -ItemType Directory
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-HotFix -Id KB5005565
Get-Process | Where-Object {.CPU -gt 100}
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-ChildItem -Recurse C:\\Scripts\\
Get-Service | Where-Object {.Status -eq 'Running'}
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Remove-Item C:\\Temp\\old_log.log -Force
Get-ADServiceAccount -Filter * -Properties *
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-NetFirewallProfile
hostname
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-Service | Where-Object {.Status -eq 'Running'}
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-HotFix -Id KB5005565
ipconfig /all
whoami
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Test-Connection -ComputerName dc01.novatech.local
Get-SmbShare
Get-SmbSession
Get-SmbSession
Write-Host 'Operation terminée'
Start-Sleep -Seconds 10
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-LocalGroupMember -Group 'Administrators'
Remove-Item C:\\Temp\\old_log.log -Force
Get-SmbOpenFile
Get-Date
Get-LocalGroupMember -Group 'Administrators'
Get-EventLog -LogName Application -Newest 50
ipconfig /all
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-Process -Name powershell
