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