We are having issues with SCCM clients, so we are uninstalling them and re-installing them. When I run ccmsetup.exe /uninstall it returns errors sometimes. Running msiexec /x client.msi seems to work better (not sure why). I created a script so to run, but when i have it run the “msiexec /x client.msi” it errors out with the “Start-Process” command.
Start-Process msiexec /x client.msi -workingDirectory "c:\windows\system32\ccmsetup…
so i tried to an Invoke-Expression after reading that powershell has issues sometimes with running cmd commands.
$a = @’
cmd.exe C/ c:\windows\system32\ccmsetup\msiexec /x client.msi
I can get it to run using start process if i just use “msiexec /x” , but it doesn’t full run and errors out without “client.msi” being called.
I appreciate any help