Discussion:
check vista or xp
(too old to reply)
nico
2009-09-03 17:10:22 UTC
Permalink
i would like to have a script where it checks if the users logs on a xp or
vista machine.

so i can copy the c:\user to vista clients

tx for any info
Pegasus [MVP]
2009-09-03 19:44:03 UTC
Permalink
Post by nico
i would like to have a script where it checks if the users logs on a xp or
vista machine.
so i can copy the c:\user to vista clients
tx for any info
You could use the "ver" command in a batch file environment. In VB Scripts
it takes a little more than three letters. It also takes longer to execute.

Set OSSet = GetObject("winmgmts://." _
& "/root/cimv2").ExecQuery("select * from Win32_OperatingSystem")
For Each OS In OSSet
wscript.echo OS.Caption, OS.CSDVersion
Next
nico
2009-09-04 07:03:04 UTC
Permalink
great, thank you, that was whatr i was looking for.
Post by Pegasus [MVP]
Post by nico
i would like to have a script where it checks if the users logs on a xp or
vista machine.
so i can copy the c:\user to vista clients
tx for any info
You could use the "ver" command in a batch file environment. In VB Scripts
it takes a little more than three letters. It also takes longer to execute.
Set OSSet = GetObject("winmgmts://." _
& "/root/cimv2").ExecQuery("select * from Win32_OperatingSystem")
For Each OS In OSSet
wscript.echo OS.Caption, OS.CSDVersion
Next
Loading...