Welcome to FreeSoftwareServers Confluence Wiki

https://www.robvanderwoude.com/ntregistry.php

https://ss64.com/nt/reg.html

Edit:

@ECHO OFF
CLS
setlocal ENABLEEXTENSIONS
::FreeSoftwareServers.com
::reg add "HKCU\SOFTWARE\Microsoft\Office\16.0\Outlook\Options\Conversations\" /v ConversationsOnInAllFoldersChangeNumber /t REG_DWORD /d 6 /f
::set regpath="HKCU\SOFTWARE\Microsoft\Office\16.0\Outlook\Options\Conversations\"
::set regkey="ConversationsOnInAllFoldersChangeNumber"
::set regtype="REG_DWORD"
::set regval=6

set regpath=%~1
set regkey=%~2
set regtype=%~3
set regval=%~4

reg add %regpath% /v %regkey% /f /t %regtype% /d %regval% 

::PAUSE

Search:

@ECHO OFF
CLS
setlocal ENABLEEXTENSIONS
::FreeSoftwareServers.com

::REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" /f "O365ProPlusRetail - en-us" /k
::REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" /f "*365*" /k

set toplevel="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
set key="O365*"

FOR /F "tokens=* USEBACKQ" %%N IN (`REG QUERY "%toplevel%" /f "%key%" /k`) DO (
 ECHO "%%N" | FIND /I "HKEY">Nul && ( 
  set keypath=%%N
  goto Found
 ) 
)

:Found
 echo %keypath%
 pause
:end
  • No labels