#162603 - 2006-05-30 11:33 AM
disabling show web content
|
colin1964
Lurker
Registered: 2006-05-28
Posts: 3
|
I am currently running a kix script that deploys a legal notice, a corporate wallpaper and screensaver. The problem I am having is that the wallpaper is deployed but is hidden behind that set by the user if they have show web content active. If I disable this at the local machine the wallpaper is set. I have looked through the vast information on this site and come across this bit of script
$ = AddKey("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\ CurrentVersion\Policies\Explorer")
$ = WriteValue ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\ CurrentVersion\Policies\Explorer\", "NoSetActiveDesktop","1", "REG_SZ")
$ = WriteValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\ CurrentVersion\Policies\Explorer\", "NoFolderOptions","1", "REG_SZ")
$ = WriteValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\ CurrentVersion\Policies\Explorer\", "NoActiveDesktop","1", "REG_SZ")/font>
I added this to my Kix but would appear not to work. Have run gpupdate on test machine and then checked registry. HKLM is not showing the new settings in polices. can anyone suggest were I am going wrong. My systems are a split between 2000 and XP. Many thanks inappreciation
|
Top
|
|
|
|
#162605 - 2006-05-30 11:42 AM
Re: disabling show web content
|
Björn
Korg Regular
Registered: 2005-12-07
Posts: 953
Loc: Stockholm, Sweden.
|
Hi and welcome! First off, when posting code, do a ([)code(]) this is my ([)/code(]) (without '(' and ')' ). Second, just using $ is not recommended, just go with something like.. urhm.. $wr =). Third, the part of the reg you're trying to alter is limited to administrators. Forth, what does /font> do at the last line?
Code:
$wr = AddKey("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer") $wr = WriteValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\","NoSetActiveDesktop","1","REG_SZ") $wr = WriteValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\","NoFolderOptions","1","REG_SZ") $wr = WriteValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer\","NoActiveDesktop","1","REG_SZ")
_________________________
as long as it works - why fix it? If it doesn't work - kix-it!
|
Top
|
|
|
|
#162606 - 2006-05-30 11:53 AM
Re: disabling show web content
|
colin1964
Lurker
Registered: 2006-05-28
Posts: 3
|
Sorry about the formating advice on future posts taken on board. The /font was actually from another bit of the script I inadvently copied have removed this. Will change $ to your recommendation of $wr and test again. Can I change reg settings through a Kix script or is this a bad idea
|
Top
|
|
|
|
#162608 - 2006-05-30 12:27 PM
Re: disabling show web content
|
colin1964
Lurker
Registered: 2006-05-28
Posts: 3
|
Have now run script on test machine having changed permissions, entries are being changed so thanks bjorn. Mart I will look at utilitiies and GPO to try and change the permissions all your help greatly appreciated.
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 248 anonymous users online.
|
|
|