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
Get-ChildItem -Recurse C:\\Scripts\\
Get-Content C:\\Scripts\\deploy.ps1
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
ipconfig /all
New-Item -Path C:\\Temp -ItemType Directory
Start-Sleep -Seconds 10
Start-Sleep -Seconds 10
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-SmbShare
Get-ADServiceAccount -Filter * -Properties *
Disconnect-PSDrive Z
Get-ProcessMitigation -Name powershell.exe
Get-LocalGroupMember -Group 'Administrators'
Get-Process -Name powershell
Get-Service -Name WinRM | Format-List *
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Write-Host 'Operation terminée'
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-ADComputer -Filter *
Get-NetFirewallProfile
Get-ADPrincipalGroupMembership svc_backup
Get-WmiObject Win32_OperatingSystem
Get-ADServiceAccount -Filter * -Properties *
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-SmbOpenFile
hostname
hostname
Get-WmiObject Win32_OperatingSystem
Disconnect-PSDrive Z
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-Content C:\\Scripts\\deploy.ps1
Get-HotFix -Id KB5005565
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Import-Module ActiveDirectory
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-ADComputer -Filter *
Import-Module ActiveDirectory
whoami
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-Content C:\\Scripts\\deploy.ps1
Start-Sleep -Seconds 10
Start-Sleep -Seconds 10
Disconnect-PSDrive Z
systeminfo
Test-NetConnection google.com
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-ADPrincipalGroupMembership svc_backup
Set-Location C:\\Temp
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
New-Item -Path C:\\Temp -ItemType Directory
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-NTFSAccess -Path C:\\SYSVOL
systeminfo
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-ADPrincipalGroupMembership svc_backup
ipconfig /all
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-EventLog -LogName System -Newest 50
Restart-Service -Name 'WinRM'
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-ADOrganizationalUnit -Filter *
Restart-Service -Name 'WinRM'
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-LocalGroupMember -Group 'Administrators'
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
whoami
Get-Service | Where-Object {.Status -eq 'Running'}
Write-Host 'Operation terminée'
Test-NetConnection google.com
Get-Content C:\\Scripts\\deploy.ps1
Get-ADServiceAccount -Filter * -Properties *
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-NetFirewallProfile
cls
Get-EventLog -LogName Application -Newest 50
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-Process -Name powershell
ipconfig /all
Disconnect-PSDrive Z
Get-WmiObject Win32_OperatingSystem
hostname
Get-EventLog -LogName System -Newest 50
Get-CimInstance -ClassName Win32_QuickFixEngineering
Disconnect-PSDrive Z
Set-Location C:\\Temp
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Test-Connection -ComputerName dc01.novatech.local
Get-Process | Where-Object {.CPU -gt 100}
cls
Get-ADUser svc_backup -Properties lastLogonTimestamp
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-SmbShare
Get-EventLog -LogName Application -Newest 50
Get-CimInstance -ClassName Win32_QuickFixEngineering
Remove-Item C:\\Temp\\old_log.log -Force
Get-ChildItem -Recurse C:\\Scripts\\
Start-Sleep -Seconds 10
Get-HotFix -Id KB5005565
Get-ADGroup -Filter *
Disconnect-PSDrive Z
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
New-Item -Path C:\\Temp -ItemType Directory
whoami
