cancel
Showing results for 
Search instead for 
Did you mean: 
hausi
Level 9
Report Inappropriate Content
Message 1 of 10

McAfee Agent for Windows 5.0.2.132, psexec with cmdagent and maconfig fails with error 508

Jump to solution

With Atent 4.8 I wrote some scripts soing some actions aun the target using psexec. With Agent 5 it works anymore, even with the new paths...

E.g I create \\<node>\c$\mc.cmd containing

"C:\Program Files\McAfee\Agent\cmdagent.exe" -i

"C:\Program Files\McAfee\Agent\maconfig.exe" -custom -prop1 "AdminClient"

Then I start this script with "psexec -h \\<node> c:\mc.cmd"

Here what I get back:

C:\Windows\system32>"C:\Program Files\McAfee\Agent\cmdagent.exe" -i

Failed to get ma info, error code <508>

C:\Windows\system32>"C:\Program Files\McAfee\Agent\maconfig.exe" -custom -prop1 "AdminClient"

2015-12-18 08:32:12.278 maconfig(2120.3604) maconfig.Info: Applying Custom Props.

2015-12-18 08:32:12.287 maconfig(2120.3604) maconfig.Error: sending custom props failed, last error(508)

2015-12-18 08:32:12.287 maconfig(2120.3604) maconfig.Error: Applying Custom Props failed, last error(508)

2015-12-18 08:32:12.287 maconfig(2120.3604) maconfig.Info: configuration finished

maconfig operation failed with error <508>c:\mc.cmd exited on c030229 with error code 508.

With Agent 4.8 I've got for an other script:

psexec -h \\<node> c:\mc.cmd

Processing <node> ...

C:\Windows\system32>"C:\Program Files (x86)\McAfee\Common Framework\CmdAgent.exe" -f

C:\Windows\system32>"C:\Program Files (x86)\McAfee\Common Framework\CmdAgent.exe" -p

How can I create scripts with Agent 5 which are working again with psexec?

1 Solution

Accepted Solutions
hausi
Level 9
Report Inappropriate Content
Message 9 of 10

Re: McAfee Agent for Windows 5.0.2.132, psexec with cmdagent and maconfig fails with error 508

Jump to solution

I've got it (Thanks Norbi):

psexec -h (If the target system is Vista or higher, has the process run with the account's elevated token, if available.) is not enough...

...with psexec -h -s (Run the remote process in the System account.) it works again, as with Agent 4.8 .

9 Replies

Re: McAfee Agent for Windows 5.0.2.132, psexec with cmdagent and maconfig fails with error 508

Jump to solution

This is a business question so better to move it to one of the corporate forums which product do you use enterprise or EPO or another. Let me know and 1 of we mods will move it

hausi
Level 9
Report Inappropriate Content
Message 3 of 10

Re: McAfee Agent for Windows 5.0.2.132, psexec with cmdagent and maconfig fails with error 508

Jump to solution

Yes, we user ePO 5.3.1 and VSE

Thanks for moving to the right tree.

Re: McAfee Agent for Windows 5.0.2.132, psexec with cmdagent and maconfig fails with error 508

Jump to solution

Moving to VSE forum cannot double post( ie post in epo) so hopefully we can get an answer there.

hausi
Level 9
Report Inappropriate Content
Message 5 of 10

Re: McAfee Agent for Windows 5.0.2.132, psexec with cmdagent and maconfig fails with error 508

Jump to solution

Still looking for an answer...

...no ideas?

Re: McAfee Agent for Windows 5.0.2.132, psexec with cmdagent and maconfig fails with error 508

Jump to solution

I can move it to the EPO forum you might get an answer there. Have you access to your firm's Mcafee support I thought all enterprise users has support via their grant number. As I said I am a consumer mod so have zero enterprise experience. I will though ping an enterprise mod if he is available

Re: McAfee Agent for Windows 5.0.2.132, psexec with cmdagent and maconfig fails with error 508

Jump to solution

Hi

I have not had any experience with the Version 5 agent as of yet.

To help diagnose the errors you are seeing, are you able to run you mc.cmd script locally? I have seen some errors when the Windows UAC prevents some scripts from running under a least user privilege account, and the script needs elevating to execute.

You could also raise a support ticket withIntel/McAfee here. You need to log in on the right hand side of the screen, or create yourself a new account if you do not already have one using your Grant Number.

Let me know how you get one.

Regards

Rich

Certified McAFee Product Specialist - ePO

McAfee Volunteer Moderator

hausi
Level 9
Report Inappropriate Content
Message 8 of 10

Re: McAfee Agent for Windows 5.0.2.132, psexec with cmdagent and maconfig fails with error 508

Jump to solution

Hi Rich

If I start C:\mc.cmd locally, it works, as expected.

If I start it with psexec (as I did successfully with Agent 4.8), I get Error 508.

hausi
Level 9
Report Inappropriate Content
Message 9 of 10

Re: McAfee Agent for Windows 5.0.2.132, psexec with cmdagent and maconfig fails with error 508

Jump to solution

I've got it (Thanks Norbi):

psexec -h (If the target system is Vista or higher, has the process run with the account's elevated token, if available.) is not enough...

...with psexec -h -s (Run the remote process in the System account.) it works again, as with Agent 4.8 .

Re: McAfee Agent for Windows 5.0.2.132, psexec with cmdagent and maconfig fails with error 508

Jump to solution

Moved to ePO rather than VSE, since its an Agent repeated issues rather than VSE protection