none
Reg file to Bat file RRS feed

  • Question

  • Hi All,

    <style type="text/css">p.p1 {margin: 0.0px 0.0px 12.0px 0.0px; line-height: 11.0px; font: 12.0px Arial; -webkit-text-stroke: #000000} span.s1 {font-kerning: none} </style>

    I have a reg file where I am modifying registry values successfully however i need o convert reg file into bat file. How can I do that.

    Please see reg values below:

    Following reg values Disable Control Panel, CMD and all hide all drives.


    ===StartCode===

    Windows Registry Editor Version 5.00
    
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
    "NoControlPanel"=dword:1
    
    [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
    "NoControlPanel"=dword:1
    
    [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\System]
    "DisableCMD"= dword:1
    
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
    "NoDrives"=dword:17fffff
    
    [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
    "NoDrives"=dword:17fffff


    ==EndCode===

    Thanks



    • Edited by uzeshan Wednesday, December 7, 2016 3:01 PM
    Wednesday, December 7, 2016 2:59 PM

Answers

  • Those are Group Policy settings. You should modify those by editing the GPO rather than by using a script.

    -- Bill Stewart [Bill_Stewart]

    • Marked as answer by uzeshan Monday, December 12, 2016 11:53 AM
    Wednesday, December 7, 2016 3:18 PM
    Moderator

All replies