Get-NetFirewallProfile
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Write-Host 'Operation terminée'
Get-SmbOpenFile
Restart-Service -Name 'WinRM'
systeminfo
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-Service -Name WinRM | Format-List *
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-NetIPAddress
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-Service | Where-Object {.Status -eq 'Running'}
Get-Process -Name powershell
Disconnect-PSDrive Z
Get-ADPrincipalGroupMembership svc_backup
Get-NetFirewallProfile
Get-NetFirewallProfile
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-EventLog -LogName System -Newest 50
Get-NetIPAddress
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
hostname
Get-ADPrincipalGroupMembership svc_backup
Test-Connection -ComputerName dc01.novatech.local
Remove-Item C:\\Temp\\old_log.log -Force
Get-EventLog -LogName System -Newest 50
Get-Date
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-NetIPAddress
Get-HotFix -Id KB5005565
ipconfig /all
Test-NetConnection google.com
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-Date
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-ProcessMitigation -Name powershell.exe
Get-HotFix -Id KB5005565
Get-ADGroupMember 'Domain Admins'
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-EventLog -LogName System -Newest 50
Get-ADUser -Filter 'Enabled -eq True'
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Set-Location C:\\Temp
Remove-Item C:\\Temp\\old_log.log -Force
cls
Get-Command -Module ActiveDirectory
Get-Process | Where-Object {.CPU -gt 100}
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Start-Sleep -Seconds 10
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-ADComputer -Filter *
Get-LocalGroupMember -Group 'Administrators'
New-Item -Path C:\\Temp -ItemType Directory
Get-Content C:\\Scripts\\deploy.ps1
Get-ADOrganizationalUnit -Filter *
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-ADGroup -Filter *
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-Process | Where-Object {.CPU -gt 100}
Get-HotFix -Id KB5005565
cls
Get-ADGroup -Filter *
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-LocalGroupMember -Group 'Administrators'
Get-CimInstance -ClassName Win32_QuickFixEngineering
ipconfig /all
Get-LocalGroupMember -Group 'Administrators'
Get-ProcessMitigation -Name powershell.exe
Get-EventLog -LogName System -Newest 50
Get-Content C:\\Scripts\\deploy.ps1
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-LocalGroupMember -Group 'Administrators'
Get-EventLog -LogName Application -Newest 50
hostname
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
cls
Test-Connection -ComputerName dc01.novatech.local
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-Command -Module ActiveDirectory
Get-Command -Module ActiveDirectory
Get-ScheduledTask
Get-ADPrincipalGroupMembership svc_backup
Set-ExecutionPolicy RemoteSigned -Scope Process
Test-NetConnection google.com
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
ipconfig /all
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-ChildItem -Recurse C:\\Scripts\\
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-ADGroupMember 'Domain Admins'
Get-LocalGroupMember -Group 'Administrators'
Get-Process | Where-Object {.CPU -gt 100}
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
ipconfig /all
Get-Credential
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-LocalGroupMember -Group 'Administrators'
Get-NTFSAccess -Path C:\\SYSVOL
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
ipconfig /all
Get-NTFSAccess -Path C:\\SYSVOL
Get-Date
cls
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-LocalGroupMember -Group 'Administrators'
