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: Run As Administrator - Lost Rights?

21 Dec 2016   #31
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

Great to hear, ARD.

I realised that I made a mistake with the Icacls grant commands in post 27. Instead of ‘(OI)(CI)’, which means “apply this permission to sub files and folders”, I did ‘(IO)(CI)’, which means “apply this permission to subfolders only, but not the object itself”. I’m surprised it still worked. This actually turns out to be a good thing because we now know that Photoshop had been crashing over access to some folder rather than some file, which honestly is not what I would have anticipated, but there you go.

It seems we must be hunting a folder down.

One method for determining which folder was causing Photoshop to crash would be to play the game of elimination on the folders’ permissions.

Here’s how it’s going to work. For each folder, there will be an Icacls command. Each Icacls command will either be removing permissions on a folder or it will be applying permissions to it. After running the pool of Icacls commands, launch Photoshop and take note of whether it fails. Depending on the case, Icacls commands will be removed from the pool accordingly.

The following are examples of what I mean by a Icacls command that applies or removes permissions, in respective order.
Code:
icacls "filename" /grant "%username%”:(IO)(CI)F
icacls "filename" /remove "%username%"
The part in red is the part you will switch out for for each Icacls command.

Use the following as a template. Such as the most efficient way to correctly guess a chosen random number between 1 and 100, I suggest going halves each time. I’ve started for you, the first half are set to apply permissions (for simplicity, lets’ call them ‘on’) and the rest are set to remove the permissions (call them ‘off’).
Code:
icacls "C:\Program Files\Adobe" /grant "%username%":(IO)(CI)F
icacls "C:\Program Files\Common Files\Adobe" /grant "%username%":(IO)(CI)F
icacls "C:\Program Files\Common Files\Macrovision Shared" /grant "%username%":(IO)(CI)F
icacls "C:\Program Files (x86)\Adobe" /grant "%username%":(IO)(CI)F
icacls "C:\Program Files (x86)\Common Files\Adobe" /grant "%username%":(IO)(CI)F
icacls "C:\Program Files (x86)\Common Files\Macrovision Shared" /grant "%username%":(IO)(CI)F
icacls "C:\ProgramData\Adobe" /remove "%username%"
icacls "C:\ProgramData\FLEXnet" /remove "%username%"
icacls "C:\Users\%username%\AppData\Roaming\Adobe" /remove "%username%"
icacls "C:\Users\%username%\AppData\Local\Adobe" /remove "%username%"
icacls "C:\Users\%username%\AppData\LocalLow\Adobe" /remove "%username%"
icacls "C:\Users\%username%\AppData\Local\VirtualStore\Program Files\Common Files\Adobe /remove "%username%"

The Elimination Method
  1. Run the pool of Icacls commands.
  2. Try Photoshop and record observation, i.e., does it crash?
  3. Do Case 1 or 2 depending on whether or not the application crashed in step 2.
    Case 1 — it crashes:
    If crash, eliminate the Icacls commands that are on in the pool (no need to remove permissions from these folders before doing this). For the remaining off commands, let half be on. This will be the new pool of Icacls commands to work with.

    E.g., the new pool (as by the beginning template) will be,
    Code:
    icacls "C:\ProgramData\Adobe" /grant "%username%":(IO)(CI)F
    icacls "C:\ProgramData\FLEXnet" /grant "%username%":(IO)(CI)F
    icacls "C:\Users\%username%\AppData\Roaming\Adobe" /grant "%username%":(IO)(CI)F
    icacls "C:\Users\%username%\AppData\Local\Adobe" /remove "%username%"
    icacls "C:\Users\%username%\AppData\LocalLow\Adobe" /remove "%username%"
    icacls "C:\Users\%username%\AppData\Local\VirtualStore\Program Files\Common Files\Adobe /remove "%username%"
    Case 2 — no crash:
    If Photoshop starts successfully, eliminate the Icacls commands that are off in the pool. For the remaining commands, make half be off.

    E.g., the new pool (as by the beginning template) will be,
    Code:
    icacls "C:\Program Files\Adobe" /remove "%username%"
    icacls "C:\Program Files\Common Files\Adobe" /remove "%username%"
    icacls "C:\Program Files\Common Files\Macrovision Shared" /remove "%username%"
    icacls "C:\Program Files (x86)\Adobe" /grant "%username%":(IO)(CI)F
    icacls "C:\Program Files (x86)\Common Files\Adobe" /grant "%username%":(IO)(CI)F
    icacls "C:\Program Files (x86)\Common Files\Macrovision Shared" /grant "%username%":(IO)(CI)F
  4. Repeat this until you are able to single out a folder, such that removing or applying permissions to this one folder determines whether or not Photoshop crashes. When a folder is singled out, restart the process with a new pool of Icacls commands consisting of this folder’s subfolders and further hone in on the problem item.

Report back where this process leads you.

You may reapply the changes from post 27 at any time to get Photoshop working again, but please do not at any point run the changes mentioned in post 29.


My System SpecsSystem Spec
.
21 Dec 2016   #32
ARD

XP Pro & Windows 7 Pro
 
 

I'll get on it this evening and let you know the outcome
My System SpecsSystem Spec
21 Dec 2016   #33
ARD

XP Pro & Windows 7 Pro
 
 

Slowly working my way through, will take me a while but I'll finish it
My System SpecsSystem Spec
.

10 Jan 2017   #34
ARD

XP Pro & Windows 7 Pro
 
 

I've tried everything, to the best of my ability, and cannot get it to not work now, or not run without Admin Rights. It runs everytime straight away. I'll re do it again to see if I missed something because it would be good to know so others can benefit if it happens to them. I'll report back again soon
My System SpecsSystem Spec
Reply

 Run As Administrator - Lost Rights?




Thread Tools




Similar help and support threads
Thread Forum
Re-allow Administrator Rights
I have 2 Administrator accounts on my PC. Some time back, I put controls on my wife account while stay an Admin. The control I put on were to NOT allow her (her son actually) to install any software, ever. I want to re-allow those right to her but I can not find what I did to block her. I have...
General Discussion
Administrator rights
I think I have problem with my admin. account , a few times I couldnt delete folder or a file and firefox 16.0.1 sometimes wont save the application. It says that application cant be saved, because its not allowed to change content of the folder, change the properties of the folder or change path...
General Discussion
I'm an administrator but have no rights?
Ok this question was probably asked 1000 times before, but I can't find a solution anywhere so I'll go ahead and be no. 1001. How can I make it so that Windows 7 recognizes me as an admin and never asks me to run programs as administrator, instead running 'em as admin automatically? I have...
System Security
Administrator rights
Hello, I have recently installed a second hdd in my computer to be used as a back-up drive. I thought I would change the name of the drive to 'Back-Up' however when I went to do this once I clicked apply I was told I need administrator rights, that I thought I should have becauaw I am the only...
General Discussion
No administrator rights
Ok , we have done a dumb thing.. turned off administrator rights on users and also on the administrator ie. no administrator rights at all. Cannot turn them back on. Do I have any other option but to reload windows 7?
General Discussion
IE 8 Administrator Rights
For a week or so I've been getting blocked adding new favorites in IE 8 specifying that I need to be a member of the Administrator group in order to perform this task (my 2003 R2 domain id is a member of the Administrators group on the local box in Win 7 and a Domain Administrator on the Domain). ...
System Security


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 06:59.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App