Solved

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

Posted on 2010-09-14
3
486 Views
Last Modified: 2012-05-10
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
Comment
Question by:mrfite
  • 2
3 Comments
 
LVL 37

Accepted Solution

by:
Neil Russell earned 250 total points
ID: 33677088
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
 

Author Closing Comment

by:mrfite
ID: 33677160
The OS is Server 2008 R2 and this is exactly what I needed.
0
 
LVL 37

Expert Comment

by:Neil Russell
ID: 33677170
Glad to be of service.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question