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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

In this article, we will see the basic design consideration while designing a Multi-tenant web application in a simple manner. Though, many frameworks are available in the market to develop a multi - tenant application, but do they provide data, cod…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

758 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

23 Experts available now in Live!

Get 1:1 Help Now