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