View Single Post
Old 11-15-2007   #4 (permalink)
RD


 
 

Re: Powershell excution policy on server with Exchange 2007

http://blogs.technet.com/haroldwong/...-02-14-07.aspx

This Microsoft blog article states that the default execution policy of
Exchange Management shell is "RemoteSigned". I think that allow any 3rd party
scripts (using C:/Program Files/Microsoft/Exchange Server/bin/exshell.psc1
option) to run from win32 serivce.

"Marco Shaw [MVP]" wrote:
Quote:

> RD wrote:
Quote:

> > The documents say that the default execution policy of Powershell is
> > "Restricted". But it appears to me that whey you install Exchange server
> > 2007, the policy is changed to "RemoteSigned". Is that correct? If so, how
> > can I run Exchange PS1 scripts with default security policy of PS. Thanks.
>
> The default execution policy is 'restricted'. With that policy, you
> won't be able to run scripts at all.
>
> You need to determine what your security policy for writing and running
> scripts will get.
>
> Check out:
> get-executionpolicy
> and
> set-executionpolicy
>
> To set the default PS policy:
> PSH> set-executionpolicy restricted
>
> 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