AllGPOs.ps1 (448B)
1 Write-Host "CYBER POLICE [Covert Ops] are now going to show all GPOs in domain..." -ForegroundColor Magenta 2 $thispath = Split-Path -parent $MyInvocation.MyCommand.Definition 3 $path = Split-Path -parent $thispath 4 $output = Get-content $path/CyberPoliceOutput/path.txt 5 Get-GPO -all | Out-File -FilePath $output/logs/AllGPOsLog.txt 6 Get-Content $output/logs/AllGPOsLog.txt 7 Write-Host "The CYBER POLICE [Covert Ops]: End of File" -ForegroundColor Magenta