Comments (3)
Hello @adhodgson1,
Can you please try to reproduce this problem using the latest version of the module?
cNtfsAccessControl 1.3.1
from cntfsaccesscontrol.
Sorry I was using 1.3.0 of the resource but our CI process seems to reversion the module. Now using 1.3.1 and still getting the error. Ran a verbose output and got the following which is strange since the folder in the prior step was created:
VERBOSE: [SERVERNAME]: LCM: [ Start Resource ] [[cNtfsPermissionEntry]SetServerNTFSPermissions]
VERBOSE: [SERVERNAME]: LCM: [ Start Test ] [[cNtfsPermissionEntry]SetServerNTFSPermissions]
VERBOSE: [SERVERNAME]: [[cNtfsPermissionEntry]SetServerNTFSPermissions] Ensure
: 'Present'
VERBOSE: [SERVERNAME]: [[cNtfsPermissionEntry]SetServerNTFSPermissions] Path
: 'E:\Server'
VERBOSE: [SERVERNAME]: [[cNtfsPermissionEntry]SetServerNTFSPermissions] Principal
: 'DOMAIN\svc_ServiceAccount'
VERBOSE: [SERVERNAME]: [[cNtfsPermissionEntry]SetServerNTFSPermissions]
AccessControlInformation : 'cNtfsAccessControlInformation'
VERBOSE: [SERVERNAME]: [[cNtfsPermissionEntry]SetServerNTFSPermissions] Verbose
: 'True'
Cannot find drive. A drive with the name 'E' does not exist.
+ CategoryInfo : ObjectNotFound: (E:) [], CimException
+ FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.GetAclCommand
+ PSComputerName : localhost
VERBOSE: [SERVERNAME]: [[cNtfsPermissionEntry]SetServerNTFSPermissions] Resolving
identity reference 'DOMAIN\svc_ServiceAccount'.
The property 'Access' cannot be found on this object. Verify that the property exists.
+ CategoryInfo : NotSpecified: (:) [], CimException
+ FullyQualifiedErrorId : PropertyNotFoundStrict
+ PSComputerName : localhost
VERBOSE: [SERVERNAME]: [[cNtfsPermissionEntry]SetServerNTFSPermissions] Current
permission entry count : 0
VERBOSE: [SERVERNAME]: [[cNtfsPermissionEntry]SetServerNTFSPermissions] Desired
permission entry count : 1
VERBOSE: [SERVERNAME]: [[cNtfsPermissionEntry]SetServerNTFSPermissions] The
number of current permission entries is different from the number of desired permission entries.
VERBOSE: [SERVERNAME]: [[cNtfsPermissionEntry]SetServerNTFSPermissions]
Permission entry was not found (1 of 1) :
VERBOSE: [SERVERNAME]: [[cNtfsPermissionEntry]SetServerNTFSPermissions] >
IdentityReference : 'DOMAIN\svc_ServiceAccount'
VERBOSE: [SERVERNAME]: [[cNtfsPermissionEntry]SetServerNTFSPermissions] >
AccessControlType : 'Allow'
VERBOSE: [SERVERNAME]: [[cNtfsPermissionEntry]SetServerNTFSPermissions] >
FileSystemRights : 'FullControl'
VERBOSE: [SERVERNAME]: [[cNtfsPermissionEntry]SetServerNTFSPermissions] >
InheritanceFlags : 'None'
VERBOSE: [SERVERNAME]: [[cNtfsPermissionEntry]SetServerNTFSPermissions] >
PropagationFlags : 'None'
VERBOSE: [SERVERNAME]: [[cNtfsPermissionEntry]SetServerNTFSPermissions] The
target resource is not in the desired state.
VERBOSE: [SERVERNAME]: LCM: [ End Test ] [[cNtfsPermissionEntry]SetServerNTFSPermissions] in
0.9220 seconds.
The PowerShell DSC resource '[cNtfsPermissionEntry]SetServerNTFSPermissions' with SourceInfo
'::522::5::cNtfsPermissionEntry' threw one or more non-terminating errors while running the Test-TargetResource
functionality. These errors are logged to the ETW channel called Microsoft-Windows-DSC/Operational. Refer to this
channel for more details.
+ CategoryInfo : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : NonTerminatingErrorFromProvider
+ PSComputerName : localhost
from cntfsaccesscontrol.
It's the same problem as in #3.
Please try adding a dependency on the following custom script to see if it fixes the problem:
Script RefreshFileSystem
{
GetScript = {$false}
TestScript = {$false}
SetScript = {Get-PSDrive -PSProvider FileSystem}
}
from cntfsaccesscontrol.
Related Issues (16)
- Is it possible to clear other/all permissions? HOT 4
- Error about propagation flags HOT 2
- Support for Audit rules (SACLs) HOT 1
- Ver 1.4.1 cNtfsPermissionEntry is looking for cNtfsAccessControl,1.4.0 HOT 1
- Invoke-DSCResource HOT 2
- cNtfsAccessControl: Converting to new CI pipeline
- Purging unmanaged ACL's HOT 1
- NoPropagateInherit is not boolean but can be 0, 1 or 2 HOT 1
- ReadAndExecute cNtfsPermission not working on WinSrv 2019
- can't find new drive HOT 12
- cNtfsAccessControl does not allow removal of unknown principals HOT 1
- problem when NoPropagateInherit = $true HOT 2
- Set file/folder ownership? HOT 2
- Schema mof update required HOT 9
- Can't set perms for APPLICATION PACKAGE AUTHORITY\ALL APPLICATION PACKAGES HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cntfsaccesscontrol.