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