Solved

Anti-Spam Powershell Script Error

Posted on 2013-01-16
6
1,965 Views
Last Modified: 2013-01-23
I keep getting this error when I try and run the antiSpam powershell on my exchange server.
--------
PS C:\program files\microsoft\exchange server\scripts> ./install-antispamagents.ps1
Get-ItemProperty : Cannot find path 'HKLM:\SOFTWARE\Microsoft\Exchange\v8.0\Setup' because it does not exist.
At C:\program files\microsoft\exchange server\scripts\install-AntispamAgents.ps1:24 char:33
+ $InstallPath = (get-itemproperty <<<<  HKLM:\SOFTWARE\Microsoft\Exchange\v8.0\Setup).MSiInstallPath + "TransportRoles\agents\
"
    + CategoryInfo          : ObjectNotFound: (HKLM:\SOFTWARE\...ange\v8.0\Setup:String) [Get-ItemProperty], ItemNotFoundExcep
   tion
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemPropertyCommand
 
The term 'get-transportserver' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
 spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\program files\microsoft\exchange server\scripts\install-AntispamAgents.ps1:30 char:39
+ $transportserver = get-transportserver <<<<  -id $localservername
    + CategoryInfo          : ObjectNotFound: (get-transportserver:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
 
Failed to find the transport server : cgsrvm-ex02
----------
Any ideas?
0
Comment
Question by:bradbritton
6 Comments
 
LVL 52

Expert Comment

by:Manpreet SIngh Khatra
ID: 38783949
Does this server have Exchange installed on it ?

- Rancy
0
 
LVL 40

Expert Comment

by:Subsun
ID: 38784136
Are you running the script from Exchange Management Shell?
0
 
LVL 15

Expert Comment

by:Rajkumar-MCITP
ID: 38784210
Install antispam agents from your hub Transport Server.. Appears like you are running that from different server

http://support.microsoft.com/kb/555924
0
Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

 

Author Comment

by:bradbritton
ID: 38784531
Would the transport serve be the SMTP bridgehead?
0
 
LVL 40

Expert Comment

by:Subsun
ID: 38784557
If you run get-transportserver command in Exchange Management Shell, then it will list the Transport Servers from your environment..
0
 
LVL 15

Accepted Solution

by:
Rajkumar-MCITP earned 500 total points
ID: 38785691
install antispam agents options are available only for exchange 2007 and exchange 2010 servers.

Seems like you are trying to run from Exchange 2003. ?
0

Featured Post

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

740 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