vicky19
asked on
Exchange Script issue
PS C:\program files\microsoft\exchange server\scripts> ./install-antispamagents.p s1
Get-ItemProperty : Cannot find path 'HKLM:\SOFTWARE\Microsoft\ Exchange\v 8.0\Setup' because it does not exist.
At C:\program files\microsoft\exchange server\scripts\install-Ant ispamAgent s.ps1:24 char:33
+ $InstallPath = (get-itemproperty <<<< HKLM:\SOFTWARE\Microsoft\E xchange\v8 .0\Setup). MSiInstall Path + "TransportRoles\agents\
"
+ CategoryInfo : ObjectNotFound: (HKLM:\SOFTWARE\...ange\v8 .0\Setup:S tring) [Get-ItemProperty], ItemNotFoundExcep
tion
+ FullyQualifiedErrorId : PathNotFound,Microsoft.Pow erShell.Co mmands.Get ItemProper tyCommand
At C:\program files\microsoft\exchange server\scripts\install-Ant ispamAgent s.ps1:30 char:39
+ $transportserver = get-transportserver <<<< -id $localservername
+ CategoryInfo : ObjectNotFound: (get-transportserver:Strin g) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Failed to find the transport server : MyExchangeLab
Get-ItemProperty : Cannot find path 'HKLM:\SOFTWARE\Microsoft\
At C:\program files\microsoft\exchange server\scripts\install-Ant
+ $InstallPath = (get-itemproperty <<<< HKLM:\SOFTWARE\Microsoft\E
"
+ CategoryInfo : ObjectNotFound: (HKLM:\SOFTWARE\...ange\v8
tion
+ FullyQualifiedErrorId : PathNotFound,Microsoft.Pow
At C:\program files\microsoft\exchange server\scripts\install-Ant
+ $transportserver = get-transportserver <<<< -id $localservername
+ CategoryInfo : ObjectNotFound: (get-transportserver:Strin
+ FullyQualifiedErrorId : CommandNotFoundException
Failed to find the transport server : MyExchangeLab
ASKER
Yes running it from the HUB server only
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Good so maybe we can resolve this post :)
- Rancy
- Rancy
ASKER
I was pointed to the direction from where i now need to work my way up
where are you running this commnad? it should run on HUB server.