windowsfan
IS-IT--Management
Need help to come up with a script which loops thorugh Active Directory and find the user account which are configured with roaming profile and delete the roaming profile path. I found the below script , how can I modify the script to loop through all users in OU and set path =blank?
Set objUser = GetObject _
("LDAP://cn=myerken,ou=management,dc=fabrikam,dc=com")
objUser.Put "profilePath", "\\sea-dc-01\Profiles\myerken"
objUser.SetInfo
Set objUser = GetObject _
("LDAP://cn=myerken,ou=management,dc=fabrikam,dc=com")
objUser.Put "profilePath", "\\sea-dc-01\Profiles\myerken"
objUser.SetInfo