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