Link to home
Start Free TrialLog in
Avatar of vicky19
vicky19

asked on

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
Avatar of Kotteeswaran Rajendran
Kotteeswaran Rajendran
Flag of Malaysia image

Hi,

where are you running this commnad? it should run on HUB server.
Avatar of vicky19
vicky19

ASKER

Yes running it from the HUB server only
SOLUTION
Avatar of Manpreet SIngh Khatra
Manpreet SIngh Khatra
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Good so maybe we can resolve this post :)

- Rancy
Avatar of vicky19

ASKER

I was pointed to the direction from where i now need to work my way up