-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c3fcd28
commit 80c7c78
Showing
2 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80c7c78
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you give an example of using CntfsPermissions with Invoke-dscresource?
PS C:> invoke-dscresource -ModuleName cNtfsAccessControl -Name cNtfsPermissionEntry -Method get -Property @{Ensure = 'Present' ;Principal = "server\user"; Path= 'D:\InetPub' ; AccessControlInformation = @(cNtfsAccessControlInformation { AccessControlType = 'Allow';FileSystemRights = 'Modify';Inheritance = 'SubfoldersAndFilesOnly';NoPropagateInherit = $false})}
I keep getting an error message:
cNtfsAccessControlInformation : Le terme «cNtfsAccessControlInformation» n'est pas reconnu comme nom d'applet de commande, fonction, fichier de script ou programme exécutable. Vérifiez l'orthographe du nom, ou si un chemin d'accès existe, vérifiez que le chemin d'accès est correct et réessayez.
Au caractère Ligne:1 : 207
invoke-dscresource : Échec de la sérialisation des propriétés dans CimInstance.
Au caractère Ligne:1 : 1
PS C:> $PSVersionTable
Name Value
PSVersion 5.1.14409.1012
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14409.1012
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1