[gptalk] Re: Need help on rollout logon batch script

  • From: "Nelson, Jamie" <Jamie.Nelson@xxxxxxx>
  • To: <gptalk@xxxxxxxxxxxxx>
  • Date: Fri, 12 Sep 2008 10:25:14 -0500

For starters, you only want the computer startup script copying the
files locally. If you try to add registry keys to HKCU
(HKEY_CURRENT_USER) in the same script it is not going to get you
anywhere because it is adding those values to context of NT
AUTHORITY\SYSTEM.

 

Once you have the startup script successfully copying the files to
%SYSTEMROOT%, create a user configuration GPO to configure the wallpaper
and screen saver. Then you don't have to mess with adding registry keys
manually.

 

Jamie Nelson | Operations Consultant | BI&T Infrastructure-Intel | Devon
Energy Corporation | Work: 405.552.8054 | Mobile: 405.200.8088 |
http://www.dvn.com <http://www.dvn.com/> 

 

From: gptalk-bounce@xxxxxxxxxxxxx [mailto:gptalk-bounce@xxxxxxxxxxxxx]
On Behalf Of Acchuthan Ramachandran
Sent: Friday, September 12, 2008 10:17 AM
To: gptalk@xxxxxxxxxxxxx
Subject: [gptalk] Re: Need help on rollout logon batch script

 

HI! i am copying the files from network share drive which all the users
have access to read & write..

 

i am running this throuh batch script in \\domain\sysvol\domain\scripts
<file:///\\domain\sysvol\domain\scripts> 

 

copy \\domain\sysvol\domain\scripts
<file:///\\domain\sysvol\domain\scripts>  %SystemRoot%\picture.jpg

copy \\domain\sysvol\domain\scripts
<file:///\\domain\sysvol\domain\scripts>  %SystemRoot%\screen.scr

 
REG ADD "HKCU\Control Panel\Desktop" /V Wallpaper /T REG_SZ /F /D
"%SystemRoot%\picture.bmp"
REG ADD "HKCU\Control Panel\Desktop" /V WallpaperStyle /T REG_SZ /F /D 2
REG ADD "HKCU\Control Panel\Desktop" /V TileWallpaper /T REG_SZ /F /D 0
%SystemRoot%\System32\RUNDLL32.EXE user32.dll,
UpdatePerUserSystemParameters

 

how to set the paramaters for screensaver .

 

users in the network are restricted users, how to copy those file to
their system root....

 

Cheers

Acchu

"Nelson, Jamie" <Jamie.Nelson@xxxxxxx> wrote:

        Where are you copying the file(s) from? It needs to be a
location that either "Authenticated Users" or "Domain Computers" has at
least read access to.

         

        Jamie Nelson | Operations Consultant | BI&T Infrastructure-Intel
| Devon Energy Corporation | Work: 405.552.8054 | Mobile: 405.200.8088 |
http://www.dvn.com <http://www.dvn.com/> 

         

        From: gptalk-bounce@xxxxxxxxxxxxx
[mailto:gptalk-bounce@xxxxxxxxxxxxx] On Behalf Of Acchuthan Ramachandran
        Sent: Friday, September 12, 2008 9:39 AM
        To: gptalk@xxxxxxxxxxxxx
        Subject: [gptalk] Re: Need help on rollout logon batch script

         

        Hi! Nelsonl

         

          i have did the changes in the computer configuration and used
the login script in machine startup, but still the file havent copied
from my network drive to local machine to the system folder.... Please
help me is there anyway i can push both my screen saver and wallpapper..

         

        i have two OU's in the domain wanted to apply for one OU
only.... 

         

        Much help appreciated ......

         

        Cheers

        Acchu
        
        "Nelson, Jamie" <Jamie.Nelson@xxxxxxx> wrote:

                Well if you do want to keep everything on the network (I
would), just use offline files to cache those network shares which hold
your desktop, start menu, and wallpaper content. J

                 

                Jamie Nelson | Operations Consultant | BI&T
Infrastructure-Intel | Devon Energy Corporation | Work: 405.552.8054 |
Mobile: 405.200.8088 | http://www.dvn.com <http://www.dvn.com/> 

                 

                From: gptalk-bounce@xxxxxxxxxxxxx
[mailto:gptalk-bounce@xxxxxxxxxxxxx] On Behalf Of James F. Prudente
                Sent: Wednesday, September 10, 2008 10:29 AM
                To: gptalk@xxxxxxxxxxxxx
                Subject: [gptalk] Re: Need help on rollout logon batch
script

                 

                OK, fair enough. In my case, if a user loses their
network connection they're not getting a start menu, desktop or anything
else, so the wallpaper is the least of their problems. :)

                 

                 

                From: gptalk-bounce@xxxxxxxxxxxxx
[mailto:gptalk-bounce@xxxxxxxxxxxxx] On Behalf Of Nelson, Jamie
                Sent: Wednesday, September 10, 2008 10:54 AM
                To: gptalk@xxxxxxxxxxxxx
                Subject: [gptalk] Re: Need help on rollout logon batch
