Hide "File name extensions" checkbox in File Explorer

Cloud_Geek_82 851 Reputation points
2021-07-07T05:08:07.927+00:00

Hi guys,

Is it possible to hide "File name extensions" checkbox in File Explorer of Windows 10 so that users couldn't accidentally hide\show file extensions.

112396-file-explorer-file-name-extensions.jpg

Preferably with GPO.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,573 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Candy Luo 12,701 Reputation points Microsoft Vendor
    2021-07-07T07:14:48.48+00:00

    Hi ,

    As far as I know, there is no build-in way could disable or hide "File name extensions" checkbox.

    Since we can use Hid2FileExt (0 = Show,1 = Hide) registry key to check or uncheck the box of File name extensions.

    As a work around, you can create a script that queries the data of the Hid2FileExt value, if it detect the value of Hid2FileExt is 1, it will auto set the registry value to 0. After enabling or disabling these registry values, the script then kills and restarts the Windows Explorer process.

    The script may something around below ():

    $hide = (Get-ItemProperty -path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced).HideFileExt  
    If ($hide -eq 1) {   
    Set-ItemProperty -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name HideFileExt -Value "0"  
    }  
    

    For more question about PowerShell scripts , you can ask in our PowerShell forum.

    Best Regards,
    Candy

    --------------------------------------------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.