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