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