Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows Server 2003Windows 2000Windows NTSmall Business ServerVirtual ServerExchange ServerIISHost Integration ServerISA ServerSMSWSUSMOMWindows Media ServerSecurityCertification
Related Topics
SQL ServerMS WindowsMS OfficePC HardwareMore Topics ...

Windows Server Forum / Windows Server 2003 / Scripting / September 2007

Tip: Looking for answers? Try searching our database.

Modify Terminal Services Environment Properties for a User Account

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Leo - 19 Sep 2007 22:20 GMT
Hello,
I have following script for AD user. How to make it run on stand alone
server with no AD?
Thanks.

*********************
Const Enabled = 1
Const Disabled = 0

Set objUser = GetObject _
   ("LDAP://cn=MyerKen,ou=Management,dc=NA,dc=fabrikam,dc=com")

objUser.ConnectClientDrivesAtLogon = Enabled
objUser.ConnectClientPrintersAtLogon = Enabled
objUser.DefaultToMainPrinter = Enabled
objUser.TerminalServicesInitialProgram = "cmd"
objUser.TerminalServicesWorkDirectory = "c:\temp"
objUser.SetInfo
*********************************
Leo - 24 Sep 2007 22:56 GMT
Can anybody help with this .VBS, Please!!!!

> Hello,
> I have following script for AD user. How to make it run on stand alone
[quoted text clipped - 15 lines]
> objUser.SetInfo
> *********************************
Al Dunbar - 25 Sep 2007 05:32 GMT
What do you want it to do on a standalone server? Do you want it to operate
on accounts that are NOT active directory accounts? If so, what kind of
accounts are they, and do they have the equivalent attributes to those your
script is manipulating?

If it is just a case of running the script to test this kind of scripting, I
understand that there is an AD-simulating package (called, I think, "Adam").
You might try googling for that.

/Al

> Can anybody help with this .VBS, Please!!!!
>
[quoted text clipped - 17 lines]
>> objUser.SetInfo
>> *********************************
Leo - 25 Sep 2007 14:34 GMT
Thank you Al Dunbar, I find way to do it :)

> What do you want it to do on a standalone server? Do you want it to operate
> on accounts that are NOT active directory accounts? If so, what kind of
[quoted text clipped - 28 lines]
> >> objUser.SetInfo
> >> *********************************
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.