PSCredentialManager is a PowerShell module that allows the user to manage cached credentials across the local, a remote or many remote computers at once. By it's nature, cached credentials are usually managed on local machines only. However, by using a combination of the great psexec
tool and the cmdkey
utility, a PowerShell module can be crafted around these tools to provide a seamless way to list, add and remove cached credentials from many computers at once!
PS> Get-CachedCredential
PS> Get-CachedCredential -ComputerName REMOTE
PS> Get-CachedCredential -ComputerName REMOTE -TargetName FOO
PS> Get-CachedCredential -ComputerName REMOTE,REMOTE2,REMOTE3
PS> New-CachedCreential -TargetName 'FOO' -UserName userhere -Password passhere
PS> Remove-CachedCreential