Logon Script depending on Windows Version

Posted on: May 16, 2013 Posted by: admin Comments: 1

Logon Script depending on Windows Version

@echo off
ver | find “6.1” > nul
if %ERRORLEVEL% == 0 goto Win7
ver | find “5.1” > nul
if %ERRORLEVEL% == 0 goto WinXP
:Win7
echo Running Windows 7 Script
goto exit
:WinXP
echo Running Windows XP Script
goto exit
:exit

NT 5.1Windows XP XP 64-Bit Edition fr Itanium Tablet PC Edition XP Embedded Windows Embedded 2009 WinFLP

NT 5.2 Windows Server 2003 Small Business Server Compute Cluster Server Home Server XP 64-Bit Edition 2003 fr Itanium XP Professional 64-Bit Edition fr x86-64

NT 6.0 Windows Vista Windows Server 2008 Small Business Server 2008 Essential Business Server 2008 HPC Server 2008

NT 6.1Windows 7 Windows 7 Embedded Windows Server 2008 R2 HPC Server 2008 R2 Small Business Server 2011 Home Server 2011 MultiPoint Server 2010 MultiPoint Server 2011

1 people reacted on this

Comments are closed.