Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


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

08 Jul 2013   #1
Win7Wilson13

Windows 7 Enterprise 64-bit
 
 
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 System SpecsSystem Spec
.
08 Jul 2013   #2
Ztruker

Windows 10 Pro X64
 
 

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 System SpecsSystem Spec
18 May 2015   #3
pavulon

Windows 7 Home Premium
 
 

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 System SpecsSystem Spec
.

Reply

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




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
"access denied" when using "assoc" and "ftype" from cmdline?
I tried to associate the file extension .txt to a new editor program with the well known cmdline programs ASSOC and FTYPE. No, assigning them through WinExplorer menu does not work. But this is another problem which should not discussed here. When I type now one of the following...
General Discussion
Error assigning ownership "Unable to set new owner on.. Access denied"
Error assigning ownership "Unable to set new owner on.. Access denied" Hi, I've a question about assigning ownership. I'm logged in as user "Steph". As Steph, I made a new folder "Documents_Steph". Because she made the folder, she's owner of this folder. Then I tried as Steph to...
General Discussion
windows 7, GNS3 0.8.2; Error "can't create directory; access denied"
I get error "can't create directory C:\Program Files\GNS3\PROJECTS\test123" : access denied. this is when i click on "new blank project" so GNS3 tries to create new folder "test123" in the path mentioned in 1st line here. how to get it resolved so that GNS3 can create directory when I click on new...
Software
Import Pictures to NAS "Access Denied" Error Though User Has Access
Hi, All. I've got an interesting situation that I'm hoping can be resolved. I built a server using FreeNAS 8.2 to store family pictures, videos, music, and Windows backups. In my home we have Windows 7 Home Premium 64bit and Windows 7 Professional 64bit. The server is setup with 3 Windows (CIFS)...
Network & Sharing
Error assigning ownership "Unable to set new owner on.. Access denied"
Hi, I've a question about assigning ownership. I'm logged in as user "Steph". As Steph, I made a new folder "Documents_Steph". Because she made the folder, she's owner of this folder. Then I tried as Steph to assign ownership to a different user "User01". But then I got the message...
Network & Sharing


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 17:30.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App