Hello,
I'm trying to execute a program using PowerShell, but didn't get it to work. Any further hints would be appreciated. Thank you.
Code:
$PsExecPath = "C:\PSTools\PsExec.exe" $ComputersList = Import-Csv C:\Resources\Computers.csv foreach ($Computer in $ComputersList) { Write-Host "Processing computer $Computer ..." ."$PsExecPath" -u CONTOSO\Administrator -p P@ssw0rd! -s \\$Computer C:\Windows\system32\ccmsetup\ccmsetup.exe /uninstall }