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 - Configure Exchange management shell to use Specific Domain Control

Reply
 
Old 08-08-2008   #1 (permalink)
Sean Hook


 
 

Configure Exchange management shell to use Specific Domain Control

Following exchange best pracitces, you should not use remote desktop to
manage and exchange server. That is fine and all, but our policies state that
all changes are made to a specifice Domain controller that happens to be in
the same site as the servers.

How can I setup my local exchange management shell (powershell) to make its
changes only against a DC in another site?

Thanks in advance to any help.

My System SpecsSystem Spec
Old 08-08-2008   #2 (permalink)
Shay Levy [MVP]


 
 

Re: Configure Exchange management shell to use Specific Domain Control

Hi Sean,


Check this Set-ExchangeServer cmdlet parameters:

-DomainController <Fqdn>
This parameter specifies the domain controller that is used by the
command.

-StaticConfigDomainController <String>
This parameter is used to configure a domain controller to be used
by the server via DSAccess.

-StaticDomainControllers <MultiValuedProperty>
This parameter is used to configure a list of domain controllers
to be used by the server via Directory Service Access (DSAccess).

-StaticExcludedDomainControllers <MultiValuedProperty>
This parameter is used to exclude a list of domain controllers to
be used by the server.

-StaticGlobalCatalogs <MultiValuedProperty>
This parameter is used to configure a list of global catalogs to
be used by the server via DSAccess.



---
Shay Levy
Windows PowerShell MVP
http://blogs.microsoft.co.il/blogs/ScriptFanatic



SH> Following exchange best pracitces, you should not use remote desktop
SH> to manage and exchange server. That is fine and all, but our
SH> policies state that all changes are made to a specifice Domain
SH> controller that happens to be in the same site as the servers.
SH>
SH> How can I setup my local exchange management shell (powershell) to
SH> make its changes only against a DC in another site?
SH>
SH> Thanks in advance to any help.
SH>


My System SpecsSystem Spec
Old 08-08-2008   #3 (permalink)
Sean Hook


 
 

Re: Configure Exchange management shell to use Specific Domain Con

The suggested commands set what Domain controller a particular exchange
server will use.

My understanding is that when you use the exchange command shell, it will
execute the changes to AD to whatever domain controller resonds to the
connection (so when run locally it find a DC in my site - not the site where
changes are supposed to be made).

"Shay Levy [MVP]" wrote:
Quote:

> Hi Sean,
>
>
> Check this Set-ExchangeServer cmdlet parameters:
>
> -DomainController <Fqdn>
> This parameter specifies the domain controller that is used by the
> command.
>
> -StaticConfigDomainController <String>
> This parameter is used to configure a domain controller to be used
> by the server via DSAccess.
>
> -StaticDomainControllers <MultiValuedProperty>
> This parameter is used to configure a list of domain controllers
> to be used by the server via Directory Service Access (DSAccess).
>
> -StaticExcludedDomainControllers <MultiValuedProperty>
> This parameter is used to exclude a list of domain controllers to
> be used by the server.
>
> -StaticGlobalCatalogs <MultiValuedProperty>
> This parameter is used to configure a list of global catalogs to
> be used by the server via DSAccess.
>
>
>
> ---
> Shay Levy
> Windows PowerShell MVP
> http://blogs.microsoft.co.il/blogs/ScriptFanatic
>
>
>
> SH> Following exchange best pracitces, you should not use remote desktop
> SH> to manage and exchange server. That is fine and all, but our
> SH> policies state that all changes are made to a specifice Domain
> SH> controller that happens to be in the same site as the servers.
> SH>
> SH> How can I setup my local exchange management shell (powershell) to
> SH> make its changes only against a DC in another site?
> SH>
> SH> Thanks in advance to any help.
> SH>
>
>
>
My System SpecsSystem Spec
Old 08-10-2008   #4 (permalink)
Shay Levy [MVP]


 
 

Re: Configure Exchange management shell to use Specific Domain Con

Hi Sean,


Looks to me that one (or more) of this parameters are what you need. Have
you tried'em?
I don't have Ex2007 on a large scale AD topology so I can't test it.


---
Shay Levy
Windows PowerShell MVP
http://blogs.microsoft.co.il/blogs/ScriptFanatic



SH> The suggested commands set what Domain controller a particular
SH> exchange server will use.
SH>
SH> My understanding is that when you use the exchange command shell, it
SH> will execute the changes to AD to whatever domain controller resonds
SH> to the connection (so when run locally it find a DC in my site - not
SH> the site where changes are supposed to be made).
SH>
SH> "Shay Levy [MVP]" wrote:
SH>
Quote:
Quote:

>> Hi Sean,
>>
>> Check this Set-ExchangeServer cmdlet parameters:
>>
>> -DomainController <Fqdn>
>> This parameter specifies the domain controller that is used by the
>> command.
>> -StaticConfigDomainController <String>
>> This parameter is used to configure a domain controller to be used
>> by the server via DSAccess.
>> -StaticDomainControllers <MultiValuedProperty>
>> This parameter is used to configure a list of domain controllers
>> to be used by the server via Directory Service Access (DSAccess).
>> -StaticExcludedDomainControllers <MultiValuedProperty>
>> This parameter is used to exclude a list of domain controllers to
>> be used by the server.
>> -StaticGlobalCatalogs <MultiValuedProperty>
>> This parameter is used to configure a list of global catalogs to
>> be used by the server via DSAccess.
>> ---
>> Shay Levy
>> Windows PowerShell MVP
>> http://blogs.microsoft.co.il/blogs/ScriptFanatic
>> SH> Following exchange best pracitces, you should not use remote
>> desktop
>> SH> to manage and exchange server. That is fine and all, but our
>> SH> policies state that all changes are made to a specifice Domain
>> SH> controller that happens to be in the same site as the servers.
>> SH>
>> SH> How can I setup my local exchange management shell (powershell)
>> to
>> SH> make its changes only against a DC in another site?
>> SH>
>> SH> Thanks in advance to any help.
>> SH>

My System SpecsSystem Spec
Old 08-10-2008   #5 (permalink)
Steven


 
 

Re: Configure Exchange management shell to use Specific Domain Con

Pretty much all Exchange cmdlets have a -DomainController parameter that
you can use to control where changes are made (or reads for that
matter). For example:

Get-Mailbox -Identity UserA | Set-Mailbox -displayName "UserB"
-DomainController siteA.domain.com



Sean Hook wrote:
Quote:

> The suggested commands set what Domain controller a particular exchange
> server will use.
>
> My understanding is that when you use the exchange command shell, it will
> execute the changes to AD to whatever domain controller resonds to the
> connection (so when run locally it find a DC in my site - not the site where
> changes are supposed to be made).
>
> "Shay Levy [MVP]" wrote:
>
Quote:

>> Hi Sean,
>>
>>
>> Check this Set-ExchangeServer cmdlet parameters:
>>
>> -DomainController <Fqdn>
>> This parameter specifies the domain controller that is used by the
>> command.
>>
>> -StaticConfigDomainController <String>
>> This parameter is used to configure a domain controller to be used
>> by the server via DSAccess.
>>
>> -StaticDomainControllers <MultiValuedProperty>
>> This parameter is used to configure a list of domain controllers
>> to be used by the server via Directory Service Access (DSAccess).
>>
>> -StaticExcludedDomainControllers <MultiValuedProperty>
>> This parameter is used to exclude a list of domain controllers to
>> be used by the server.
>>
>> -StaticGlobalCatalogs <MultiValuedProperty>
>> This parameter is used to configure a list of global catalogs to
>> be used by the server via DSAccess.
>>
>>
>>
>> ---
>> Shay Levy
>> Windows PowerShell MVP
>> http://blogs.microsoft.co.il/blogs/ScriptFanatic
>>
>>
>>
>> SH> Following exchange best pracitces, you should not use remote desktop
>> SH> to manage and exchange server. That is fine and all, but our
>> SH> policies state that all changes are made to a specifice Domain
>> SH> controller that happens to be in the same site as the servers.
>> SH>
>> SH> How can I setup my local exchange management shell (powershell) to
>> SH> make its changes only against a DC in another site?
>> SH>
>> SH> Thanks in advance to any help.
>> SH>
>>
>>
>>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
ExMerge and PowerShell with Exchange Management Shell cmdlets PowerShell
Using Exchange Management Shell through Powershell on other PC? PowerShell
Exchange Management Shell Command from vbscript PowerShell
using Exchange Management Shell in c# PowerShell
Exchange management shell 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