Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

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

Anti-Spam Powershell Script Error

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
bradbritton
Asked:
bradbritton
1 Solution
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
Does this server have Exchange installed on it ?

- Rancy
0
 
SubsunCommented:
Are you running the script from Exchange Management Shell?
0
 
Rajkumar-MCITPCommented:
Install antispam agents from your hub Transport Server.. Appears like you are running that from different server

http://support.microsoft.com/kb/555924
0
Evaluating UTMs? Here's what you need to know!

Evaluating a UTM appliance and vendor can prove to be an overwhelming exercise.  How can you make sure that you're getting the security that your organization needs without breaking the bank? Check out our UTM Buyer's Guide for more information on what you should be looking for!

 
bradbrittonAuthor Commented:
Would the transport serve be the SMTP bridgehead?
0
 
SubsunCommented:
If you run get-transportserver command in Exchange Management Shell, then it will list the Transport Servers from your environment..
0
 
Rajkumar-MCITPCommented:
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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