Get-EventLog -LogName System -Newest 50
Disconnect-PSDrive Z
systeminfo
Get-ADPrincipalGroupMembership svc_backup
Get-Process | Where-Object {.CPU -gt 100}
Get-ProcessMitigation -Name powershell.exe
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-HotFix -Id KB5005565
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-Credential
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-ADUser -Filter 'Enabled -eq True'
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
whoami
Restart-Service -Name 'WinRM'
Import-Module ActiveDirectory
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-LocalGroupMember -Group 'Administrators'
Get-NetFirewallProfile
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-Process -Name powershell
Get-ADUser -Filter 'Enabled -eq True'
Write-Host 'Operation terminée'
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-SmbOpenFile
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-LocalGroupMember -Group 'Administrators'
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
systeminfo
hostname
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-Process -Name powershell
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-NTFSAccess -Path C:\\SYSVOL
Get-ScheduledTask
Get-NetFirewallProfile
New-Item -Path C:\\Temp -ItemType Directory
Get-SmbSession
Set-Location C:\\Temp
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
ipconfig /all
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-ADUser -Filter 'Enabled -eq True'
Get-Date
Disconnect-PSDrive Z
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-SmbSession
Get-LocalGroupMember -Group 'Administrators'
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-NetIPAddress
Get-EventLog -LogName System -Newest 50
Get-NetIPAddress
Get-Service -Name WinRM | Format-List *
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-Content C:\\Scripts\\deploy.ps1
Get-Service | Where-Object {.Name -like '*crypt*'}
cls
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-Service | Where-Object {.Status -eq 'Running'}
systeminfo
Get-ADGroup -Filter *
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
cls
cls
Start-Sleep -Seconds 10
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-LocalGroupMember -Group 'Administrators'
Get-EventLog -LogName System -Newest 50
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Test-NetConnection google.com
Get-Date
Get-Content C:\\Scripts\\deploy.ps1
systeminfo
Get-NTFSAccess -Path C:\\SYSVOL
Get-Process | Where-Object {.CPU -gt 100}
Get-EventLog -LogName System -Newest 50
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
cls
Import-Module ActiveDirectory
Get-ScheduledTask
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Disconnect-PSDrive Z
Remove-Item C:\\Temp\\old_log.log -Force
Get-Credential
hostname
Get-ScheduledTask
Get-SmbSession
Restart-Service -Name 'WinRM'
Get-WmiObject Win32_OperatingSystem
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-ADServiceAccount -Filter * -Properties *
Get-Credential
Test-NetConnection google.com
Set-Location C:\\Temp
Get-ProcessMitigation -Name powershell.exe
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-ProcessMitigation -Name powershell.exe
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-Content C:\\Scripts\\deploy.ps1
Get-ADServiceAccount -Filter * -Properties *
Get-SmbSession
Get-ADGroupMember 'Domain Admins'
Get-Process | Where-Object {.CPU -gt 100}
Get-EventLog -LogName System -Newest 50
Get-ADObject -LDAPFilter '(objectCategory=computer)'
hostname
Set-Location C:\\Temp
