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

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

Exchange Script issue

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
                       
           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 : MyExchangeLab
0
vicky19
Asked:
vicky19
  • 3
  • 2
2 Solutions
 
imkotteesCommented:
Hi,

where are you running this commnad? it should run on HUB server.
0
 
vicky19Author Commented:
Yes running it from the HUB server only
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
What is the SP for Exchange 2007 ?
What rights does your account have ? Hope it has the rights to install the Antispam agents ?

- Rancy
0
Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

 
vicky19Author Commented:
Rancy i reaslized when you said 2007 as i am running 2010 here as seems someone left some crappy stuff and now have to reinstall but its a Lab so not much worried
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
Good so maybe we can resolve this post :)

- Rancy
0
 
vicky19Author Commented:
I was pointed to the direction from where i now need to work my way up
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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