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