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