From 96dc090f7e710d5152a4cd1f63b21d57dc09e011 Mon Sep 17 00:00:00 2001 From: Warren Frame Date: Tue, 6 Oct 2015 16:47:19 -0400 Subject: [PATCH] add example --- Test-Credential.ps1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Test-Credential.ps1 b/Test-Credential.ps1 index e2c90146..7fc7a9c9 100644 --- a/Test-Credential.ps1 +++ b/Test-Credential.ps1 @@ -37,6 +37,13 @@ #Test credential for a local account Test-Credential -ComputerName SomeComputer -Credential $cred + .EXAMPLE + #I provide my AD account credentials for domain2 + $cred = get-credential + + #Test credential for an active directory account + Test-Credential -Credential $cred -Domain domain2.com + .FUNCTIONALITY Active Directory