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