Page 2 of 2 <12
Topic Options
#105321 - 2003-10-01 09:51 PM Re: ADDKEY AND WRITEVALUE PROBLEMS - SCREEN SAVER TAB DISPLAY
ChristopheM Offline
Hey THIS is FUN
*****

Registered: 2002-05-13
Posts: 311
Loc: STRASBOURG, France
don't try with kix or an other scripting language to write in HKCU\Software\Microsoft\Windows\Currentversion\Policies. this is write-protected because why design, it is reserved for policies (poledit+ntconfig.pol on NT4, GPO on Windows 2000)
_________________________
Christophe

Top
#105322 - 2003-10-01 09:57 PM Re: ADDKEY AND WRITEVALUE PROBLEMS - SCREEN SAVER TAB DISPLAY
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yep.
christophe, you said it shortly and clearly...
well, better that I could [Wink]
_________________________
!

download KiXnet

Top
#105323 - 2003-10-03 12:42 AM Re: ADDKEY AND WRITEVALUE PROBLEMS - SCREEN SAVER TAB DISPLAY
Sparko Offline
Fresh Scripter

Registered: 2003-10-01
Posts: 6
Thank you all for your help. So, it looks like I won't be able to do what I want via a script unless all my users have admin rights, which isn't going to happen.

Oddly, I have noticed that the Screen Saver tab has disappeared for some of my users (who don't have admin rights), so I'm still a bit mystified.

Will investigate POLEDIT to see if if fits the bill.

[ 02. October 2003, 12:46: Message edited by: Sparko ]

Top
#105324 - 2003-10-02 02:33 PM Re: ADDKEY AND WRITEVALUE PROBLEMS - SCREEN SAVER TAB DISPLAY
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Nop, you're conlcusion is incorrect. The script needs admin right if the script want to wrtie to the Policies subkey.

Solutions are:
1) LPO, GPO or POLEDIT
2) Admin script making remote registry changes, e.g.
code:
$comps=NetView2()
for each $comp in $comps
$rc=WRITEVALUE('\\'+$comp+'\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System','NoDispScrSavPage','1','REG_DWORD')
next

_________________________
There are two types of vessels, submarines and targets.

Top
Page 2 of 2 <12


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 657 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.06 seconds in which 0.033 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org