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