PC Review


Reply
Thread Tools Rate Thread

Script to change Logon wallpaper

 
 
=?Utf-8?B?QW5keSBDIE1hdHRoZXdz?=
Guest
Posts: n/a
 
      21st Dec 2004
Hi there,
I want to change the default logon screen wallpaper for machines on our
Win2k domain. I have accomplished it by modifying the registry at
HKEY_USERS\.DEFAULT\Control Panel\Desktop Wallpaper and specifying a path
here, but is there a way this can be written into a Visual Basic script to
run as a logon script?
Many thanks to anyone who knows how to do this!

PS. If anyone knows how to change the logon box logo from the standard
windows xp one I would be even more pleased!
 
Reply With Quote
 
 
 
 
Jerold Schulman
Guest
Posts: n/a
 
      22nd Dec 2004
On Tue, 21 Dec 2004 09:21:04 -0800, Andy C Matthews <Andy C (E-Mail Removed)> wrote:

>Hi there,
>I want to change the default logon screen wallpaper for machines on our
>Win2k domain. I have accomplished it by modifying the registry at
>HKEY_USERS\.DEFAULT\Control Panel\Desktop Wallpaper and specifying a path
>here, but is there a way this can be written into a Visual Basic script to
>run as a logon script?
>Many thanks to anyone who knows how to do this!
>
>PS. If anyone knows how to change the logon box logo from the standard
>windows xp one I would be even more pleased!



Ordinary users don't have the permission.

Install reg.exe from the support tools on the W2K CD-ROM to your
workstation. Then run
DefWP WallPaperPath
to change all the computers on your network.

@echo off
if {%1}=={} @echo Syntax: DefWP WallerPaperPath&goto :EOF
if not exist %1 @echo Syntax: DefWP WallerPaperPath - %1 not found.&goto :EOF
setlocal
set wp=%1
for /f "Tokens=*" %%c in ('net view^|FIND "\\"') do (
REG ADD "%%c\HKU\.DEFAULT\Control Panel\Desktop" /V Wallpaper /T REG_SZ /D %wp% /F
)
endlocal


Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
 
Reply With Quote
 
 
 
 
Brian Higgins
Guest
Posts: n/a
 
      31st Dec 2004
or you could write a vbs script (see below), create a group policy COMPUTER
startup script (will run with local system permissions, and then you don't
have user restriction problems) and write it that way...

Set objShell=CreateObject("Wscript.Shell")
KeyName = "HKEY_USERS\.DEFAULT\Control Panel\"
objShell.RegWrite KeyName & "Desktop Wallpaper", "\\server\share\image.jpg"

change the UNC path and file name to whatever you want and that should work.

-Brian

"Jerold Schulman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> On Tue, 21 Dec 2004 09:21:04 -0800, Andy C Matthews <Andy C
> (E-Mail Removed)> wrote:
>
>>Hi there,
>>I want to change the default logon screen wallpaper for machines on our
>>Win2k domain. I have accomplished it by modifying the registry at
>>HKEY_USERS\.DEFAULT\Control Panel\Desktop Wallpaper and specifying a path
>>here, but is there a way this can be written into a Visual Basic script to
>>run as a logon script?
>>Many thanks to anyone who knows how to do this!
>>
>>PS. If anyone knows how to change the logon box logo from the standard
>>windows xp one I would be even more pleased!

>
>
> Ordinary users don't have the permission.
>
> Install reg.exe from the support tools on the W2K CD-ROM to your
> workstation. Then run
> DefWP WallPaperPath
> to change all the computers on your network.
>
> @echo off
> if {%1}=={} @echo Syntax: DefWP WallerPaperPath&goto :EOF
> if not exist %1 @echo Syntax: DefWP WallerPaperPath - %1 not found.&goto
> :EOF
> setlocal
> set wp=%1
> for /f "Tokens=*" %%c in ('net view^|FIND "\\"') do (
> REG ADD "%%c\HKU\.DEFAULT\Control Panel\Desktop" /V Wallpaper /T REG_SZ /D
> %wp% /F
> )
> endlocal
>
>
> Jerold Schulman
> Windows Server MVP
> JSI, Inc.
> http://www.jsiinc.com



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling webpage with logon script, logon script wont close gerryR Microsoft Windows 2000 CMD Promt 16 6th Nov 2009 06:19 PM
Wallpaper problems with .jpg files in Display Properties tab. Cannot select .JPG wallpaper! fala1969 Windows XP Customization 3 20th Jul 2004 07:39 PM
Logon Script/Terminal Server Logon Script Don Jones Microsoft Windows 2000 Networking 5 6th Apr 2004 11:05 AM
porno pics in wallpaper file on my childs computer how do i delete wallpaper? =?Utf-8?B?bXkgY2hpbGRzIGNvbXB1dGVyIGFtYmFydHJhbShh Microsoft Windows 2000 2 14th Nov 2003 03:57 AM
Wallpaper changing and MS Wallpaper Powertoy - A How To Novel Silverman Windows XP Customization 0 20th Jul 2003 04:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:08 PM.