en-US/about_Get-CUCredentialManagerContents.help.txt

.EXTERNALHELP Get-CUCredentialManagerContents-help.xml
 
.NOTES
  NAME: about_Get-CUCredentialManagerContents
 
.DESCRIPTION
  The Get-CUCredentialManagerContents function returns Credential Manager entry
  metadata for the current user context, including remote interactive user
  sessions.
 
  It uses `cmdkey /list` and parses only metadata fields (Target, Type, User,
  Persistence, Comment). No secret material is read or returned.
 
  For remote hosts, this function can query the active interactive session by
  creating a short-lived scheduled task in the interactive user context on the
  target machine. This allows administrators to inspect Credential Manager
  entries for users logged into remote systems without requiring direct access
  to their profiles.
 
.PARAMETER ComputerName
  One or more computer names to query. Defaults to localhost.
 
  Specifies the target computers to retrieve Credential Manager metadata from.
  Can accept an array of strings.
 
.PARAMETER Credential
  Credential used for remoting.
 
  Provides the PSCredential object required for authenticating remote sessions
  when querying other machines.
 
.PARAMETER UseSsh
  Use SSH transport instead of WSMan when creating remote sessions.
 
  Switch parameter that forces the use of SSH as the remoting protocol rather
  than Windows Remote Management (WSMan).
 
.PARAMETER UseCredSSP
  Use CredSSP for WSMan remoting.
 
  Switch parameter that enables Credential Security Support Provider (CredSSP)
  authentication, allowing credentials to be delegated to remote servers. This
  is often required for accessing network resources from the remote session.
 
.PARAMETER Port
  SSH port when -UseSsh is specified.
 
  Specifies the TCP port number for the SSH connection. Defaults to 22 if not
  explicitly provided and UseSsh is used.
 
.PARAMETER Ps7ConfigName
  WSMan PowerShell 7 endpoint name.
 
  Specifies the name of the PowerShell 7 (Core) configuration endpoint on remote
  machines when using WSMan remoting. Defaults to 'PowerShell.7'.
 
.PARAMETER WinPsConfigName
  WSMan Windows PowerShell endpoint name.
 
  Specifies the name of the Windows PowerShell (Legacy/Full .NET Framework)
  configuration endpoint on remote machines when using WSMan remoting. Defaults
  to 'Microsoft.PowerShell'.
 
.PARAMETER UserName
  SSH username when not using PSCredential.
 
  Specifies the user account name for authentication when using SSH transport
  and key-based or password-less methods where a full PSCredential object is not
  provided.
 
.PARAMETER KeyFilePath
  SSH private key path when using key-based authentication.
 
  Specifies the file path to the private SSH key used for authentication. This
  parameter is relevant only when UseSsh is specified and key-based auth is
  preferred over password or other methods.
 
.INPUTS
  None. You cannot pipe objects to Get-CUCredentialManagerContents directly,
  although ComputerName can be passed via pipeline properties if aliases are
  configured appropriately in the function definition
  (ValueFromPipeline/ValueFromPipelineByPropertyName).
 
.OUTPUTS
  [pscustomobject[]] An array of custom objects containing metadata fields for
  each Credential Manager entry found on the specified computers.
 
.EXAMPLE
  Get-CUCredentialManagerContents
 
  Description: Retrieves Credential Manager metadata for the current user on the
  local machine (localhost). It parses the output of cmdkey /list and returns
  structured data including Target, Type, User, Persistence, and Comment fields.
 
.EXAMPLE
  Get-CUCredentialManagerContents -ComputerName 'RemotePC01', 'RemotePC02'
 
  Description: Retrieves Credential Manager metadata from two remote computers.
  This requires appropriate permissions and remoting configuration on the target
  machines.
 
.EXAMPLE
  Get-CUCredentialManagerContents -ComputerName 'RemotePC01' -Credential
  (Get-Credential) -UseCredSSP
 
  Description: Retrieves Credential Manager metadata from RemotePC01 using
  CredSSP authentication. The user will be prompted for credentials, which are
  then delegated to the remote session.
 
.EXAMPLE
  Get-CUCredentialManagerContents -ComputerName 'RemotePC01' -UseSsh
  -KeyFilePath 'C:\Keys\id_rsa'
 
  Description: Retrieves Credential Manager metadata from RemotePC01 using SSH
  transport with key-based authentication. The specified private key file is
  used for identity verification.
 
.LINK
  [TechToolbox](https://github.com/dan-damit/TechToolbox)