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