Can't Rename file if administrator permission is required
Forum rules
You might want to read this if you're looking for priority service
Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.
How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
You might want to read this if you're looking for priority service
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
-
Adequat
- Posts: 97
- Joined: 20 Jul 2007 12:03
Can't Rename file if administrator permission is required
It is not possible to rename a file if administrator permission is required.
For instance, when trying to rename this file:
C:\Program Files (x86)\Test\MyFile.txt
I get this error: There is not this problem when using Windows Explorer.
Funnily enough, renaming a folder is possible with XYPlorer (eg. C:\Program Files (x86)\Test\)
This is not something new to 12.70. But I think to remember it was possible with some old XYPlorer version.
For instance, when trying to rename this file:
C:\Program Files (x86)\Test\MyFile.txt
I get this error: There is not this problem when using Windows Explorer.
Funnily enough, renaming a folder is possible with XYPlorer (eg. C:\Program Files (x86)\Test\)
This is not something new to 12.70. But I think to remember it was possible with some old XYPlorer version.
To see the attached files, you need to log into the forum.
-
armsys
- Posts: 557
- Joined: 10 Mar 2012 12:40
- Location: Hong Kong
Re: Can't Rename file if administrator permission is require
Adequat,
I have no issue narrated by you with XY 12.70.0006.
XY can rename any files in C:\Program Files (x86) and undo it without a glitch.
Have you set XY with ADMIN privilege?
I have no issue narrated by you with XY 12.70.0006.
XY can rename any files in C:\Program Files (x86) and undo it without a glitch.
Have you set XY with ADMIN privilege?
-
Adequat
- Posts: 97
- Joined: 20 Jul 2007 12:03
Re: Can't Rename file if administrator permission is require
Of course, if I run XY with administrator privileges, there is no problem.
But Windows Explorer does not run with administrator privileges, yet is able to rename files after the common Windows security confirmation (Message Box). I expect the same from XY.
It is not good (at least for me), to run XY with administrator privileges, as this prevents dragging files from XY to drop them on applications that don't run with administrator privileges (most apps)
But Windows Explorer does not run with administrator privileges, yet is able to rename files after the common Windows security confirmation (Message Box). I expect the same from XY.
It is not good (at least for me), to run XY with administrator privileges, as this prevents dragging files from XY to drop them on applications that don't run with administrator privileges (most apps)
-
admin
- Site Admin
- Posts: 67315
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Can't Rename file if administrator permission is require
This is a bug. Fix comes.
FAQ | XY News RSS | XY X
-
grindax
Re: Can't Rename file if administrator permission is require
.
Last edited by grindax on 23 Jan 2016 15:32, edited 1 time in total.
-
admin
- Site Admin
- Posts: 67315
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Can't Rename file if administrator permission is require
That fails to work mysteriously.
FAQ | XY News RSS | XY X
-
Enternal
- Posts: 1175
- Joined: 10 Jan 2012 18:26
Re: Can't Rename file if administrator permission is require
Just out of curiosity, how did you fixed the renaming UAC issue?
I probably won't be much of a help but when I was fixing issues with this AutoIt program FolderMenu (posted here in the Software sub-forum), one issue with the program is all UAC related. It seems that if I attempt to do anything in a restricted area of the system directly (like the Program Files directory), I will silently get rejected. However if I instead tell the shell to do whatever I want in my place, the UAC dialog pops up.
Of course I'm not much of a programmer but hopefully there's something there that can help.
I probably won't be much of a help but when I was fixing issues with this AutoIt program FolderMenu (posted here in the Software sub-forum), one issue with the program is all UAC related. It seems that if I attempt to do anything in a restricted area of the system directly (like the Program Files directory), I will silently get rejected. However if I instead tell the shell to do whatever I want in my place, the UAC dialog pops up.
Of course I'm not much of a programmer but hopefully there's something there that can help.
-
armsys
- Posts: 557
- Joined: 10 Mar 2012 12:40
- Location: Hong Kong
Re: Can't Rename file if administrator permission is require
Hi Enternal,Enternal wrote:Just out of curiosity, how did you fixed the renaming UAC issue?
Have you tried claiming ownership of the whole c:\Program Files (x86)?
-
admin
- Site Admin
- Posts: 67315
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Can't Rename file if administrator permission is require
Yes, generally passing the job to the shell is the way. But for unknown reasons SHCreateDirectoryEx (which is shell) does not pop the UAC prompt.Enternal wrote:Just out of curiosity, how did you fixed the renaming UAC issue?
I probably won't be much of a help but when I was fixing issues with this AutoIt program FolderMenu (posted here in the Software sub-forum), one issue with the program is all UAC related. It seems that if I attempt to do anything in a restricted area of the system directly (like the Program Files directory), I will silently get rejected. However if I instead tell the shell to do whatever I want in my place, the UAC dialog pops up.
Of course I'm not much of a programmer but hopefully there's something there that can help.
(This thread's particular problem had a more complex reason too long to explain.)
FAQ | XY News RSS | XY X
-
armsys
- Posts: 557
- Joined: 10 Mar 2012 12:40
- Location: Hong Kong
Re: Can't Rename file if administrator permission is require
Perhaps the C:\Program Files (x86) is already owned by "DON"; therefore, SHCreateDirectoryEx remains silent.admin wrote:Yes, generally passing the job to the shell is the way. But for unknown reasons SHCreateDirectoryEx (which is shell) does not pop the UAC prompt.
-
admin
- Site Admin
- Posts: 67315
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Can't Rename file if administrator permission is require
It's owned by "TrustedInstaller".
FAQ | XY News RSS | XY X
-
armsys
- Posts: 557
- Joined: 10 Mar 2012 12:40
- Location: Hong Kong
Re: Can't Rename file if administrator permission is require
Set HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\\ConsentPromptBehaviorAdmin to 0
-
admin
- Site Admin
- Posts: 67315
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Can't Rename file if administrator permission is require
Thanks, but it is no solution for me to ask my users to edit a registry key. 
FAQ | XY News RSS | XY X
-
Filehero
- Posts: 2734
- Joined: 27 Feb 2012 18:50
- Location: Windows 11@100%
Re: Can't Rename file if administrator permission is require
That mystery was already discussed in here, right?admin wrote:That fails to work mysteriously.
Cheers,
Filehero
-
admin
- Site Admin
- Posts: 67315
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Can't Rename file if administrator permission is require
Yes, but without success, right?
FAQ | XY News RSS | XY X
XYplorer Beta Club