Solved

GPO to copy screen saver to %systemroot%\system32

Posted on 2011-02-16
3
2,090 Views
Last Modified: 2012-05-11
Hi,

I have created a GPO to copy a screen saver scr file from the domain netlogon to the %systemroot%\system32 directory.

The bat file below is in the Logon scripts section of the policy;

@echo off
IF NOT EXIST "%systemroot%\System32\screensaver.scr" (GOTO COPYSCR) ELSE (exit)

:COPYSCR
copy \\domain.root.com\netlogon\screensaver.scr %systemroot%\System32
exit

The policy also enables this screen saver and various timeout settings.

However, when users execute the GPO it fails with access denied as they don't have rights to the %systemroot%\system32. The bat file worked as an administrator.

Anybody know a way around this?? I don't have a directory on the clients that users have access to other than thier profile. As we have many different OS versions, this will differ.

Thanks for any help.
0
Comment
Question by:ncomper
3 Comments
 
LVL 4

Accepted Solution

by:
ChuckDeezel earned 500 total points
ID: 34907588
Have it go to the All Users profile instead. Or maybe have it go to common files? (%COMFILESDIR%)

It looks like you will need to change the location, as elevating privs is out of the question.
0
 
LVL 27

Expert Comment

by:Lukasz Chmielewski
ID: 34908324
There is a GPO setting for the screensaver if that's what you want
(if you use other then default accesible)
in
user configuration, administrative templates, desktop, display
0
 
LVL 5

Author Closing Comment

by:ncomper
ID: 35010583
Thanks
0

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
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.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

910 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

26 Experts available now in Live!

Get 1:1 Help Now