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