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