is there a GPO for "show file extensions"?

garystark
garystark used Ask the Experts™
on
Is there a group policy that I can apply to our users to show file extensions?

gary
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
There is no setting in the default templates to do this.  The VB script
below will do this however, if you'd lke to distrbute this via script:

HKEY_CURRENT_USER = &H80000001
strComputer = "."
Set objReg = GetObject("winmgmts:\\" & strComputer &
"\root\default:StdRegProv")
strKeyPath = "Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
objReg.CreateKey HKEY_CURRENT_USER, strKeyPath
ValueName = "HideFileExt"
dwValue = 1
objReg.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, ValueName, dwValue

Commented:
Hmm.. it used to work.. Seems to have a comile problem.. Perhaps someone with more VB Experience can hope in here and help fix that. ;)
Commented:
ok, fixed.. Doh.. Pretty easy:

Either share this vbs script out for people to use, or you can use it in a Netlogin script to make it hapen for them as they log in.

To show Extensions, change the "dwvalue = 0"
to Hide Extensions, change the "dwvalue = 1"

HKEY_CURRENT_USER = &H80000001
strComputer = "."
Set objReg = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
strKeyPath = "Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"
objReg.CreateKey HKEY_CURRENT_USER, strKeyPath
ValueName = "HideFileExt"
dwValue = 0
objReg.SetDWORDValue HKEY_CURRENT_USER, strKeyPath, ValueName, dwValue

Author

Commented:
Thanks lazarus, much appreciated.

(Given M$'s alleged emphasis on security I can't believe there isn't a GPO for this.  Making users more aware of what kind of file they're opening seems like such a no brainer.)

gary

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial