?
Solved

Exchange 2010, running scripts in  management shell

Posted on 2010-09-23
1
Medium Priority
?
627 Views
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?

thanks

cliff
0
Comment
Question by:crp0499
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 16

Accepted Solution

by:
Auric1983 earned 2000 total points
ID: 33745099
Cliff,

You can do one of two things.

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

Or

CD to the directory and try to run it again.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
In this video we show how to create a Contact 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 Recipients >> Contact ta…
In this video we show how to create an Address List 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 Organization >> Ad…
Suggested Courses
Course of the Month13 days, 11 hours left to enroll

801 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