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