|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Get-NaCredential
NAME
Get-NaCredential
SYNOPSIS
List entries in the credentials cache.
SYNTAX
Get-NaCredential [[-Controller] <NaController>] [-SystemScope [<Boolean>]] [
<CommonParameters>]
Get-NaCredential [-Name] <String> [-SystemScope [<Boolean>]] [<CommonParamet
ers>]
DESCRIPTION
List entries in the credentials cache. Only entries that are usable by the
current user are listed. This may include credentials that were saved with
user or system scope.
PARAMETERS
-Controller <NaController>
An NaController object, as returned by Connect-NaController. If neither
this parameter nor -Name is specified, this cmdlet will return all entr
ies visible to the current user.
Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-SystemScope [<Boolean>]
Specify true to get credentials with system-wide scope, false for user-s
pecific credentials, or null for all credentials.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Name <String>
The name or address of a storage controller. If a host name is specifie
d, it must be resolvable to an address. Wildcards are supported. If ne
ither this parameter nor -Name is specified, this cmdlet will return all
entries visible to the current user.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".
INPUTS
OUTPUTS
DataONTAP.PowerShell.SDK.Cmdlets.Toolkit.Credentials.NaCredential
NOTES
Category: toolkit
-------------- Example 1 --------------
C:\PS>Get-NaCredential | ft -AutoSize
List all credentials visible to the current user.
Name Credential HostUser
---- ---------- --------
dunn System.Management.Automation.PSCredential RTPRRE\Administrator
dunn System.Management.Automation.PSCredential SYSTEM
benson System.Management.Automation.PSCredential RTPRRE\Administrator
-------------- Example 2 --------------
C:\PS>Connect-NaController dunn -Credential (Get-NaCredential dunn -SystemSc
ope $false).Credential
Connect using credentials that are explicitly pulled from the credentials ca
che.
Name : dunn
Address : 10.61.167.60
Ontapi : 1.12
Version : NetApp Release 7.3.3: Thu Mar 11 22:29:52 PST 2010
Protocol : HTTPS
Port : 443
Vfiler :
RELATED LINKS
Add-NaCredential
Remove-NaCredential
| Copyright © 2013 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|