Reg Add command issue in the batch script
Home › Forums › Scripting › General Scripting › Reg Add command issue in the batch script
- This topic has 3 replies, 3 voices, and was last updated 3 years, 5 months ago by
igor7.
-
AuthorPosts
-
igor7MemberAug 24, 2017 at 12:05 am #167167Hi, there!!
I’m using Daniel Petri tip “Quickly Search The Web” for years and now I’m trying to customize windows 10 ltsb install.wim and add this option automatically to all users using batch script:……………………………
reg add “HKEY_USERS%RegLoadPr%_NTUSER_SOFTWAREMicrosoftInternet ExplorerSearchUrl” /ve /f >nul
reg add “HKEY_USERS%RegLoadPr%_NTUSER_SOFTWAREMicrosoftInternet ExplorerSearchUrlBb” /ve /d “http://info.babylon.com/cgi-bin/info.cgi?word=
%s&lang=14&type=hp&layout=combo.html&n=10&list=” /f >nul
reg add “HKEY_USERS%RegLoadPr%_NTUSER_SOFTWAREMicrosoftInternet ExplorerSearchUrlggl” /ve /d “http://www.google.com/search?q=%s” /f >nul
reg add “HKEY_USERS%RegLoadPr%_NTUSER_SOFTWAREMicrosoftInternet ExplorerSearchUrlevt” /ve /d “http://www.eventid.net/display.asp?eventid=%s” /f >nul
reg add “HKEY_USERS%RegLoadPr%_NTUSER_SOFTWAREMicrosoftInternet ExplorerSearchUrlimg” /ve /d “http://images.google.com/images?hl=en&q=%s” /f >nul
reg add “HKEY_USERS%RegLoadPr%_NTUSER_SOFTWAREMicrosoftInternet ExplorerSearchUrlkb” /ve /d “http://support.microsoft.com/kb/%s” /f >nul
reg add “HKEY_USERS%RegLoadPr%_NTUSER_SOFTWAREMicrosoftInternet ExplorerSearchUrlyh” /ve /d “http://search.yahoo.com/search?p=%s” /f >nul
………………………………
[/CODE]I’m noticed that after windows 10 installation user cannot use quickly search the web options… and after checking the registry, I’ve foung that symbol “%” was removed for some reason during execution of reg add command. For instance, I’ve got default value in ggl key:
[CODE]http://www.google.com/search?q=s[/CODE]
Instead of:
[CODE] http://www.google.com/search?q=%5BCOLOR=#FF0000%5D%%5B/COLOR%5Ds%5B/CODE%5D
When I’m using quickly search the web.reg file:
[CODE]Windows Registry Editor Version 5.00
[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrl]
[HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerSearchUrlBb]
@=”http://info.babylon.com/cgi-bin/info.cgi?word=%s&lang=14&type=hp&layout=combo.html&n=10&list=”[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlevt]
@=”http://www.eventid.net/display.asp?eventid=%s”[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlggl]
@=”http://www.google.com/search?q=%s”[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlimg]
@=”http://images.google.com/images?hl=en&q=%s”[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlkb]
@=”http://support.microsoft.com/kb/%s”[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlyh]
@=”http://search.yahoo.com/search?p=%s”%5B/CODE%5DEverything working as expected… I’ve even tried batch script with those option only:
[CODE]reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrl” /ve /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlBb” /ve /d “http://info.babylon.com/cgi-bin/info.cgi?word=%s&lang=14&type=hp&layout=combo.html&n=10&list=” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlggl” /ve /d “http://www.google.com/search?q=%s” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlevt” /ve /d “http://www.eventid.net/display.asp?eventid=%s” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlimg” /ve /d “http://images.google.com/images?hl=en&q=%s” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlkb” /ve /d “http://support.microsoft.com/kb/%s” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlyh” /ve /d “http://search.yahoo.com/search?p=%s” /f[/CODE]And got the same result… If somebody know how to fix this issue it will be much appreciated…
[CODE]……………………………
reg add “HKEY_USERS%RegLoadPr%_NTUSER_SOFTWAREMicrosoftInternet ExplorerSearchUrl” /ve /f >nul
reg add “HKEY_USERS%RegLoadPr%_NTUSER_SOFTWAREMicrosoftInternet ExplorerSearchUrlBb” /ve /d “http://info.babylon.com/cgi-bin/info.cgi?word=
%s&lang=14&type=hp&layout=combo.html&n=10&list=” /f >nul
reg add “HKEY_USERS%RegLoadPr%_NTUSER_SOFTWAREMicrosoftInternet ExplorerSearchUrlggl” /ve /d “http://www.google.com/search?q=%s” /f >nul
reg add “HKEY_USERS%RegLoadPr%_NTUSER_SOFTWAREMicrosoftInternet ExplorerSearchUrlevt” /ve /d “http://www.eventid.net/display.asp?eventid=%s” /f >nul
reg add “HKEY_USERS%RegLoadPr%_NTUSER_SOFTWAREMicrosoftInternet ExplorerSearchUrlimg” /ve /d “http://images.google.com/images?hl=en&q=%s” /f >nul
reg add “HKEY_USERS%RegLoadPr%_NTUSER_SOFTWAREMicrosoftInternet ExplorerSearchUrlkb” /ve /d “http://support.microsoft.com/kb/%s” /f >nul
reg add “HKEY_USERS%RegLoadPr%_NTUSER_SOFTWAREMicrosoftInternet ExplorerSearchUrlyh” /ve /d “http://search.yahoo.com/search?p=%s” /f >nul
………………………………
[/CODE]I’m noticed that after windows 10 installation user cannot use quickly search the web options… and after checking the registry, I’ve foung that symbol “%” was removed for some reason during execution of reg add command. For instance, I’ve got default value in ggl key:
http://www.google.com/search?q=s%5B/CODE%5D
Instead of:
[CODE] http://www.google.com/search?q=%5BCOLOR=#FF0000%5D%%5B/COLOR%5Ds%5B/CODE%5D
When I’m using quickly search the web.reg file:
[CODE]Windows Registry Editor Version 5.00
[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrl]
[HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerSearchUrlBb]
@=”http://info.babylon.com/cgi-bin/info.cgi?word=%s&lang=14&type=hp&layout=combo.html&n=10&list=”[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlevt]
@=”http://www.eventid.net/display.asp?eventid=%s”[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlggl]
@=”http://www.google.com/search?q=%s”[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlimg]
@=”http://images.google.com/images?hl=en&q=%s”[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlkb]
@=”http://support.microsoft.com/kb/%s”[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlyh]
@=”http://search.yahoo.com/search?p=%s”%5B/CODE%5DEverything working as expected… I’ve even tried batch script with those option only:
[CODE]reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrl” /ve /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlBb” /ve /d “http://info.babylon.com/cgi-bin/info.cgi?word=%s&lang=14&type=hp&layout=combo.html&n=10&list=” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlggl” /ve /d “http://www.google.com/search?q=%s” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlevt” /ve /d “http://www.eventid.net/display.asp?eventid=%s” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlimg” /ve /d “http://images.google.com/images?hl=en&q=%s” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlkb” /ve /d “http://support.microsoft.com/kb/%s” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlyh” /ve /d “http://search.yahoo.com/search?p=%s” /f[/CODE]And got the same result… If somebody know how to fix this issue it will be much appreciated…
[CODE]http://www.google.com/search?q=s[/CODE]
Instead of:
http://www.google.com/search?q=%5BCOLOR=#FF0000%5D%%5B/COLOR%5Ds%5B/CODE%5D
When I’m using quickly search the web.reg file:
[CODE]Windows Registry Editor Version 5.00
[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrl]
[HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerSearchUrlBb]
@=”http://info.babylon.com/cgi-bin/info.cgi?word=%s&lang=14&type=hp&layout=combo.html&n=10&list=”[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlevt]
@=”http://www.eventid.net/display.asp?eventid=%s”[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlggl]
@=”http://www.google.com/search?q=%s”[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlimg]
@=”http://images.google.com/images?hl=en&q=%s”[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlkb]
@=”http://support.microsoft.com/kb/%s”[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlyh]
@=”http://search.yahoo.com/search?p=%s”%5B/CODE%5DEverything working as expected… I’ve even tried batch script with those option only:
[CODE]reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrl” /ve /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlBb” /ve /d “http://info.babylon.com/cgi-bin/info.cgi?word=%s&lang=14&type=hp&layout=combo.html&n=10&list=” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlggl” /ve /d “http://www.google.com/search?q=%s” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlevt” /ve /d “http://www.eventid.net/display.asp?eventid=%s” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlimg” /ve /d “http://images.google.com/images?hl=en&q=%s” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlkb” /ve /d “http://support.microsoft.com/kb/%s” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlyh” /ve /d “http://search.yahoo.com/search?p=%s” /f[/CODE]And got the same result… If somebody know how to fix this issue it will be much appreciated…
[CODE] http://www.google.com/search?q=%s[/CODE]
When I’m using quickly search the web.reg file:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrl]
[HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerSearchUrlBb]
@=”http://info.babylon.com/cgi-bin/info.cgi?word=%s&lang=14&type=hp&layout=combo.html&n=10&list=”[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlevt]
@=”http://www.eventid.net/display.asp?eventid=%s”[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlggl]
@=”http://www.google.com/search?q=%s”[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlimg]
@=”http://images.google.com/images?hl=en&q=%s”[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlkb]
@=”http://support.microsoft.com/kb/%s”[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlyh]
@=”http://search.yahoo.com/search?p=%s”%5B/CODE%5DEverything working as expected… I’ve even tried batch script with those option only:
[CODE]reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrl” /ve /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlBb” /ve /d “http://info.babylon.com/cgi-bin/info.cgi?word=%s&lang=14&type=hp&layout=combo.html&n=10&list=” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlggl” /ve /d “http://www.google.com/search?q=%s” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlevt” /ve /d “http://www.eventid.net/display.asp?eventid=%s” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlimg” /ve /d “http://images.google.com/images?hl=en&q=%s” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlkb” /ve /d “http://support.microsoft.com/kb/%s” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlyh” /ve /d “http://search.yahoo.com/search?p=%s” /f[/CODE]And got the same result… If somebody know how to fix this issue it will be much appreciated…
[CODE]Windows Registry Editor Version 5.00
[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrl]
[HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerSearchUrlBb]
@=”http://info.babylon.com/cgi-bin/info.cgi?word=%s&lang=14&type=hp&layout=combo.html&n=10&list=”[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlevt]
@=”http://www.eventid.net/display.asp?eventid=%s”[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlggl]
@=”http://www.google.com/search?q=%s”[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlimg]
@=”http://images.google.com/images?hl=en&q=%s”[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlkb]
@=”http://support.microsoft.com/kb/%s”[HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlyh]
@=”http://search.yahoo.com/search?p=%s”%5B/CODE%5DEverything working as expected… I’ve even tried batch script with those option only:
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrl” /ve /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlBb” /ve /d “http://info.babylon.com/cgi-bin/info.cgi?word=%s&lang=14&type=hp&layout=combo.html&n=10&list=” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlggl” /ve /d “http://www.google.com/search?q=%s” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlevt” /ve /d “http://www.eventid.net/display.asp?eventid=%s” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlimg” /ve /d “http://images.google.com/images?hl=en&q=%s” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlkb” /ve /d “http://support.microsoft.com/kb/%s” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlyh” /ve /d “http://search.yahoo.com/search?p=%s” /f[/CODE]And got the same result… If somebody know how to fix this issue it will be much appreciated…
[CODE]reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrl” /ve /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlBb” /ve /d “http://info.babylon.com/cgi-bin/info.cgi?word=%s&lang=14&type=hp&layout=combo.html&n=10&list=” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlggl” /ve /d “http://www.google.com/search?q=%s” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlevt” /ve /d “http://www.eventid.net/display.asp?eventid=%s” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlimg” /ve /d “http://images.google.com/images?hl=en&q=%s” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlkb” /ve /d “http://support.microsoft.com/kb/%s” /f
reg add “HKEY_CURRENT_USERSOFTWAREMicrosoftInternet ExplorerSearchUrlyh” /ve /d “http://search.yahoo.com/search?p=%s” /f[/CODE]And got the same result… If somebody know how to fix this issue it will be much appreciated…
-
AuthorPosts
You must be logged in to reply to this topic.