Solved

Exchange 2010, running scripts in  management shell

Posted on 2010-09-23
1
586 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
1 Comment
 
LVL 16

Accepted Solution

by:
Auric1983 earned 500 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Utilizing an array to gracefully append to a list of EmailAddresses
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 this video we show how to create a Distribution Group 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 >>…
In this video we show how to create a mailbox database 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 >> Data…

746 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now