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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
To show how to generate a certificate request 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 Servers >> Certificates…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to:…

772 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