Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Using RunAs fails

$
0
0

I need to run an .EXE as Administrator.   

Start_Process powershell -verb runas /user:administrator $ccmsetup $ cmswitch -Wait

 

When I run this I get the following error.

Start-Process : A positional parameter cannot be found that accepts argument 'c:\windows\ccmsetup\ccmsetup.exe /uninstall'

 

What is my syntax error?  I've tried using double quotes and I get the same error.  

 

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles