Solved

Anti-Spam Powershell Script Error

Posted on 2013-01-16
6
1,899 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
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 

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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Lotus Notes – formerly IBM Notes – is an email client application, while IBM Domino (earlier Lotus Domino) is an email server. The client possesses a set of features that are even more advanced as compared to that of Outlook. Likewise, IBM Domino is…
Find out what you should include to make the best professional email signature for your organization.
how to add IIS SMTP to handle application/Scanner relays into office 365.
This video discusses moving either the default database or any database to a new volume.

911 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

17 Experts available now in Live!

Get 1:1 Help Now