Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 514
  • Last Modified:

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).
0
mrfite
Asked:
mrfite
  • 2
1 Solution
 
Neil RussellTechnical 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

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now