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