This is a rather long shot, but I am trying to apply CMDKEY to each of a number of Windows 7 Pro PCs in a workgroup by using PsExec in an Elevated/Run as Administrator BATch file run on an additional PC, using (on one line):
[noparse]psexec \%pc% -h cmd /c CMDKEY /ADD:targetpc /USER:username /PASS:password[/noparse]
and get the message:
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 ever got this to work, or can someone tell me what’s wrong?
If I run CMDKEY natively on any PC it works correctly!
BATcher
Plethora means a lot to me.