cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
TrentD
Level 9
Report Inappropriate Content
Message 1 of 3

EEDK - Batch file to import registry keys

Jump to solution

We have created a batch file below to add some registry keys below using EEDK. The batch file runs successfully when we run it manually on the system, but when we package it using EEDK and run it, it shows on the McAfee Agent status monitor as successfully, but the keys are not added in the registry. Any help or suggestions would be appreciated...Thanks

Batch file:

@echo off
:: ################################################
:: Update registry for Modern Authentication with no user interaction
%comspec% /c %systemroot%\System32\reg.exe ADD HKCU\SOFTWARE\Microsoft\Office\15.0\Common\Identity /v EnableADAL /t REG_DWORD /d 1 /f
%comspec% /c %systemroot%\System32\reg.exe ADD HKCU\SOFTWARE\Microsoft\Office\15.0\Common\Identity /v Version /t REG_DWORD /d 1 /f
goto EOF
:: Exit and pass proper exit
:: ################################################
:EOF
Exit /B 0

1 Solution

Accepted Solutions
TrentD
Level 9
Report Inappropriate Content
Message 3 of 3

Re: EEDK - Batch file to import registry keys

Jump to solution

Thank you for the feedback, but after some exhaustive testing this weekend, the McAfee solution cannot be used to deploy the  Registry Update…Thanks

The McAfee solution uses the SYSTEM account and will execute packages created on the endpoint as local SYSTEM account. The SYSTEM account has several limitations, one being is that the account is not associated with any logged-on user account and therefore does not have the same user space in registry.

Generally, a user account will have full access to read/write to their own HKEY_CURRENT_USER (HKCU) registry key, and the Local System account has full access to read/write to HKEY_LOCAL_MACHINE (HKLM) registry key. Local System has no access to a user's HKCU because HKCU for a user is only mounted when that particular user is logged-on...Thanks

 

View solution in original post

2 Replies
aguevara
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 2 of 3

Re: EEDK - Batch file to import registry keys

Jump to solution

Please see this post so that you can identify where the fault might be:

https://community.mcafee.com/t5/ePolicy-Orchestrator-ePO/SOLVED-HOW-TO-TROUBLESHOOT-CLIENT-UPDATE-DE...

Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members

TrentD
Level 9
Report Inappropriate Content
Message 3 of 3

Re: EEDK - Batch file to import registry keys

Jump to solution

Thank you for the feedback, but after some exhaustive testing this weekend, the McAfee solution cannot be used to deploy the  Registry Update…Thanks

The McAfee solution uses the SYSTEM account and will execute packages created on the endpoint as local SYSTEM account. The SYSTEM account has several limitations, one being is that the account is not associated with any logged-on user account and therefore does not have the same user space in registry.

Generally, a user account will have full access to read/write to their own HKEY_CURRENT_USER (HKCU) registry key, and the Local System account has full access to read/write to HKEY_LOCAL_MACHINE (HKLM) registry key. Local System has no access to a user's HKCU because HKCU for a user is only mounted when that particular user is logged-on...Thanks

 

View solution in original post

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from McAfee experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by McAfee employees.
Join the Community
Join the Community