Page 1 of 1 1
Topic Options
#37741 - 2003-03-11 09:03 PM Disable Preview Pane in Outlook
shouson Offline
Fresh Scripter

Registered: 2003-02-10
Posts: 13
I want to disable the preview pane in Outlook. Here is the script that I'm tring to use:

WriteValue ("HKEY_CLASSES_ROOT\CLSID\00020D75-000-0000-C000-000000000046}\Shell\Open\Command", "(Default)", "C:\PROGRA~1\MICROS~2\Office10\OUTLOOK.EXE /nopreview", "REG_SZ")

After the sript runs the changes aren't made.

Thanks

Top
#37742 - 2003-03-11 09:58 PM Re: Disable Preview Pane in Outlook
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
$ret=WriteValue('HKEY_CLASSES_ROOT\CLSID\00020D75-000-0000-C000-000000000046}\Shell\Open\Command', '', 'C:\PROGRA~1\MICROS~2\Office10\OUTLOOK.EXE /nopreview', REG_SZ)

basically change the "(default)" to an empty string ""

[ 11. March 2003, 22:00: Message edited by: Radimus ]
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#37743 - 2003-03-11 10:17 PM Re: Disable Preview Pane in Outlook
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Also you must have the right permission to make those changes.
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#37744 - 2003-03-12 05:56 PM Re: Disable Preview Pane in Outlook
shouson Offline
Fresh Scripter

Registered: 2003-02-10
Posts: 13
I've tried the script and it still doesn't work. I have full admin rights.

Thanks

Top
#37745 - 2003-03-12 06:33 PM Re: Disable Preview Pane in Outlook
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
post it...
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#37746 - 2003-03-12 06:35 PM Re: Disable Preview Pane in Outlook
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
lol...

now, it's just a copy&paste error in the line.
correct would be:
code:
$ret=WriteValue('HKEY_CLASSES_ROOT\CLSID\{00020D75-000-0000-C000-000000000046}\Shell\Open\Command', '', 'C:\PROGRA~1\MICROS~2\Office10\OUTLOOK.EXE /nopreview', REG_SZ)



[ 12. March 2003, 20:35: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#37747 - 2003-03-12 08:25 PM Re: Disable Preview Pane in Outlook
shouson Offline
Fresh Scripter

Registered: 2003-02-10
Posts: 13
I'm using the following:

WriteValue('HKEY_CLASSES_ROOT\CLSID\00020D75-000-0000-C000-000000000046}\Shell\Open\Command', '', 'C:\PROGRA~1\MICROS~2\Office10\OUTLOOK.EXE /nopreview', REG_SZ)

The /nopreview is not added in the registry

Thanks

Top
#37748 - 2003-03-12 08:28 PM Re: Disable Preview Pane in Outlook
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
shouson, could you compare my code to yours

you have missed the one "{" in the class-id subkey

[ 12. March 2003, 20:36: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#37749 - 2003-03-12 08:48 PM Re: Disable Preview Pane in Outlook
shouson Offline
Fresh Scripter

Registered: 2003-02-10
Posts: 13
Thanks, I added the { but /nopreview isn't added.

Here is the script I used:

WriteValue('HKEY_CLASSES_ROOT\CLSID\{00020D75-000-0000-C000-000000000046}\Shell\Open\Command', '', 'C:\PROGRA~1\MICROS~2\Office10\OUTLOOK.EXE /nopreview', REG_SZ)

Top
#37750 - 2003-03-13 09:02 AM Re: Disable Preview Pane in Outlook
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
so, this shows that it can't be with hacking but you need to do real cracking.

I may check out the outlook setting that rules this...
_________________________
!

download KiXnet

Top
#37751 - 2003-03-13 02:45 PM Re: Disable Preview Pane in Outlook
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
I can see a real problem come to light..

One person may have MICROS~2 another may have MICROS~6..

Try this..
code:
$exe = ReadValue('HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\OUTLOOK.EXE','')
$ver = GetFileVersion($exe) ; -- Get version of executable for MS-Outlook
$pos_locat = INSTR($ver, '.') - 1 ; - Look for where the dot is
$verchk = SUBSTR($ver,1,$pos_locat)
IF $verchk = '10'
WriteValue('HKEY_CLASSES_ROOT\CLSID\{00020D75-000-0000-C000-000000000046}\Shell\Open\Command','', $exe+' /nopreview', REG_SZ)
ENDIF

HTH,

Kent

[ 13. March 2003, 14:46: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#37752 - 2003-03-13 02:48 PM Re: Disable Preview Pane in Outlook
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I found a way to write it but it needs you to run outlook first and then execute the scriptlet.

at least, I didn't find any syntax that would have worked otherwise...
ofcourse the problem might be that there is version inconsistency... or something.
http://support.microsoft.com/default.aspx?scid=kb%3ben-us%3b194884

ps. there is a lot of other settings too...
_________________________
!

download KiXnet

Top
#37753 - 2003-03-13 04:00 PM Re: Disable Preview Pane in Outlook
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Okay, i'm jumping in late, however, I would disable this through either policies or through a preconfigured Office rollout via the Custom Installation / Custom Maintenance Wizard from the Office Resource Kit.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


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

Who's Online
1 registered (Allen) and 641 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.061 seconds in which 0.023 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