I need a GPO script to only robocopy a file if the OS is Vista and not XP or windows 7

I need a script (prefer batch instead of vbs) that will determine what OS a domain computer is.  If it is a Vista machine it will copy a file.  If it is not (XP or 7), then it will not copy this file.

The Script would run as part of a GPO on System Startup (I understand this part).
mrfiteAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Neil RussellConnect With a Mentor Technical Development LeadCommented:
What ServerOS is running?
From 2008 Server you could use a group policy. Use PREFERENCES and Item Level Targeting. You can then tell it target ONLY Machines with a certain OS.
Read here...
http://trycatch.be/blogs/roggenk/archive/2009/05/14/group-policy-preferences-tips-amp-tricks-2-targeting-editor.aspx 
0
 
mrfiteAuthor Commented:
The OS is Server 2008 R2 and this is exactly what I needed.
0
 
Neil RussellTechnical Development LeadCommented:
Glad to be of service.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.