Windows 10: .REG vs .BAT

Discus and support .REG vs .BAT in Windows 10 Support to solve the problem; Howdy, Strange behavior! I set the following 2 registry keys via both .reg and .bat file in Windows 10 to control System Protection. I don't care if... Discussion in 'Windows 10 Support' started by omidsolo, Sep 1, 2015.

  1. omidsolo Win User

    .REG vs .BAT


    Howdy,
    Strange behavior!
    I set the following 2 registry keys via both .reg and .bat file in Windows 10 to control System Protection.
    I don't care if they work or not and if this is the key to work on or not.
    .bat file works but .reg file not!
    Spent sometime and just confused, anyone have a clue?

    =====
    .bat file
    =====
    'Turn off System Protection
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" /v RPSessionInterval /t REG_DWORD /d 0 /f
    'Set 1%
    REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore\cfg" /v DiskPercent /t REG_DWORD /d 1 /f

    =====
    .reg file
    =====
    'Turn off System Protection
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore]
    RPSessionInterval=dword:00000000
    'Set 1%
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore\cfg]
    DiskPercent=dword:00000001

    Why .reg file is not working as I must use the .reg file?
    Thanks.

    :)
     
    omidsolo, Sep 1, 2015
    #1

  2. Advanced sizing of text ... gone with Creators Update ?!

    I found this registry update:

    Change Icons Text Size in Windows 10

    I created a batch file based on the link above and it does what I need - resizing menu text, icon text, message box text, and title bar text. Here is the contents of the bat file:

    set __COMPAT_LAYER=RunAsInvoker

    REGEDIT.EXE /S "Icons_text_size-11.reg"

    REGEDIT.EXE /S "Menus_text_size-11.reg"

    REGEDIT.EXE /S "Message_Boxes_text_size-11.reg"

    REGEDIT.EXE /S "Title_bars_text_size-11.reg"

    pause

    Alternatively you can download the batch file here:

    ShareFile

    After downloading it, anytime you need to resize text, double click the bat file , press any key when it is finished, and then logout and login
     
    Grant Castner, Sep 1, 2015
    #2
  3. Icons Flashing after Windows 10 1511 Update

    Hi.

    I finally found the final and exact solution !

    It's a problem with Microsoft Edge.

    Microsoft Edge would like to be default application for the extentions :

    - pdf

    - html

    - htm

    - svg

    - xml

    But on some sessions on a computer with Windows 10 1511 on a domaine controller, it can't.

    So the only solution is to delete the registry keys of theses extentions.

    You can't use the "default application extention" options of the legacy control pannel, the new control panel, and the "open with" options.

    I've create a .bat file to automatically delete all of theses extentions attributions :

    reg delete HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.htm /f

    reg delete HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.html /f

    reg delete HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf /f

    reg delete HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.svg /f

    reg delete HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.xml /f

    So please Microsoft, fix it with an update or a new build !

    I must use this bat on an important number of computers in my company.

    And this bug occurs on an aleatory number of computers in my company.
     
    tnicolas02, Sep 1, 2015
    #3
  4. .REG vs .BAT

    If you are at loss, just export the key from registry, maybe you have forgotten to add the top?

    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore]
    "RPSessionInterval"=dword:00000000

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore\cfg]
    "DiskPercent"=dword:00000001
     
    TairikuOkami, Sep 1, 2015
    #4
Thema:

.REG vs .BAT

Loading...
  1. .REG vs .BAT - Similar Threads - REG BAT

  2. Windows Defender deletes DisableAntiSpyware from reg after PC restarts

    in Windows 10 Customization
    Windows Defender deletes DisableAntiSpyware from reg after PC restarts: Hello, I don't want antimalware service executable to run in the background, I will not use any AV. So, when I create a variable as said in https://answers.microsoft.com/en-us/protect/forum/all/how-to-kill-antimalware-service-executable/b5ce5b46-a65b-460c-b4cd-e2cca50358cf,...
  3. Reg file Please

    in Windows 10 Customization
    Reg file Please: Hello Had a look round the net to see if I can find a reg file to remove digital signatures tab in Windows 10 1809 x64 context menu properties for .exe files.Plenty of other edits but none for what I need. Does anyone have such a reg file or can point me to regedit to remove...
  4. Unable to get print out from HP Printer-reg

    in Windows 10 BSOD Crashes and Debugging
    Unable to get print out from HP Printer-reg: Hi, I have recently purchased HP pavilion X360 convertible 14-dh0xxx i3 8th gen laptop. Its current version is 2004 and OS build is 19041.329. Since morning I am getting blank pages from printer HP 2540 whenever I attempt to take print either in USB mode or wireless mode....
  5. Does anyone know why this .reg script won't work?

    in Windows 10 Ask Insider
    Does anyone know why this .reg script won't work?: Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\DefaultIcon] "(Default)"="C:\Icons\ico55.ico,0"...
  6. Can you fully disable telemetry in windows 10 by using a reg edit?

    in Windows 10 Ask Insider
    Can you fully disable telemetry in windows 10 by using a reg edit?: I’ve heard a lot about windows telemetry lately, I’m wondering if there is anyway to fully get rid of it, or minimize it to be as little intrusive as possible. I heard you can disable it by using a registration edit, but I heard that it will just turn on in the next Windows...
  7. Need Help With Registry Tweak Using .REG File &/Or .BAT File - Please & Thank You!

    in Windows 10 Ask Insider
    Need Help With Registry Tweak Using .REG File &/Or .BAT File - Please & Thank You!: [ATTACH] I'm not sure if this is the right place to ask this, but I've had no luck doing it myself. I've created a few .reg & .bat files in the past in regards to this, however some only would delete the registry entry, while others did nothing at all. Could someone help...
  8. How to Delete All Saved Passwords in Microsoft Edge w/ bat or reg key

    in Browsers and Email
    How to Delete All Saved Passwords in Microsoft Edge w/ bat or reg key: Does anyone know how to delete all saved passwords in Microsoft Edge either using a bat file or reg key. Looking for a way to protect users in public computer classroom. Thanks 37350
  9. File association problem with .reg and .bat files

    in Windows 10 Support
    File association problem with .reg and .bat files: Asus laptop with WINDOWS 10 When double clicking a .reg file the default action is merge by running the regedit.exe. On the right-click content menu I have Merge (in bold), edit and print, select edit opens the notepad for editing. In order to prevent from merging the .reg...
  10. Reg to Bat

    in Windows 10 Support
    Reg to Bat: Hi everyone, I'm so sorry if this is not the proper forum to ask, but didn't found one for registry related questions. I have a small .reg file and I have converted it to .bat using a tool and am not sure if it's converted correctly and bug free! Is there anyone expert in...