Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

If I was in AD, the parameters would look like:
objUser.ConnectClientDrivesAtLogon = Enabled
objUser.ConnectClientPrintersAtLogon = Enabled
objUser.DefaultToMainPrinter = Enabled
objUser.TerminalServicesInitialProgram = "something"
objUser.TerminalServicesWorkDirectory = "c:\something"

But these don't work when not in AD. How do I programmatically set these values for local, non-AD users?

I'm not tied to vbscript, if you know of another way to do it.

share|improve this question
add comment

1 Answer 1

Those properties are not defined for accounts on a local computer.

Are the values going to be the same for every user? You could just configure the per-computer settings on your terminal server.

share|improve this answer
    
They will not be the same for every user. The values I'm trying to set are the checkboxes and fields on the Environment tab of a local Windows user. –  SeanFromIT Feb 3 '12 at 21:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.