Skip to main content

All Questions

0 votes
0 answers
1k views

How to set 'Authenticated Users' permissions on a given file via scripting on Win 7 +

I have this script file which is currently doing setting the 'Authenticated Users' permissions for an executable to 'ReadAndExecute' - it works fine on Windows 10, but it needs to work on Windows 7 - ...
Charlotte Skardon's user avatar
0 votes
1 answer
2k views

Files can still be modified even after setting ''Read-only'' permission by ICACLS. Why is it not working?

I am the administrator in my PC and there are some other users on it. I set a folder (Gabi) as "Read only" for a specific user (Alice), using ICACLS via the Command Prompt (I am using ...
kaly's user avatar
  • 3
1 vote
2 answers
1k views

Creating a C++ executable locks the file for some time

I have an error which started showing up only a few days ago. I'm running Windows 7 Professional x64 bit. I have a .cpp file, and I use the command prompt to run the following command: g++ -std=c++...
Cerberus's user avatar
  • 233
0 votes
1 answer
784 views

Syncing time on two networked machines

I'm trying to sync the clocks on a Windows 7 (A) and a Windows 8.1 (B) computer on their own, private network by using the command (cmd on computerA): net time \\computerB /set /y As I expect, this ...
Ann Yitzhak's user avatar
0 votes
1 answer
2k views

Trouble deleting registry using CMD

I am trying to delete the following registry key via CMD but am getting "ACCESS DENIED" HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Pastel The above registry cannot be deleted manually as it ...
LEO's user avatar
  • 33
-2 votes
1 answer
52 views

Windows 7 professional.32 bit

I am trying to change directory on my command line in my C drive. I am trying to access python25 folder at C:/Python25/ but every time I write cd> C:/Python25/ and press enter, cmd returns Access is ...
Ahsan Shahid's user avatar
9 votes
6 answers
28k views

Restoring 'TrustedInstaller' as owner for executable in Windows folder

After changing the ownership of executables in the Windows directory (explorer.exe, regedit.exe, etc.), I can't seem to change it back to TrustedInstaller using icacls.exe. Using the GUI method (...
BarCo's user avatar
  • 121
5 votes
2 answers
87k views

giving permission to program to run with out confirmation in start command windows

I am using this start /b C:\wamp\wampmanager.exe command to start a program in my windows( Windows 7 Ultimate - 64 bit). But then the program want a permission to run Do you want to allow the ...
Saif's user avatar
  • 225
3 votes
1 answer
2k views

How to call a program to be run with admin privileges but under the same user (Windows Command Prompt)

I need to invoke a program with admin privileges from command prompt. it should prompt to the user an alert such as: I found many answers like: runas.exe /user:administrator %~dp0\MY_PROGRAM.BAT ...
elady's user avatar
  • 323
0 votes
1 answer
4k views

Administrator user receive Access Denied and Need Permission [duplicate]

I want to move a file that is named resmon.exe from C:\Windows\System32 to D:\. While I logged with an Administrator user, but I can't move it and I receive something like Access-Denied! As you see ...
TheGoodUser's user avatar
  • 1,195
-1 votes
1 answer
3k views

regedit command results in "access denied" in cmd

Edit: The issue at this point is that a regular user is granted access to the registry and there is no prompt for administrative credentials whatsoever. Prior to changing permissions (See Scott's ...
Shrout1's user avatar
  • 1,104
2 votes
1 answer
4k views

Change registry permission of 3 keys does not work with regini

I'm preparing a batch script that should help me to remove 3 keys from the registry. Unfortunately nobody has permission to edit the keys, except for TrustedInstaller. To execute my reg file that ...
Martin Braun's user avatar
2 votes
2 answers
9k views

Administrator getting "access denied" - unable to create directory

As far as I can tell, I am in the Administrators group on Windows 7 Service Pack 1. With CMD prompt pinned to my Start menu, I rightmouse and select Run as Admin and get this error on xcopy: C:\&...
John Adams's user avatar
24 votes
5 answers
127k views

How to display/change the owner of a file on Windows 7

Is there a way to display the owner of folders and files from the command line in Windoews 7 command prompt? Can you change the owner of a folder or file to some "arbitrary" user which is not your ...
Kevin Fegan's user avatar
  • 4,887
2 votes
2 answers
7k views

Bypassing User Account Control [duplicate]

I'm trying to start an exe from the command line shell> wampmanager When I do that, a User Account Control popup pops up and prompts me for permission. I press "yes" to run and it runs. But is it ...
George Newton's user avatar

15 30 50 per page