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