ADSI - How do I set the user property userworkstations to allow logins to all computers.

Posted on 2006-07-01
Last Modified: 2008-01-09

I have come training users restricted to thetraiing computers only but this had caused problems with Citrix which I have not been able to solve.

I need to remove the computers from the userworkstation property but if I try to set it to "" or null I get an error.

I'm using   objUser.Put "userWorkStations", Null

Using objUser.Put "userWorkStations", "computer1,computer2" works fine

Any Ideas?
Question by:dgooderi
  • 2
LVL 16

Accepted Solution

mdiglio earned 500 total points
ID: 17024939
This solution came from the folowing website:

you'll have to modify line 4 ( begins w/ ldap ) line to fit your environment

Set objUser = GetObject _
    ("LDAP://cn=Ken Myer,ou=Finance,dc=fabrikam,dc=com")
objUser.PutEx ADS_PROPERTY_CLEAR, "userWorkstations", 0

Author Comment

ID: 17025095
Fantastic and prompt answer - Worked first time.

I should have looked there in the first place.

LVL 16

Expert Comment

ID: 17027007
Glad it worked for you!
Thanks for the points

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have never ceased to be amazed how many problems you can encounter on a fresh install of a Windows operating system.  This is certainly case in point& Unable to complete ANY MSI installation.  This means Windows Updates are failing and I can't …
This may not be a text book method to resolve VSS backup issues but it seemed to have worked on few of the Windows 2003 servers we had issues while performing a Volume Shadow Copy backup. If you have issues while performing a shadow copy backup usin…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now