Hello
I want to update AD attribute (largeInteger) using powershell and directoryservices class and getting unspecified error when running the code..
$newObj1 = New-Object DirectoryServices.DirectoryEntry("LDAP://CN=myuser,OU=myOU,DC=mydomain,DC=com", "mydomain\myID", "Mypwd")
$xxDate = Get-Date
$xxDate = $xxDate.ToFileTime()
$newObj1.Properties["ms-MCS-AdmPwdExpirationTime"].Value = $xxDate
$newObj1.CommitChanges()