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