LogServices.ps1 (424B)
1 Write-Host "CYBER POLICE [Covert Ops] are now going to log all current services..." -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-Service | Out-File -FilePath $output/logs/RawServicesLog.txt 6 Get-Service 7 Write-Host "The CYBER POLICE [Covert Ops]: End of File" -ForegroundColor Magenta