Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - active directory

Reply
 
Old 04-21-2008   #1 (permalink)
Walser Mark


 
 

active directory

hello

I must change some properties by all active directory users.
see picture: user.jpg

maybe in english is that the register: environment

How can I do that?

Does everyone have some samples?

thanks
greets from switzerland

mark



My System SpecsSystem Spec
Old 04-21-2008   #2 (permalink)
Marco Shaw [MVP]


 
 

Re: active directory

Walser Mark wrote:
Quote:

> hello
> I must change some properties by all active directory users.
> see picture: user.jpg
>
> maybe in english is that the register: environment
>
> How can I do that?
>
> Does everyone have some samples?
>
> thanks greets from switzerland
>
> mark
>
>
> ------------------------------------------------------------------------
>
Sorry, it might help if you provide the details of the image in English...

Marco

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Old 04-22-2008   #3 (permalink)
mark walsr


 
 

Re: active directory

hello marco

I have a version in english, now.
I want disable this 3 options.

I hope you can help me.

thanks
mark
"Marco Shaw [MVP]" <marco.shaw@_NO_SPAM_gmail.com> schrieb im Newsbeitrag
news:udAZr58oIHA.4716@xxxxxx
Quote:

> Walser Mark wrote:
Quote:

>> hello
>> I must change some properties by all active directory users.
>> see picture: user.jpg
>>
>> maybe in english is that the register: environment
>>
>> How can I do that?
>>
>> Does everyone have some samples?
>>
>> thanks greets from switzerland
>>
>> mark
>>
>>
>> ------------------------------------------------------------------------
>>
>
> Sorry, it might help if you provide the details of the image in English...
>
> Marco
>
> --
> Microsoft MVP - Windows PowerShell
> http://www.microsoft.com/mvp
>
> PowerGadgets MVP
> http://www.powergadgets.com/mvp
>
> Blog:
> http://marcoshaw.blogspot.com





My System SpecsSystem Spec
Old 04-22-2008   #4 (permalink)
Marco Shaw [MVP]


 
 

Re: active directory

mark walsr wrote:
Quote:

> hello marco
>
> I have a version in english, now.
> I want disable this 3 options.
>
> I hope you can help me.
It seems do-able in VBScript:
http://www.msterminalservices.org/ar...r-Objects.html

I'm not able to find the method in PowerShell just yet...

Marco

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Old 04-22-2008   #5 (permalink)
Brandon Shell [MVP]


 
 

Re: active directory

The problem is those settings are store in a single attribute in AD called
userParameters. This value is a unicode string. The COM call from VBScript
abstracts each of the "properties" to their real location in AD.

Messing with this value (userParameter) directly is probably not a good idea.


Here is how you set/get them in Powershell

$user = [ADSI]"LDAP://<dn>"

# To Get
$user.psbase.InvokeGet('ConnectClientDrivesAtLogon')
$user.psbase.InvokeGet('ConnectClientPrintersAtLogon')
$user.psbase.InvokeGet('DefaultToMainPrinter')
# To Set
$user.psbase.InvokeSet('<property>','1') # Enable
$user.psbase.InvokeSet('<property>','0') # Disable

If you change something you will need to do a SetInfo() on the $user
$user.SetInfo()


Brandon Shell
---------------
Blog: http://www.bsonposh.com/
PSH Scripts Project: www.codeplex.com/psobject

M> mark walsr wrote:
M>
Quote:
Quote:

>> hello marco
>>
>> I have a version in english, now.
>> I want disable this 3 options.
>> I hope you can help me.
>>
M> It seems do-able in VBScript:
M> http://www.msterminalservices.org/ar...rver-Based-Com
M> puting-Terminal-Services-Attributes-Active-Directory-User-Objects.htm
M> l
M> I'm not able to find the method in PowerShell just yet...
M>
M> Marco
M>
M> PowerGadgets MVP
M> http://www.powergadgets.com/mvp
M> Blog:
M> http://marcoshaw.blogspot.com


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Active Directory Vista mail
Active Directory Vista General
Active Directory Vista networking & sharing
Active Directory PowerShell
active directory PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46