script

                 

                Because if you ever lose your network connection for
whatever reason your wallpaper will go blank. Copying it to the local
system is an extra step, but it's simple and gives you  much more
consistent results. J

                 

                Jamie Nelson | Operations Consultant | BI&T
Infrastructure-Intel | Devon Energy Corporation | Work: 405.552.8054 |
Mobile: 405.200.8088 | http://www.dvn.com <http://www.dvn.com/> 

                 

                From: gptalk-bounce@xxxxxxxxxxxxx
[mailto:gptalk-bounce@xxxxxxxxxxxxx] On Behalf Of James F. Prudente
                Sent: Wednesday, September 10, 2008 9:32 AM
                To: gptalk@xxxxxxxxxxxxx
                Subject: [gptalk] Re: Need help on rollout logon batch
script

                 

                Why not just locate the wallpaper on a network share and
point to it via the GPO Jamie indicates below?

                 

                From: gptalk-bounce@xxxxxxxxxxxxx
[mailto:gptalk-bounce@xxxxxxxxxxxxx] On Behalf Of Nelson, Jamie
                Sent: Wednesday, September 10, 2008 10:05 AM
                To: gptalk@xxxxxxxxxxxxx
                Subject: [gptalk] Re: Need help on rollout logon batch
script

                 

                Well for starters, I would use a computer startup script
to copy the file to the system root folder. It will run under the NT
AUTHORITY\SYSTEM context and should have all the rights you need. Or, if
you have the Group Policy Preference (GPP) extensions deployed, you can
also them to do simple file copies like this.

                 

                For configuring the actual wallpaper though, you should
use the native Group Policy settings so the wallpaper can easily be
"undone" my simply removing the GPO . You'll need to configure the
following policy settings:

                 

                User Configuration/Administrative
Templates/Desktop/Active Desktop/Enable Active Desktop = "Enabled"

                User Configuration/Administrative
Templates/Desktop/Active Desktop/Active Desktop Wallpaper = "Local/UNC
Path to Wallpaper"

                 

                Keep in mind that once you configure it this way, the
user will not be able to change it.

                 

                Jamie Nelson | Operations Consultant | BI&T
Infrastructure-Intel | Devon Energy Corporation | Work: 405.552.8054 |
Mobile: 405.200.8088 | http://www.dvn.com <http://www.dvn.com/> 

                 

                From: gptalk-bounce@xxxxxxxxxxxxx
[mailto:gptalk-bounce@xxxxxxxxxxxxx] On Behalf Of Acchuthan Ramachandran
                Sent: Tuesday, September 09, 2008 11:36 PM
                To: gptalk@xxxxxxxxxxxxx
                Subject: [gptalk] Need help on rollout logon batch
script

                 

                Hi! All,

                 

                  i need a help on rollout the batch file in logon
script, i have created a bacth script to change the default wall paper
and screen saver, But the users are normal users, so when the script
cant copy the file to the system root folder. I want this to be done and
dont let the users to changet the wall paper or screen saver. could
anyone help me on this 

                 

                 here is the script i have did

                 

                copy \\pdc\screen\picture.bmp
<file:///\\pdc\screen\picture.bmp>  %SystemRoot%\picture.bmp 
                REG ADD "HKCU\Control Panel\Desktop" /V Wallpaper /T
REG_SZ /F /D "%SystemRoot%\picture.bmp"
                REG ADD "HKCU\Control Panel\Desktop" /V WallpaperStyle
/T REG_SZ /F /D 2
                REG ADD "HKCU\Control Panel\Desktop" /V TileWallpaper /T
REG_SZ /F /D 0
                %SystemRoot%\System32\RUNDLL32.EXE user32.dll,
UpdatePerUserSystemParameters

                 

                Thanks for the help

                 

                Cheers

                Acchuthan

                  

________________________________

                New Email names for you!
<http://sg.rd.yahoo.com/sg/mail/domainchoice/mail/signature/*http:/mail.
promotions.yahoo.com/newdomains/sg/> 
                Get the Email name you've always wanted on the new
@ymail and @rocketmail.
                Hurry before someone else does!

                
________________________________


                Confidentiality Warning: This message and any
attachments are intended only for the use of the intended recipient(s),
are confidential, and may be privileged. If you are not the intended
recipient, you are hereby notified that any review, retransmission,
conversion to hard copy, copying, circulation or other use of all or any
portion of this message and any attachments is strictly prohibited. If
you are not the intended recipient, please notify the sender immediately
by return e-mail, and delete this message and any attachments from your
system. 

         

          

________________________________

        Yahoo! Toolbar is now powered with Search Assist. Download it
now!
<http://sg.rd.yahoo.com/search/toolbar/mail/signature/*http:/sg.toolbar.
yahoo.com/> 

 

  

________________________________

Try cool new emoticons, skins, plus more space for friends. Download
Yahoo! Messenger Singapore now.
<http://sg.rd.yahoo.com/messenger/mailtagline/beta2sg/*http:/sg.messenge
r.yahoo.com> 

Other related posts: