esprits top Esprit's Style

    -    エンジニアの足つぼ    -

WindowsXP レジストリ その他

〆 レジストリエディタのブックマーク

意外に知られていませんが、キーをブックマークをすることが可能です。
  レジストリエディタ→お気に入り

〆 レジストリのリモート操作

HKLM(HKEY_LOCAL_MACHINE)、HKU(HKEY_USERS)のみリモート操作が可能です。
それ以外の3つのルートキーは、操作できません。
またreg コマンドのオプションとしては、restore, export, importが利用できません。

バッチファイル化してレジストリを変更します。
※ユーザ名からUIDを取得できませんでした;;;
 なので、下記バッチファイルを実行する場合には、事前にUIDを調べておく
 必要があります。
 vbsで作るべきですね;今度、時間があるときに考えます。


@remoto_reg.bat
@echo off
if "%1"=="/?" goto usage
if /i "%1"=="/help" goto usege
if not "%1"=="" (if not "%2"=="" (echo Use network!!) else (goto usege))

rem -- Start  ---------------------------------------------
if "%1"=="" (
    set HK_U=HKCU
    set HK_M=HKLM
) else (
    set HK_U=\\%1\HKU\%2
    set HK_M=\\%1\HKLM
    set reg_dir=C:\
    set ADMIN_USER=administrator
    echo Connecto %1 ...
    rem net use \\%1%\ipc$ /user:%ADMIN_USER% *
    net use \\%1%\ipc$ *
)
echo OBJECTIVO: %HK_U%
echo OBJECTIVO: %HK_M%

echo -- Save Registory ------------------------------------
set dateef=%DATE:/=%
set timeef=%TIME::=%
set timeef=%timeef:~0,4%
if "%1"=="" (
    echo Guardar registroy en reg_%HK_U%%dateef%_%timeef%_on.hiv
    reg save "HKCU" reg_%HK_U%%dateef%_%timeef%_on.hiv
) else (
    echo Guardar registroy en %reg_dir%reg_HKU%dateef%_%timeef%_on.hiv
    reg save "HKU" %reg_HKU%dateef%_%timeef%_on.hiv

)
rem -- Start Config ---------------------------------------
echo -- Don't display ControlPanel ------------------------
reg add   "%HK_U%\Software\Microsoft\Windows\CurrentVersion \
  \Policies\Explorer" /v NoControlPanel /t REG_DWORD /d "1" /f
echo -- Don't display WindowsUpdate -----------------------
reg add   "%HK_U%\Software\Microsoft\Windows\CurrentVersion \
  \Policies\Explorer" /v NoWindowsUpdate /t REG_DWORD /d "1" /f
echo -- Don't display Folder Option -----------------------
reg add   "%HK_U%\Software\Microsoft\Windows\CurrentVersion \
  \Policies\Explorer" /v NoFolderOptions /t REG_DWORD /d "1" /f
echo -- Don't display Internet Option ---------------------
reg add   "%HK_U%\Software\Policies\Microsoft\Internet Explorer \
  \Restrictions" /v NoBrowserOptions /t REG_DWORD /d "1" /f

rem -- End  -----------------------------------------------
if not "%1"=="" (
net use \\%1\ipc$ /delete
)

goto end

:usege
echo USEGE:
echo usage: %0 [Machine Name or ip address] [uid]
echo usage: %0 pc01 S-1-5-21-123456789-123456789-1234567890-1000

rem -------------------------------------------------------
rem Copyright (c) 2005 ESPRITS. All rights reserved.
rem -------------------------------------------------------
:end
The link to this site is free.   /   Last Updated : 28.May.2012   
Copyright © ESPRITS STYLE. 2003-2007   /   ご意見、感想、苦情は、 こちらへ...
counter