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