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