H
H
haviras2020-05-31 22:57:47
PowerShell
haviras, 2020-05-31 22:57:47

What is the change ownership module for powershell DSC?

Prompt the change ownership module for powershell DSC

For simple distribution of rights, there is get-carbon.org
Quite good

But it seems impossible to change the owner of a file / directory through it. Well, or I didn’t find it.

In general, natively there is PowerShellAccessControl

But it somehow works as clumsily as it can be

. The final question sounds the same as in DSC to describe to the file that its owner is not system, but for example vasya

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
MaxKozlov, 2020-06-01
@MaxKozlov

but just Get-Acl/Set-Acl is not enough?
the simplest search returns
https://www.powershellgallery.com/packages/AccessC...
https://github.com/dsccommunity/cNtfsAccessControl

A
Alexey Dmitriev, 2020-06-01
@SignFinder

1. This utility works fine in Powershell https://helgeklein.com/setacl/
2. There is a NTFSSecurity library https://github.com/raandree/NTFSSecurity

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question