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