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
483 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
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…

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now