Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple .adm file help (for registry changes)

Status
Not open for further replies.

manikm

Technical User
Mar 29, 2001
147
GB
Hi there,

I need to change the way Internet Explorer opens up .ppt (Powerpoint 2003) from hyperlinks - I have found the registry key that needs changing, its:

HKLM\Software\Classes\Powerpoint.Show.8

There is a setting called:

BrowserFlags REG_DWORD 0x00000001 (1)

Now, if i change the first figure to read 0x0000000b (11) this fixed my problem, but I can't figure out how to put that into an .adm to push out via GPO.

Here is my current adm which WORKS up until the number 9 (because after 9 - hex and decimal become different)


CLASS MACHINE

CATEGORY "Launch full MS Powerpoint from hyperlinks"

KEYNAME "Software\Classes\PowerPoint.Show.8"
POLICY "Set powerpoint to lauch fully from a hyperlink"
PART "Set powerpoint to lauch fully from a hyperlink" CHECKBOX
VALUENAME BrowserFlags
VALUEON NUMERIC 1
VALUEOFF NUMERIC 0
END PART
END POLICY

END CATEGORY


You can see that i have to put a NUMERIC value in there, but obviously b isn't a NUMERIC its ALPHA if anything.

How can i specify in my .adm file that the setting becomes:

BrowserFlags REG_DWORD 0x0000000b (11)

Help would be much obliged.



 
Quicker surely to stick it into a .reg and run it in the profile.
 
Yea, I'm with Zelendakh. I'd script it rather than use an ADM. You can deliver the script via GPO.

Code:
On error resume next

Dim path

Set WSHShell = CreateObject("WScript.Shell")

Path = "HKLM\Software\Classes\PowerPoint.Show.8\BrowserFlags"


WSHShell.RegWrite Path,"11","REG_DWORD"

If err then
	msgbox "Error Encountered"
else
	msgbox "Sucessful"
End if

I hope you find this post helpful.

Regards,

Mark
 
for some reason, it now works.

what i did was to re type the adm file, and delete and reimport it.

now it works!

i checked on a few machines with GPUPDATE /force - and i could see the setting change when hitting F5 in regedit.

thanks for your ideas - i do need to investigate scripting really, as we rely on adms and batch files in login scripts.
 
Please post your final ADM final in [ignore]
Code:
tags so we can see the end result.[/ignore]

I hope you find this post helpful.

Regards,

Mark
 
Code:
 CLASS MACHINE

CATEGORY "Launch full MS Powerpoint from hyperlinks"

KEYNAME "Software\Classes\PowerPoint.Show.8"
POLICY "Set powerpoint to lauch fully from a hyperlink"
PART "Set powerpoint to lauch fully from a hyperlink" CHECKBOX
VALUENAME BrowserFlags
VALUEON NUMERIC 11
VALUEOFF NUMERIC 0
END PART
END POLICY

END CATEGORY
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top