Setting the user's profile path to blank in AD

Tech-Archive recommends: Fix windows errors by optimizing your registry



I need a script that will cause the profile path to be blank.

I have tried the following:

Set objUser = GetObject
(LDAP://cn=JoeBlow,ou=MyOgranizationUnit,dc=DomainName,dc=com";)
objUser.ProfilePath = ""
objUser.SetInfo

Also:

Set objUser = GetObject
(LDAP://cn=JoeBlow,ou=MyOgranizationUnit,dc=DomainName,dc=com";)
objUser.ProfilePath = Null
objUser.SetInfo

I get a "syntax invalid" error.

Any suggestions?


.



Relevant Pages

  • Password Last Changed script for all users...
    ... Consider the following script: ... Set objUser = GetObject _ ... dtmValue = objUser.PasswordLastChanged ...
    (microsoft.public.windows.server.scripting)
  • ADSI Scripting Help Set Sequential Users
    ... I can't figure out how to get my script to loop properly. ... Set objUser = GetObject _ ... I need to change some attributes for accounts that are numbered sequentially. ...
    (microsoft.public.windows.server.active_directory)
  • for loop on this
    ... How do i change this script to use a loop ... Set objUser = GetObject _ ...
    (microsoft.public.windows.server.scripting)
  • Terminal Server Profiles
    ... I've downloaded a script from the script repository which should show me the ... Set objUser = GetObject _ ... I've tried running it on domain controllers, ...
    (microsoft.public.windows.server.scripting)
  • Re: HELP!!! Please OU and LDAP stuff
    ... There is a sample script from MS ScriptCenter that does some of the ... Set objUser = GetObject _ ... Wscript.Echo "Profile Path: " & objUser.ProfilePath ... > Terminal Server User Profile ...
    (microsoft.public.scripting.vbscript)