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