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