Running PS as another user
ok, i'm on win2008 r2 box. open powershell (run admin) while logged in user 'setup'. run following:
$farmcred = get-credential contoso\farm
start-process $pshome\powershell.exe -credential $farmcred
i -
start-process : command cannot executed due error: service cannot started, either because d
isabled or because has no enabled devices associated it.
@ line:1 char:14
+ start-process <<<< $pshome\powershell.exe -credential $farmcred
+ categoryinfo : invalidoperation: (:) [start-process], invalidoperationexception
+ fullyqualifiederrorid : invalidoperationexception,microsoft.powershell.commands.startprocesscommand
the 'farm' account in local adminstrators group.
i don't know go solve this. suggestions great!
thanks.
gregm
Windows Server > Windows PowerShell
Comments
Post a Comment