PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.win.server.scripting > Modify Terminal Services Environment Properties for a User Account
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Modify Terminal Services Environment Properties for a User Account

Réponse
 
LinkBack Outils de la discussion
Vieux 19/09/2007, 23h20   #1
Leo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Modify Terminal Services Environment Properties for a User Account

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
*********************************

  Réponse avec citation
Vieux 24/09/2007, 23h56   #2
Leo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut RE: Modify Terminal Services Environment Properties for a User Account

Can anybody with this .VBS, Please!!!!

"Leo" wrote:

> 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
> *********************************
>

  Réponse avec citation
Vieux 25/09/2007, 06h32   #3
Al Dunbar
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Modify Terminal Services Environment Properties for a User Account

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

"Leo" <Leo@discussions.microsoft.com> wrote in message
news:68BC8AAF-207E-497C-A43C-F4BA876E66AB@microsoft.com...
> Can anybody with this .VBS, Please!!!!
>
> "Leo" wrote:
>
>> 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
>> *********************************
>>



  Réponse avec citation
Vieux 25/09/2007, 15h34   #4
Leo
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Modify Terminal Services Environment Properties for a User Acc

Thank you Al Dunbar, I find way to do it

"Al Dunbar" wrote:

> 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
>
> "Leo" <Leo@discussions.microsoft.com> wrote in message
> news:68BC8AAF-207E-497C-A43C-F4BA876E66AB@microsoft.com...
> > Can anybody with this .VBS, Please!!!!
> >
> > "Leo" wrote:
> >
> >> 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
> >> *********************************
> >>

>
>
>

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 03h16.


Édité par : vBulletin® version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10705 seconds with 12 queries