Skip to content

Commit

Permalink
New auth mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
foxynet committed Nov 11, 2013
1 parent b41ac79 commit dec963c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion syncUser-ocfWWField.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ if(-Not (Get-ADGroup -Filter {SamAccountName -eq $groupIdentity}) )
Exit 1
}

$creds = Get-Credential
$username = "c_oc_f_memldap"
$password = cat C:\code\pw\$username.txt | convertto-securestring

$creds = new-object -typename System.Management.Automation.PSCredential -argumentlist "VMWAREM\$username", $password

# Find members in Group

Expand Down

0 comments on commit dec963c

Please sign in to comment.