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