You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 1, 2021. It is now read-only.
PS C:\WINDOWS\system32> New-StoredCredential -Target O365 -UserName [email protected] -Persist LOCAL_MACHINE -Password mySuperSecretPassword
New-StoredCredential : Cannot bind parameter 'Persist'. Cannot convert value
"LOCAL_MACHINE" to type "PSCredentialManager.Common.Enum.CredPersist". Error:
"Unable to match the identifier name LOCAL_MACHINE to a valid enumerator name.
Specify one of the following enumerator names and try again:
Session, LocalMachine, Enterprise"
At line:1 char:82
+ ... -UserName [email protected] -Persist LOCAL_MACHINE -Passwo ...
+ ~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [New-StoredCredential], Par
ameterBindingException
+ FullyQualifiedErrorId : CannotConvertArgumentNoMessage,PSCredentialManag
er.Cmdlet.NewStoredCredential
Switched to LocalMachine as indicated by error message, working now.