I've used LDP.EXE to examine the properties, I'll post the clips of the section in question.
What I need is:
1> codePage: 0;
1> countryCode: 840;
1> badPasswordTime: 3/15/2006 13:9:12 Central Standard Time Central Daylight Time;
1> lastLogoff: 0;
What I have:
1> codePage: 0;
1> countryCode: 840;
1> homeDirectory: \\fileserver\share;
1> homeDrive: H:;
1> badPasswordTime: 3/15/2006 13:9:12 Central Standard Time Central Daylight Time;
1> lastLogoff: 0;
I need a script to clear the "homeDirectory" and "homeDrive" elements from the user profile. I've already tried:
Set objUser = GetObject _
("LDAP://CN=TestUser,OU=My Users,OU=My Company,DC=mydomain,DC=com")
objUser.PutEx ADS_PROPERTY_CLEAR, "homeDirectory", 0
objUser.PutEx ADS_PROPERTY_CLEAR, "homeDrive", 0
objUser.SetInfo
No luck.
Start, Help. You'll be surprised what's there. A+/MCP/MCSE/MCDBA