Security Basics mailing list archives
RE: SP level of the Win OS from CMD
From: honswlos+sec () gmail com
Date: Fri, 14 Sep 2007 16:07:19 -0700
The registry value HKLM\SOFTWARE\Microsoft\Windows NT\Current Version\CSDVersion contains the name of the latest service pack (if any) installed on the machine. To do this on the command line, use the REG command: reg query "HKLM\Software\Microsoft\Windows NT\CurrentVersion" /v CSDVersion The quotes are necessary, because "Windows NT" contains a space. You can also use the find utility to get only the line with the information back: reg query "HKLM\Software\Microsoft\Windows NT\CurrentVersion" /v CSDVersion | find "CSDVersion" This will return only the line: "CSDVersion REG_SZ Service Pack 2" -Matt
Current thread:
- RE: SP level of the Win OS from CMD, (continued)
- RE: SP level of the Win OS from CMD John O'Connor (Sep 18)
- Re: SP level of the Win OS from CMD Kurt Buff (Sep 18)
- Re: SP level of the Win OS from CMD Tremaine Lea (Sep 18)
- RE: SP level of the Win OS from CMD Herb Martin (Sep 18)
- RE: SP level of the Win OS from CMD Rob McShinsky (Sep 18)
- Re: SP level of the Win OS from CMD Alexey Eremenko (Sep 18)
- RE: SP level of the Win OS from CMD Bob Hodges (Sep 19)
- RE: SP level of the Win OS from CMD Bob Hodges (Sep 20)
- RE: SP level of the Win OS from CMD Luke Iliffe (Sep 18)
- RE: SP level of the Win OS from CMD dave kleiman (Sep 18)
- RE: SP level of the Win OS from CMD honswlos+sec (Sep 18)
- Re: SP level of the Win OS from CMD AntiVirusEngineer (Sep 18)
- RE: SP level of the Win OS from CMD Rob McShinsky (Sep 18)
- Re: SP level of the Win OS from CMD Ansgar -59cobalt- Wiechers (Sep 18)
- RE: SP level of the Win OS from CMD dave kleiman (Sep 19)