none
Need help making bat file to configure Userinit RRS feed

  • Question

  • Hello im trying to create a bat file to configure userthe userinit key under: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon.

    I need it to be configured as:

    C:\windows\system32\userinit.exe,"C:\Program Files\VMware\VMware View\Agent\bin\vmlm_helper.exe","C:\Program Files\VMware\VMware View\Agent\bin\wssm.exe","C:\CaptureService\Screen Capture Module\wcapwlistener.exe","C:\CaptureService\Screen Capture Module\wcap32.exe" 



    However when i run the follow command, all of the quotation are removed and it appears as :

    REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v userinit /t REG_SZ /d C:\windows\system32\userinit.exe,"C:\Program Files\VMware\VMware View\Agent\bin\vmlm_helper.exe","C:\Program Files\VMware\VMware View\Agent\bin\wssm.exe","C:\CaptureService\Screen Capture Module\wcapwlistener.exe","C:\CaptureService\Screen Capture Module\wcap32.exe"

    Incorrect bersion here

    C:\windows\system32\userinit.exe,C:\Program Files\VMware\VMware View\Agent\bin\vmlm_helper.exe,C:\Program Files\VMware\VMware View\Agent\bin\wssm.exe,C:\CaptureService\Screen Capture Module\wcapwlistener.exe,C:\CaptureService\Screen Capture Module\wcap32.exe



    With the quotations removed it causes issues. Any help is appreciated,  i will then deploy this out to my org using PDQ.


    Saturday, November 9, 2019 2:10 AM

Answers

  • REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v userinit /t REG_SZ /d "C:\windows\system32\userinit.exe,"""C:\Program Files\VMware\VMware View\Agent\bin\vmlm_helper.exe""","""C:\Program Files\VMware\VMware View\Agent\bin\wssm.exe""","""C:\CaptureService\Screen Capture Module\wcapwlistener.exe""","""C:\CaptureService\Screen Capture Module\wcap32.exe""""
    • Marked as answer by Unsated3 Saturday, November 9, 2019 9:00 AM
    Saturday, November 9, 2019 2:44 AM

All replies

  • REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /f /v userinit /t REG_SZ /d "C:\windows\system32\userinit.exe,"""C:\Program Files\VMware\VMware View\Agent\bin\vmlm_helper.exe""","""C:\Program Files\VMware\VMware View\Agent\bin\wssm.exe""","""C:\CaptureService\Screen Capture Module\wcapwlistener.exe""","""C:\CaptureService\Screen Capture Module\wcap32.exe""""
    • Marked as answer by Unsated3 Saturday, November 9, 2019 9:00 AM
    Saturday, November 9, 2019 2:44 AM
  • Thank you!, i guess it copied wrong when i entered it  into PDQ but once i made sure it matched  it worked perfectly.
    Saturday, November 9, 2019 9:01 AM