CLOSE  
@ECHO OFF

netdiag.exe | findstr.exe /V "Q...... KB......"
del NetDiag.log 1>nul 2>nul
rpcdump.exe /I /V
cscript.exe device.vbs
cscript.exe service.vbs /L
ipconfig.exe /all
nbtstat.exe -n
netstat.exe -an | findstr.exe "LISTENING UDP"
cscript.exe protocolbinding.vbs
netset.exe /display
rem net.exe share

net.exe use m: %LOGONSERVER%\sysvol 1>nul 2>nul
IF %ERRORLEVEL%==0 (
ECHO Sysvol mapping successful!
) ELSE (ECHO Sysvol mapping failed.)
net.exe use m: /d 1>nul 2>nul

ver | findstr.exe "2000" 1>nul 2>nul
IF %ERRORLEVEL%==0 (
secedit.exe /refreshpolicy machine_policy 1>nul 2>nul
secedit.exe /refreshpolicy user_policy 1>nul 2>nul
) ELSE (
gpupdate.exe /force 1>nul 2>nul
)

gpresult.exe | findstr.exe "Last time"

図3●基本機能の動作を検証するbaseline.bat ネットワーク構成やグループ・ポリシーなどの機能をテストする。

Copyright (C) 2004 Nikkei Business Publications, Inc. All rights reserved.