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