i recently discovered our login script is running twice cos it's in the group policy and on the user profile 'login script' attribute. a legacy from migrating from NT no doubt
have tried to create a vbscript to wipe the attributes but there's a problem. it works if i try and set the value to something else but fails if i try to set it to ""
set objParent = GetObject("LDAP://ou=pupils,dc=domain")
objParent.Filter = Array("user")
for each objUser in objParent
Wscript.Echo "Modifying " & objUser.Get("sAMAccountName")
objUser.ScriptPath = ""
with "" i get the error the attribute syntax specified to the directory service is invalid
with NULL i get the error unspecified error.