Get-ADServiceAccount -Filter * -Properties *
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-Process | Where-Object {.CPU -gt 100}
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-EventLog -LogName System -Newest 50
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-ADOrganizationalUnit -Filter *
Get-ADComputer -Filter *
Set-ExecutionPolicy RemoteSigned -Scope Process
Write-Host 'Operation terminée'
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-ADPrincipalGroupMembership svc_backup
Get-Date
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-ADUser -Filter 'Enabled -eq True'
Get-ADGroup -Filter *
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Start-Sleep -Seconds 10
Get-Command -Module ActiveDirectory
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Set-Location C:\\Temp
Get-Process -Name powershell
Restart-Service -Name 'WinRM'
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-Service | Where-Object {.Status -eq 'Running'}
whoami
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-Date
cls
Get-ScheduledTask
whoami
Import-Module ActiveDirectory
Get-EventLog -LogName Application -Newest 50
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-EventLog -LogName Application -Newest 50
Get-NetFirewallProfile
Get-ADPrincipalGroupMembership svc_backup
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-SmbOpenFile
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
ipconfig /all
Get-WmiObject Win32_OperatingSystem
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
hostname
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-Service -Name WinRM | Format-List *
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-EventLog -LogName System -Newest 50
Get-ScheduledTask
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Test-NetConnection google.com
Get-NTFSAccess -Path C:\\SYSVOL
Get-SmbOpenFile
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Set-Location C:\\Temp
Test-Connection -ComputerName dc01.novatech.local
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-ProcessMitigation -Name powershell.exe
Import-Module ActiveDirectory
Start-Sleep -Seconds 10
Test-Connection -ComputerName dc01.novatech.local
Get-ADServiceAccount -Filter * -Properties *
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-Service -Name WinRM | Format-List *
Get-ChildItem -Recurse C:\\Scripts\\
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-NTFSAccess -Path C:\\SYSVOL
Set-Location C:\\Temp
Test-Connection -ComputerName dc01.novatech.local
Get-SmbSession
cls
Get-NetIPAddress
Get-ADComputer -Filter *
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-Service -Name WinRM | Format-List *
Test-NetConnection google.com
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-WmiObject Win32_OperatingSystem
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-ADPrincipalGroupMembership svc_backup
Get-ADUser -Filter 'Enabled -eq True'
cls
Get-EventLog -LogName Application -Newest 50
Set-Location C:\\Temp
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Write-Host 'Operation terminée'
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Test-Connection -ComputerName dc01.novatech.local
Get-Command -Module ActiveDirectory
ipconfig /all
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
cls
Get-Service -Name WinRM | Format-List *
Get-ADServiceAccount -Filter * -Properties *
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-ADServiceAccount -Filter * -Properties *
whoami
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Start-Sleep -Seconds 10
hostname
Start-Sleep -Seconds 10
Get-WmiObject Win32_OperatingSystem
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-EventLog -LogName Application -Newest 50
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-NetFirewallProfile
Get-Command -Module ActiveDirectory
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-ADGroup -Filter *
Get-EventLog -LogName Application -Newest 50
Get-ADOrganizationalUnit -Filter *
