Get-LocalGroupMember -Group 'Administrators'
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-Process | Where-Object {.CPU -gt 100}
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-NTFSAccess -Path C:\\SYSVOL
systeminfo
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-ADGroupMember 'Domain Admins'
Start-Sleep -Seconds 10
Write-Host 'Operation terminée'
cls
systeminfo
Write-Host 'Operation terminée'
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-ChildItem -Recurse C:\\Scripts\\
Get-CimInstance -ClassName Win32_QuickFixEngineering
systeminfo
Get-Content C:\\Scripts\\deploy.ps1
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-ADComputer -Filter *
Write-Host 'Operation terminée'
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Import-Module ActiveDirectory
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-ADPrincipalGroupMembership svc_backup
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-EventLog -LogName System -Newest 50
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-ScheduledTask
whoami
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-ChildItem -Recurse C:\\Scripts\\
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-EventLog -LogName System -Newest 50
ipconfig /all
Get-ADComputer -Filter *
Get-Service | Where-Object {.Status -eq 'Running'}
Get-ProcessMitigation -Name powershell.exe
Get-SmbOpenFile
Get-EventLog -LogName Application -Newest 50
systeminfo
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-Process | Where-Object {.CPU -gt 100}
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-Process | Where-Object {.CPU -gt 100}
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-NetFirewallProfile
Get-ADOrganizationalUnit -Filter *
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
cls
ipconfig /all
Get-NTFSAccess -Path C:\\SYSVOL
Restart-Service -Name 'WinRM'
Test-Connection -ComputerName dc01.novatech.local
Get-Content C:\\Scripts\\deploy.ps1
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-ADOrganizationalUnit -Filter *
systeminfo
Get-NetFirewallProfile
Get-ADUser svc_backup -Properties lastLogonTimestamp
hostname
ipconfig /all
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-WmiObject Win32_OperatingSystem
Get-Date
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
ipconfig /all
Get-NetFirewallProfile
Get-ADUser -Filter 'Enabled -eq True'
Remove-Item C:\\Temp\\old_log.log -Force
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-EventLog -LogName System -Newest 50
Get-ADPrincipalGroupMembership svc_backup
Set-Location C:\\Temp
Get-ADPrincipalGroupMembership svc_backup
Set-ExecutionPolicy RemoteSigned -Scope Process
cls
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-ADGroup -Filter *
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-NTFSAccess -Path C:\\SYSVOL
Get-NetIPAddress
Get-Service -Name WinRM | Format-List *
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-Process | Where-Object {.CPU -gt 100}
ipconfig /all
Get-Process | Where-Object {.CPU -gt 100}
Get-ScheduledTask
Get-Credential
Get-ADUser -Filter 'Enabled -eq True'
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-SmbSession
Remove-Item C:\\Temp\\old_log.log -Force
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-WmiObject Win32_OperatingSystem
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-ADOrganizationalUnit -Filter *
Get-EventLog -LogName Application -Newest 50
hostname
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-ADPrincipalGroupMembership svc_backup
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-Service -Name WinRM | Format-List *
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
