home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 67,422 of 68,980   
   ankitaggarwal03@gmail.com to John Gray   
   Re: Using CMDKEY in a PSEXEC batch file   
   12 Jun 19 00:53:17   
   
   On Saturday, 5 September 2015 17:59:07 UTC+5:30, John Gray  wrote:   
   > I am trying to apply CMDKEYto each of a number of Windows 7 Pro PCs   
   > in a workgroup using PsExec in an Elevated/Run as Administrator   
   > batch file run on an additional PC, using (on one line)   
   >   
   > psexec \\%pc% -h cmd /c CMDKEY /ADD:targetpc /USER:username /PASS:password   
   >   
   > and get   
   >   
   > CMDKEY: Credentials cannot be saved from this logon session.   
   >   
   > I've tried a number of variations on the PSEXEC parameters:   
   > * using /l instead of /h   
   > * omitting these parameters entirely   
   > * omitting cmd /c   
   > but I get the same error message.   
   >   
   > Has anyone got this to work, or can someone tell me what's wrong?   
   > If I run CMDKEY on any PC, it works correctly!   
      
   https://serverfault.com/a/971054/527108 you have to pass the session id of the   
   local user with PsExec.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca