Skip to main content

All Questions

0 votes
1 answer
44 views

Run script elevated as different user on remote machine

I have a Windows Scheduled Task that runs a Powershell script file A.ps1. This task runs mostly locally and does NOT need elevation/administrator access. However, a few steps need to run on a remote ...
Joel Coehoorn's user avatar
0 votes
0 answers
626 views

get-wmiobject access denied

i created a user and added it to administrators group. when i open powershell normally ( not as administrator ) and type get-wmiobject, i get access denied. what i done ran wmi control, added user ...
Daniel Kusnir's user avatar
0 votes
0 answers
65 views

Permissions on specific subfolders with Set-Acl

I have to create a set of folders based on an address list and then configure the permissions in active directory. Creating the folders and subfolders works for me, I adapted a few lines I found ...
Marin's user avatar
  • 1
4 votes
1 answer
38k views

Set folder permissions through CMD - MS Windows

I need to write a small Windows software (using VisualBasic PL) to create automatically folder trees, following a fixed structure; in particular, I have to create the main folder with several ...
Nicola's user avatar
  • 43
1 vote
1 answer
556 views

What's wrong with my directory file permissions and how to copy directory's file permissions to another directory?

I'm dealing with two directories, the one being the parent of the other (but that's irrelevant for the question). I want to read the files in one directory, using an application, but that seems not to ...
Dominique's user avatar
  • 2,281
-7 votes
1 answer
2k views

How to grant Total Access and Special Permission to my user in C: and D: drive on Windows 11?

I'm having a tough time trying to set Total Control and Special Permission to my User using the terminal on Windows 11. How can i grant total control for my user? And by total control i really mean ...
Jorge Trivilin's user avatar
2 votes
2 answers
16k views

Getting 'Access Denied' when running Get-ChildItem even as an administrator

I'm trying to delete files like desktop.ini, Thumbs.db, etc, using the following powershell command to recurse over a root directory on an external hard drive: Get-ChildItem -Path . -Include Thumbs.db,...
Ahmad's user avatar
  • 797
1 vote
1 answer
12k views

Why user accounts do "not have permission to run this task"?

I am creating a Scheduled task configured via PowerShell using the XML: $LogonTask_xml = @" <?xml version="1.0" encoding="UTF-16"?> <Task version="1.3" ...
Teknowledgist's user avatar
0 votes
0 answers
1k views

Reset Drive Permissions on Windows Server 2019 Core VM

Problem Another administrator was attempting to give a user access to a subfolder on then secondary drive (D:) of a Windows Server 2019 Core VM. Instead he somehow locked everyone out, including ...
Alcolawl's user avatar
  • 101
7 votes
1 answer
62k views

How to change file permissions on Windows via powershell / cmd?

I want to achieve the permissions aspect equivalent on Windows side via PowerShell or cmd, however I couldn't find a solution in order to correctly do this. If someone could help me to achieve this in ...
pwnag3 pwnag3's user avatar
4 votes
1 answer
18k views

Access To the Path is Denied (PowerShell Rename-Item Script)

I got annoyed with the F1 key bringing up Windows help all the time because I think it's pretty useless. So the solution is to rename the "HelpPane.exe" file in the "C:\Windows" ...
EllipticalInitial's user avatar
1 vote
1 answer
943 views

Script Directory Permissions Powershell

Is there a way to clone a directory's permissions to a file, and then run that file on another server to recreate those permissions on the recreated structure. I've got a script to create the ...
Nick's user avatar
  • 141
7 votes
3 answers
10k views

npm install private Gitlab Repo Permission Denied (publickey) in Powershell

I try to install a private gitlab repository via npm to another node project. The command is npm install --save gitlab:my-project#master This fails with npm ERR! Permission denied (publickey). npm ...
Philipp's user avatar
  • 171
0 votes
1 answer
4k views

What is "Local System account" in Windows?

And how do I run something as this account ? I am in the administrators group for a server in a Active Directory organization. It is mainly a file server and in the interest of security, all non ...
Jason's user avatar
  • 1
2 votes
1 answer
928 views

Delete a folder with no owner in Windows 8.1

I'm using Windows 8.1 and I'm trying to delete a folder on a secondary hard drive. I tried a things that I had read here, but nothing seems to be working. Here's what I've done: Tried rd command in ...
Robbiegod's user avatar
  • 121

15 30 50 per page