We help IT Professionals succeed at work.

Application will not run: Windows cannot access the specified device, path, or file

itplatoon
itplatoon used Ask the Experts™
on
I recently upgraded a computer to Windows 7. After adding the Windows 7 computer to a SBS 2003 domain and migrating the profile using the connectcomputer wizard, I have an application that fails to run, giving me the following error:

Windows cannot access the specified device, path or file. You may not have the approriate permissions to access the item.

Background info:
I recenlty upgraded this pc from XP to WIN7. I left the file system in tact, the XP Windows folder was renamed to Windows.old by the installation routine. Before adding the pc to domain, I installed a custom application, which ran just fine. Now after adding the pc to SBS2003  domain, the application will run if I logon using the local account.  The application will not run if I logon with a domain account. Both the local account and the domain account are in the local administrators group of this WIN7 pc.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
Login locally ...run this command in elevated mode and then reboot the computer..login to domain and then check.


secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose


Copy paste the above command.


Ded9

Author

Commented:
ok. What does this secedit command do?
How do I make sure it runs in elevated mode?
Most Valuable Expert 2011
Top Expert 2011

Commented:
Honestly, I wouldnt start off with resetting the local security database.....

Lets see if an Administrative account works, or a NEW user profile on the system works for the app....

Author

Commented:
I enabled the administrator account; If I logon as the pc's local administrator, the application runs.
If Iogon as a local user account that is a member of the pc's local administrators group, the application runs. If I logon with the domain account, which is a member of the pc's local admistrators group, the application does NOT run. This is when I get the error:  "Windows cannot access the specified device, path or file. You may not have the approriate permissions to access the item"

Commented:
it resets security settings in your computer...elevated mode means u right click on command prompt ...and click on run it as admin.

Try it.


Ded9
Most Valuable Expert 2011
Top Expert 2011

Commented:
This is my standard answer to any permissions problems on the PC.... It will help you find the reg key/file/folder that needs to be opened up. Without resetting everything....

Process Monitor
http://www.microsoft.com/technet/sysinternals/utilities/processmonitor.mspx

Save this to the root of C as an Admin, and login the problem user. Do a RunAs with your Admin Credentials to launch it, and then set the the filter at the top to Include "Result" is "Access Denied" then "Include", and then try and recreate the errors by launching the app. Then go look at the logging, and it will tell you where the permissions are restrictive. Once you open those up, keep retrying until you get the desired results....

Keep track of your changes, as they can be scripted to deploy to the other systems......
Top Expert 2016
Commented:
you may have to reinstall this application (try a repair install if it used a msi)

Commented:
Most restrictive rights are valid. Therefore if you have this domain user account in the local adminstrators group, and the domain users group is in the local user group of the PC, the latter  are the rights you get.

Remember that if you logon with a damina account, youre computer also log's in on the domain, and can have certain ACL implied. That also can be a problem here.

So basically it's a comman permissions error, and you do not fix this with resetting local databases etc. Just good old logic thinking will do the trick ;-)

KG

Author

Commented:
While logged in with the domain account, I un-installed and re-installed the application. This issue is now resolved. Thanks for the advice.