Write-Host 'Operation terminée'
Get-Process -Name powershell
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-NetIPAddress
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-Date
Get-NetFirewallProfile
Get-ScheduledTask
ipconfig /all
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Test-NetConnection google.com
whoami
Get-ADOrganizationalUnit -Filter *
Get-ADPrincipalGroupMembership svc_backup
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-HotFix -Id KB5005565
hostname
Start-Sleep -Seconds 10
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-SmbOpenFile
Get-WmiObject Win32_OperatingSystem
Get-EventLog -LogName Application -Newest 50
Import-Module ActiveDirectory
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Test-NetConnection google.com
New-Item -Path C:\\Temp -ItemType Directory
cls
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-SmbSession
Get-Process | Where-Object {.CPU -gt 100}
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Import-Module ActiveDirectory
Get-Service -Name WinRM | Format-List *
Get-ProcessMitigation -Name powershell.exe
Get-NetIPAddress
New-Item -Path C:\\Temp -ItemType Directory
Get-ADGroup -Filter *
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
systeminfo
Get-ADComputer -Filter *
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-SmbShare
Get-SmbSession
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-Process | Where-Object {.CPU -gt 100}
Get-Process | Where-Object {.CPU -gt 100}
Get-NetFirewallProfile
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-ScheduledTask
whoami
Get-Service -Name WinRM | Format-List *
Get-SmbOpenFile
New-Item -Path C:\\Temp -ItemType Directory
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-WmiObject Win32_OperatingSystem
cls
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-WmiObject Win32_OperatingSystem
Get-ChildItem -Recurse C:\\Scripts\\
Get-Credential
Get-SmbSession
Get-NetFirewallProfile
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-CimInstance -ClassName Win32_QuickFixEngineering
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-Content C:\\Scripts\\deploy.ps1
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-ADComputer -Filter *
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Set-Location C:\\Temp
Get-ADOrganizationalUnit -Filter *
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-ADPrincipalGroupMembership svc_backup
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
ipconfig /all
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
whoami
Write-Host 'Operation terminée'
Get-ProcessMitigation -Name powershell.exe
Get-NetIPAddress
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-SmbOpenFile
Set-ExecutionPolicy RemoteSigned -Scope Process
cls
New-Item -Path C:\\Temp -ItemType Directory
Get-ADServiceAccount -Filter * -Properties *
whoami
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Set-Location C:\\Temp
Set-Location C:\\Temp
Test-NetConnection google.com
Get-Process -Name powershell
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-ADOrganizationalUnit -Filter *
Get-ChildItem -Recurse C:\\Scripts\\
Get-ADUser -Filter 'Enabled -eq True'
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-SmbSession
Write-Host 'Operation terminée'
Get-ProcessMitigation -Name powershell.exe
whoami
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
whoami
Get-NetIPAddress
whoami
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
systeminfo
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
