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

is "secondary logon" service running on machine?  if not, try starting it.


Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Edit Group Policy

Hyper-V VM not reaching OS 'Logon' screen

DNS question...