Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 634
  • Last Modified:

Exchange 2010, running scripts in management shell

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
crp0499
Asked:
crp0499
1 Solution
 
Auric1983Commented:
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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now