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