TechMerlin
MIS
Hi All,
I have a few legacy machines still wiht XP SP2 on them and am trying to script a logoff script to read the reg value of HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CSDVersion for the value of "Service Pack 2" and if so to run the SP3 installer silently. but for the life of me the I can not seem to get the script to run without exiting after checking the regvalue.
what am I missing here
REM @echo off
find | reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CSDVersion"
if "Service Pack 2" goto Install
if other goto End
:Install
echo Installing Service Pack 3
\\<servername>\<Sharename>\WINXPSP3.msi /quiet /norestart
:end
I have a few legacy machines still wiht XP SP2 on them and am trying to script a logoff script to read the reg value of HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CSDVersion for the value of "Service Pack 2" and if so to run the SP3 installer silently. but for the life of me the I can not seem to get the script to run without exiting after checking the regvalue.
what am I missing here
REM @echo off
find | reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CSDVersion"
if "Service Pack 2" goto Install
if other goto End
:Install
echo Installing Service Pack 3
\\<servername>\<Sharename>\WINXPSP3.msi /quiet /norestart
:end