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