Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

install-AntispamAgents Issue

5 views
Skip to first unread message

Richard K

unread,
Sep 16, 2009, 9:36:23 AM9/16/09
to
SBS 2008

I have opened the Exchange Management Shell to execute the script so I can
configure connection filtering. When I try and run the script I get errors
instead and I'm not sure why. I have tried using both "./" and ".\" before
the script name but to no avail. I am thinking this is a permissions issue
but I can't figure it out. The account I am logged into the server under is
the Network Administrator Role. What am I doing wrong?

Thanks!

-Richard K

[PS] C:\program files\microsoft\Exchange
Server\Scripts>./install-AntispamAgents
.ps1
No valid agents.config file was found in 'C:\Program
Files\Microsoft\Exchange S
erver\TransportRoles\Shared\agents.config'. The default configuration for
tran
sport agents can be recovered by running
'scripts\ReinstallDefaultTransportAgen
ts.ps1'.
At C:\program files\microsoft\Exchange
Server\Scripts\install-AntispamAgents.ps
1:43 char:13
+ $agent = <<<< get-transportagent -Identity:$name
Install-TransportAgent : The Transport Agent assembly file "C:\Program
Files\Mi
crosoft\Exchange
Server\TransportRoles\agents\Hygiene\Microsoft.Exchange.Transp
ort.Agent.Hygiene.dll" does not exist.
Parameter name: AssemblyPath
At C:\program files\microsoft\Exchange
Server\Scripts\install-AntispamAgents.ps
1:56 char:27
+ install-TransportAgent
<<<< -Name:$name -TransportAgentFactory:$factory
-AssemblyPath:$agentAssembly > $null
No valid agents.config file was found in 'C:\Program
Files\Microsoft\Exchange S
erver\TransportRoles\Shared\agents.config'. The default configuration for
tran
sport agents can be recovered by running
'scripts\ReinstallDefaultTransportAgen
ts.ps1'.
At C:\program files\microsoft\Exchange
Server\Scripts\install-AntispamAgents.ps
1:57 char:40
+ if ($agent.enabled -or ! $agent) { e <<<<
nable-transportagent -Identity:


Richard K

unread,
Sep 16, 2009, 11:59:56 AM9/16/09
to
OK, I have got to get into this habit with SBS 2008. My issue was I needed
to run the Management Shell as right-click/"Run as Administrator". This
solved my issue. I didn't catch it until I stumbled upon something while
googling.

-Richard K

"Richard K" <rkok...@foxdtechllc.com> wrote in message
news:%23tkCwKt...@TK2MSFTNGP05.phx.gbl...

0 new messages