Would be better. If the error persists, then you need to confirm that Ccmsetup.exe exists at that location on the remote computers. Also note that some uninstaller don’t like running in a remoting session; if this turns out to be one of those uninstallers, there’s really nothing you can do about it.
Hi Don, i’m studying your book for learning PS. so glad to see your response on my first question in this forum
Thank you for correction in script. I confirm that Ccmsetup.exe file does exist on remote computer. with a little bit more effort i found someone already uninstalled SCCM via PS remoting. I made changes accordingly in my script and it worked.