Receiving "Error: Access is denied" when using fsutil setshortname

Win7Wilson13

New member
Local time
3:54 AM
Messages
1
Receiving "Error: Access is denied" when using fsutil setshortname

I am trying to use the fsutil setshortname to set "Program Files" to PROGRA~1, but the system is giving me an "Error: Access is denied" response. The following is what I have typed:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Windows\system32>cd ..
C:\Windows>cd ..
C:\>fsutil.exe 8dot3name set 0

C:\>fsutil file setshortname "C:\Program Files" PROGRA~1
Error: Access is denied.

C:\>fsutil file setshortname "Program Files" PROGRA~1
Error: Access is denied.


As you can tell, I first tried to do a reference to the path of Program Files, and failed. Then, I tried without the path file and got the same result.

What could be the reason that the system is denying the access? Thanks.

(P.S. This Command Prompt is ran as Administrator, so that shouldn't be the issue)
 

My Computer My Computer

Computer type
PC/Desktop
OS
Windows 7 Enterprise 64-bit
Well, the shortname is already set as you want.
Code:
C:\>dir /x pro*
 Volume in drive C is Win_8
 Volume Serial Number is 3400-1036

 Directory of C:\

07/06/2013  08:56 PM    <DIR>          PROGRA~1     Program Files
07/01/2013  08:23 PM    <DIR>          PROGRA~2     Program Files (x86)
               0 File(s)              0 bytes
               2 Dir(s)  72,667,992,064 bytes free
Edit: I get the same Access denied when I try it.
 

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Lenovo IdeaCenter 450
OS
Windows 10 Pro X64
CPU
Intel Quad Core i7-4770 @ 3.4Ghz
Memory
16.0GB PC3-12800 DDR3 SDRAM 1600 MHz
Graphics Card(s)
Intel Integrated HD Graphics
Sound Card
Realtek HD Audio
Monitor(s) Displays
HP 22" LCD
Screen Resolution
1680 x 1050
Hard Drives
250GB Samsung EVO SATA-3 SSD
2TB Seagate ST2000DM001 SATA-2
1.5TB Seagate ST3150041AS SATA
Keyboard
Dell USB
Mouse
Lenovo USB
Internet Speed
Cable via Road Runner 3MB Upload, 30MB Download
Antivirus
Windows Defender, MBAM Pro, MBAE
Browser
Seamonkey
Other Info
UEFI/GPT
PLDS DVD-RW DH16AERSH
In my case my Program Files and Program Files (x86) had no short names (checked it with dir /x).

To fix it I followed these steps:

  1. Run Windows in Safe mode with Command Prompt
  2. cd to C:\
  3. fsutil file setshortname "Program Files" PROGRA~1


Now it worked fine for me.
 

My Computer My Computer

Computer type
PC/Desktop
OS
Windows 7 Home Premium
Back
Top