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