Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > check vista or xp

Reply
Thread Tools Display Modes

check vista or xp

 
 
nico
Guest
Posts: n/a

 
      09-03-2009

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

 
Reply With Quote
 
 
 
 
Pegasus [MVP]
Guest
Posts: n/a

 
      09-03-2009


"nico" <> wrote in message
news:...
>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


 
Reply With Quote
 
nico
Guest
Posts: n/a

 
      09-04-2009
great, thank you, that was whatr i was looking for.


"Pegasus [MVP]" <> schreef in bericht
news:...
>
> "nico" <> wrote in message
> news:...
>>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
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
spell check wont check english/ just confused Windows Vista Mail 7 09-11-2009 07:10 AM
check this out Vista MB BigJim Windows Vista Hardware 2 03-13-2007 02:37 PM
Microsoft Vulnerability Check on Trend Micro Housecall Virus Check Eugene London Windows Update 1 10-21-2005 11:48 PM
Microsoft Vulnerability Check on Trend Micro Hosuecall Virus Check Eugene London Windows Update 0 10-14-2005 03:23 PM
Microsoft Vulnerability Check on Trend Micro Hosuecall Virus Check Eugene London Windows Update 5 10-12-2005 05:30 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59