|
|
|
@ -5,17 +5,17 @@
|
|
|
|
|
General
|
|
|
|
|
=======
|
|
|
|
|
|
|
|
|
|
The PSCredentialStore is an simple credential manager for PSCredentials. It stores multiple credential objects in a
|
|
|
|
|
simple json file. You can choose between a private and shared store. The private one exists in your profile and can
|
|
|
|
|
The PSCredentialStore is a simple credential manager for PSCredentials. It stores PSCredentials in a simple json
|
|
|
|
|
file. You can choose between a private and shared credential store. The private one exists in your profile and can
|
|
|
|
|
ony accessed by your account on the same machine. The shared store enables you to use different credentials for your
|
|
|
|
|
script without exposing them as plain text.
|
|
|
|
|
scripts without exposing them as plain text.
|
|
|
|
|
|
|
|
|
|
**The shared store isn't 100% secure and I don't recommend using it in production!**
|
|
|
|
|
|
|
|
|
|
PSCredentialStore was developed to simplify the delegation of complex powershell scripts. In this case you often
|
|
|
|
|
need to store credentials for non interactive usage like in scheduled tasks.
|
|
|
|
|
|
|
|
|
|
To get started read the [about_PSCredentialStore](/src/en-US/about_PSCredential.help.txt) page.
|
|
|
|
|
For more details read the [about_PSCredentialStore](/src/en-US/about_PSCredential.help.txt) page.
|
|
|
|
|
|
|
|
|
|
Installation
|
|
|
|
|
============
|
|
|
|
@ -32,27 +32,27 @@ Manual Way
|
|
|
|
|
|
|
|
|
|
* Take a look at the [Latest Release](https://github.com/OCram85/PSCredentialStore/releases/latest) page.
|
|
|
|
|
* Download the `PSCredentialStore.zip`.
|
|
|
|
|
* Unpack the Zip and put it in your Powershell Module path.
|
|
|
|
|
* Unpack the zip file and put it in your Powershell module path.
|
|
|
|
|
* Don't forget to change the NTFS permission flag in the context menu.
|
|
|
|
|
* Start with `Import-Module PSCredentialStore`
|
|
|
|
|
|
|
|
|
|
Quick Start
|
|
|
|
|
-----------
|
|
|
|
|
|
|
|
|
|
**1.** First we need a blank CredentialStore. You can decide between a *private* or *shared* store. The private
|
|
|
|
|
**1.** First we need a blank credential store. You can decide between a *private* or *shared* store. The private
|
|
|
|
|
Credential Store can only be accessed with your profile on the machine you created it.
|
|
|
|
|
```powershell
|
|
|
|
|
# Private Credential Store
|
|
|
|
|
# Private credential store
|
|
|
|
|
New-CredentialStore
|
|
|
|
|
|
|
|
|
|
# Shared Credential Store
|
|
|
|
|
# Shared credential rtore
|
|
|
|
|
New-CredentialStore -Shared
|
|
|
|
|
|
|
|
|
|
#Shared CredentialStore in custom Location
|
|
|
|
|
#Shared credential store in custom Location
|
|
|
|
|
New-CredentialStore -Shared -Path 'C:\CredentialStore.json'
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
**2.** Now you can manage your CredentialStoreItems:
|
|
|
|
|
**2.** Now you can manage your credential store items:
|
|
|
|
|
```powershell
|
|
|
|
|
# This will prompt for credentials and stores it in a private store
|
|
|
|
|
New-CredentialStoreItem -RemoteHost 'dc01.myside.local' -Identifier 'AD'
|
|
|
|
@ -62,8 +62,8 @@ $DCCreds = Get-CredentialStoreItem -RemoteHost 'dc01.myside.local' -Identifier '
|
|
|
|
|
Invoke-Command -ComputerName 'dc01.myside.local' -Credential $DCCreds -ScripBlock {Get-Process}
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
The CredentialStore contains also a simple function to establish a connection with several systems or protocols.
|
|
|
|
|
If you have already installed the underlying framework your can connect to:
|
|
|
|
|
The credential store contains also a simple function to establish a connection with several systems or protocols.
|
|
|
|
|
If you have already installed the underlying framework / modules, you can connect these endpoints:
|
|
|
|
|
|
|
|
|
|
* **CiscoUcs** - Establish a connection to a Cisco UCS fabric interconnect.
|
|
|
|
|
* Required Modules: [`Cisco.UCS.Core`, `Cisco.UCSManager`](https://software.cisco.com/download/release.html?i=!y&mdfid=286305108&softwareid=284574017&release=2.1.1)
|
|
|
|
|