Accessing Windows Credential Manager from PowerShell

前端 未结 5 1951
忘了有多久
忘了有多久 2020-12-04 22:38

I\'m using PowerShell 2.0 (necessary because of SP2010) On Windows Server 2008 R2. I need to retrieve credentials for a process from the Windows Credential Manager. I can\'t

5条回答
  •  我在风中等你
    2020-12-04 23:26

    In powershell5 type:

       Install-Module CredentialManager -force
    

    Then

       New-StoredCredential -Target $url -Username $ENV:Username -Pass ....
    

    and later

       Get-StoredCredential -Target .... 
    

    Source code for the module is https://github.com/davotronic5000/PowerShell_Credential_Manager

提交回复
热议问题