Exchange 2010, running scripts in  management shell

Posted on 2010-09-23
Last Modified: 2012-06-21
I have a nice new exchange 2010 install.  it's all perfect except that I want to run the script that installs the spam filter.  when I open the namagement shell, it takes me to the path c:\windows\system32.

At that command prompt, I run ./install-AntispamAgents.ps1 and I get an error that the command is not recogonized as a cmdlet.  So, I figure that script is not in my path.

Do I just CD to the directory and try it or what?

I guess my summary question is when I open the management shell, i expect to be able to run all scripts that are available but I can't.  it seems they are somewhere else.  How do I run scripts from the management shell?


Question by:crp0499
1 Comment
LVL 16

Accepted Solution

Auric1983 earned 500 total points
ID: 33745099

You can do one of two things.

Enter in the absolute path to the script "c:\program files.....\install-aintispamagents.ps1"


CD to the directory and try to run it again.

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
In-place Upgrading Dirsync to Azure AD Connect
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
how to add IIS SMTP to handle application/Scanner relays into office 365.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question