All Questions
23
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 - ...
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 ...
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++...
0
votes
1
answer
785
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 ...
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 ...
-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 ...
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 (...
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 ...
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
...
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 ...
-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 ...
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 ...
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:\&...
24
votes
5
answers
128k
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 ...
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 ...