Solved

GPO to copy screen saver to %systemroot%\system32

Posted on 2011-02-16
3
2,109 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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

Resolve DNS query failed errors for Exchange
In-place Upgrading Dirsync to Azure AD Connect
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 …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

860 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