You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Takes a PSCredential object and validates it against a domain or local machine
8
+
9
+
Borrows from a variety of sources online, don't recall which - apologies!
10
+
11
+
.PARAMETERCredential
12
+
A PScredential object with the username/password you wish to test. Typically this is generated using the Get-Credential cmdlet. Accepts pipeline input.
13
+
14
+
.PARAMETERContext
15
+
An optional parameter specifying what type of credential this is. Possible values are 'Domain','Machine',and 'ApplicationDirectory.' The default is 'Domain.'
16
+
17
+
.PARAMETERComputerName
18
+
If Context is machine, test local credential against this computer.
19
+
20
+
.PARAMETERDomain
21
+
If context is domain (default), test local credential against this domain. Default is current user's
22
+
23
+
.OUTPUTS
24
+
A boolean, indicating whether the credentials were successfully validated.
0 commit comments