Get-EventLog -LogName System -Newest 50
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Import-Module ActiveDirectory
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-ADOrganizationalUnit -Filter *
Start-Sleep -Seconds 10
Get-WmiObject Win32_OperatingSystem
Get-ADPrincipalGroupMembership svc_backup
Get-Content C:\\Scripts\\deploy.ps1
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-Service | Where-Object {.Name -like '*crypt*'}
Disconnect-PSDrive Z
Restart-Service -Name 'WinRM'
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-Process | Where-Object {.CPU -gt 100}
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-SmbShare
Get-ADPrincipalGroupMembership svc_backup
Get-EventLog -LogName System -Newest 50
Write-Host 'Operation terminée'
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-Process -Name powershell
Get-ChildItem -Recurse C:\\Scripts\\
Import-Module ActiveDirectory
Set-ExecutionPolicy RemoteSigned -Scope Process
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-NetIPAddress
Get-Service -Name WinRM | Format-List *
Get-Service -Name WinRM | Format-List *
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-ScheduledTask
Get-Process | Where-Object {.CPU -gt 100}
Get-HotFix -Id KB5005565
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Remove-Item C:\\Temp\\old_log.log -Force
New-Item -Path C:\\Temp -ItemType Directory
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-Service | Where-Object {.Status -eq 'Running'}
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-ADComputer -Filter *
Get-ADOrganizationalUnit -Filter *
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-NetIPAddress
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-EventLog -LogName System -Newest 50
Get-EventLog -LogName System -Newest 50
Get-NetFirewallProfile
hostname
Get-ADComputer -Filter *
Start-Sleep -Seconds 10
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-ADComputer -Filter *
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-EventLog -LogName System -Newest 50
Start-Sleep -Seconds 10
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-SmbShare
Get-Service | Where-Object {.Status -eq 'Running'}
New-Item -Path C:\\Temp -ItemType Directory
Restart-Service -Name 'WinRM'
Get-ADGroup -Filter *
Get-ChildItem -Recurse C:\\Scripts\\
Get-ADGroupMember 'Domain Admins'
Get-EventLog -LogName Application -Newest 50
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Remove-Item C:\\Temp\\old_log.log -Force
Get-ADUser svc_backup -Properties lastLogonTimestamp
Remove-Item C:\\Temp\\old_log.log -Force
Get-EventLog -LogName Application -Newest 50
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-ADServiceAccount -Filter * -Properties *
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Write-Host 'Operation terminée'
Get-ADGroup -Filter *
Get-Process | Where-Object {.CPU -gt 100}
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-Service | Where-Object {.Status -eq 'Running'}
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-SmbShare
systeminfo
Get-Service | Where-Object {.Status -eq 'Running'}
Get-SmbShare
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-Service | Where-Object {.Status -eq 'Running'}
Get-Credential
cls
Get-ChildItem -Recurse C:\\Scripts\\
Get-Process -Name powershell
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-Service | Where-Object {.Status -eq 'Running'}
Get-Credential
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-Process -Name powershell
Import-Module ActiveDirectory
Import-Module ActiveDirectory
hostname
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-SmbOpenFile
Get-ADPrincipalGroupMembership svc_backup
Get-LocalGroupMember -Group 'Administrators'
