-
Notifications
You must be signed in to change notification settings - Fork 46
Running New-StoredCredential over WinRM produce error #20
Comments
Same for |
Could anyone fix it? |
Just passing through and saw this. Has anyone tried WinRM with CredSSP enabled? That typically resolves these types of errors. |
Yepp, I'm 95% sure I have tried CredSSP |
I'm facing precisely the same issue. I've done the following troubleshooting:
My troubleshooting research has indicated that the 1312 error frequently revolves around this statement: "A specified logon session does not exist. It may already have been terminated", and a lot of posts say you need an interactive session to create a full profile before Cred Manager interactions can occur. That said, I've tried establishing an interactive login session thus creating a local profile (and consequently logging off my interactive session), before running the WinRM command. The result was the same. Below is an exploded view of the error passed back by "invoke-command" when running new-storedcredential in a scriptblock:
|
Additional information:
|
For those looking into this issue, I did find a workaround. new-storedcredential does not like to be run remotely, but you can do the following (pseudocode because in a hurry):
Congrats! You will now find your stored credential in the context of the user you supplied in the scheduled task configuration. |
Hi,
I'm trying to execute the New-StoredCredential over WinRM session, and I'm getting this error:
This is the snippet I was running:
Is there any way I can work around this restriction?
Thank you
The text was updated successfully, but these errors were encountered: