![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
| | #4 (permalink) |
| | 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 Specs![]() |
| | #5 (permalink) |
| | 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 Specs![]() |
![]() |
| 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 | |||