Attempting to edit registry in Windows using batch file

I support several offices across the country running Windows XP. They are standalone, not Windows Server or Active Directory, nothing like that. I just switched them to Google Apps, and in the process, I replaced Windows Live Messenger with Google Talk. I really want Windows Live not to be used, the platform sends so much spam and seems to have a lot of holes. I tested registry editing on a key

HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun 

Adding a string value msnmsgr.exeto a value 1. I did it manually on one machine, and it worked, for both profiles, it did not start Messenger. After my success, I wrote a .REG file:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun]
"msnmsgr.exe"="1"

And a batch file launched from the same directory, written as follows:

@ECHO off

REGEDIT.EXE /S msn.reg

, , Live . , . , Serverfault , , , .

.

+5
2

, . kb, () REG_SZ , "1", ( "MsnMsgr.Exe" ). , .REG :

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun]
"1"="msnmsgr.exe"

, REG.EXE , , .REG . , , REG.EXE :

reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\DisallowRun" /v "1" /t REG_SZ /d "msnmsgr.exe" /f
+11

, , .reg , regedit.

0

All Articles