How to use SetupComplete.exe to modify a reg value? (Image)


  1. Posts : 4
    Windows 7 Professional x64
       #1

    How to use SetupComplete.exe to modify a reg value? (Image)


    Greetings all! I work in an enterprise environment & am trying to find the most efficient route to address a vulnerability in one of our images.

    When Sysprep completes I need to put quotes around a reg entry in: HKLM\System\CurrentControlSet\services\LMS.

    The entry is C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\LMS\LMS.exe. I need to put quotes around it i.e. "C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\LMS\LMS.exe"

    I already have a command to change an account name using wmic in SetupComplete.exe i.e.: wmic useraccount where name= "User" call rename name= "NewUser"

    Does anyone know a wmic command(s) that could be used for this, or an alternative scripting method for use in SetupComplete? Also, can anyone recommend a resource for wmic commands/syntax etc?

    Thanks!
      My Computer


  2. Posts : 4
    Windows 7 Professional x64
    Thread Starter
       #2

    nm...
      My Computer


  3. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #3

    You did do sysprep/generlaize/oobe succesfully? Already created a wim file?
      My Computer


  4. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #4

    No qoutes needed. Why quotes?
    Attached Thumbnails Attached Thumbnails How to use SetupComplete.exe to modify a reg value? (Image)-naamloos.png  
      My Computer


  5. Posts : 4
    Windows 7 Professional x64
    Thread Starter
       #5

    Thanks for the reply, Kaktussoft. Yes on sysprep, and would be yes on wim but we use Norton Ghost. To clarify, this is on our production image, in use several years now. The registry entry in your screenshot is indeed the one I must modify (and one other, in the same way). I just need to put quotes around the statement to foil an expoit/vulnerability. This image is used in several govt. business areas which are subject to Nessus & Retina scans/audits to discover/address vulnerabilities.

    The manual process we are currently using is for our deployment technicians to make this modification after imaging the box. I would like to use a script/entry in SetupComplete.exe to do the modification automatically.

    Thanks again for any suggestions
      My Computer


  6. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #6

    use setupcomplete.cmd for that

    reg add ..... look syntax yourself please. You can try reg add command on a working machine to check for syntax errors. Be sure to add /f to the command

    Reg add

    Still don't understand why double quotes are needed!
      My Computer


  7. Posts : 4
    Windows 7 Professional x64
    Thread Starter
       #7

    Thanks, Kactussoft, I will use SetupComplete.cmd. I don't know why the double quotes are needed either; it is specified (I believe, our desktop security team requested the addition) in a STIG specifically to remedy a vulnerability. I'm guessing that it causes some escalation of privelege exploit (or similar) to be non-functional while not functionally interfering with the actual value in that key.

    Again, thanks for your help/suggestion!
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 23:18.
Find Us