Comments (6)
Scesrv.log may not contain information, it is a generic message that is provided anytime the set fails. Is resource in the desired state?
from securitypolicydsc.
I am experiencing the same problem. The resource is in the desired state it's just that DSC is reporting failure. Here is the relevant snippet of the DSC .details.json file:
{"time": "2017-07-22T12:45:40.396+10:00", "type": "verbose", "message": "[azurevm]: LCM: [ Start Resource ] [[UserRightsAssignment]AssignLogOnAsService] "},
{"time": "2017-07-22T12:45:40.396+10:00", "type": "verbose", "message": "[azurevm]: LCM: [ Start Test ] [[UserRightsAssignment]AssignLogOnAsService] "},
{"time": "2017-07-22T12:45:40.808+10:00", "type": "verbose", "message": "[azurevm]: [[UserRightsAssignment]AssignLogOnAsService] Testing contoso\\TestUser1 is present on policy Log_on_as_a_service"},
{"time": "2017-07-22T12:45:40.809+10:00", "type": "verbose", "message": "[azurevm]: [[UserRightsAssignment]AssignLogOnAsService] Perform operation 'Query CimInstances' with following parameters, ''queryExpression' = SELECT * FROM Win32_UserAccount WHERE LocalAccount='True','queryDialect' = WQL,'namespaceName' = root\\cimv2'."},
{"time": "2017-07-22T12:45:40.978+10:00", "type": "verbose", "message": "[azurevm]: [[UserRightsAssignment]AssignLogOnAsService] Operation 'Query CimInstances' complete."},
{"time": "2017-07-22T12:45:40.979+10:00", "type": "verbose", "message": "[azurevm]: [[UserRightsAssignment]AssignLogOnAsService] TestUser1 do not have Privilege (Log_on_as_a_service)"},
{"time": "2017-07-22T12:45:40.979+10:00", "type": "verbose", "message": "[azurevm]: LCM: [ End Test ] [[UserRightsAssignment]AssignLogOnAsService] in 0.5840 seconds."},
{"time": "2017-07-22T12:45:40.979+10:00", "type": "verbose", "message": "[azurevm]: LCM: [ Start Set ] [[UserRightsAssignment]AssignLogOnAsService] "},
{"time": "2017-07-22T12:45:41.382+10:00", "type": "verbose", "message": "[azurevm]: [[UserRightsAssignment]AssignLogOnAsService] Policy: Log_on_as_a_service. Identity: NT AUTHORITY\\NETWORK SERVICE contoso\\TestUser1 SQLServer2005SQLBrowserUser$makedisk0823AM0 NT SERVICE\\ALL SERVICES NT SERVICE\\SQLTELEMETRY NT SERVICE\\ReportServer NT SERVICE\\MSSQLFDLauncher NT SERVICE\\SQLSERVERAGENT NT SERVICE\\MSSQLSERVER IIS APPPOOL\\.NET v4.5 IIS APPPOOL\\.NET v4.5 Classic"},
{"time": "2017-07-22T12:45:41.382+10:00", "type": "verbose", "message": "[azurevm]: [[UserRightsAssignment]AssignLogOnAsService] Granting Log_on_as_a_service rights to contoso\\TestUser1,NT AUTHORITY\\NETWORK SERVICE,SQLServer2005SQLBrowserUser$makedisk0823AM0,NT SERVICE\\ALL SERVICES,NT SERVICE\\SQLTELEMETRY,NT SERVICE\\ReportServer,NT SERVICE\\MSSQLFDLauncher,NT SERVICE\\SQLSERVERAGENT,NT SERVICE\\MSSQLSERVER,IIS APPPOOL\\.NET v4.5,IIS APPPOOL\\.NET v4.5 Classic"},
{"time": "2017-07-22T12:45:41.414+10:00", "type": "verbose", "message": "[azurevm]: [[UserRightsAssignment]AssignLogOnAsService] Attempting to Set (contoso\\TestUser1,NT AUTHORITY\\NETWORK SERVICE,SQLServer2005SQLBrowserUser$makedisk0823AM0,NT SERVICE\\ALL SERVICES,NT SERVICE\\SQLTELEMETRY,NT SERVICE\\ReportServer,NT SERVICE\\MSSQLFDLauncher,NT SERVICE\\SQLSERVERAGENT,NT SERVICE\\MSSQLSERVER,IIS APPPOOL\\.NET v4.5,IIS APPPOOL\\.NET v4.5 Classic) for Policy Log_on_as_a_service)"},
{"time": "2017-07-22T12:45:42.854+10:00", "type": "verbose", "message": "[azurevm]: [[UserRightsAssignment]AssignLogOnAsService] Testing contoso\\TestUser1 is present on policy Log_on_as_a_service"},
{"time": "2017-07-22T12:45:42.855+10:00", "type": "verbose", "message": "[azurevm]: [[UserRightsAssignment]AssignLogOnAsService] Perform operation 'Query CimInstances' with following parameters, ''queryExpression' = SELECT * FROM Win32_UserAccount WHERE LocalAccount='True','queryDialect' = WQL,'namespaceName' = root\\cimv2'."},
{"time": "2017-07-22T12:45:42.977+10:00", "type": "verbose", "message": "[azurevm]: [[UserRightsAssignment]AssignLogOnAsService] Operation 'Query CimInstances' complete."},
{"time": "2017-07-22T12:45:42.978+10:00", "type": "verbose", "message": "[azurevm]: [[UserRightsAssignment]AssignLogOnAsService] TestUser1 do not have Privilege (Log_on_as_a_service)"},
{"time": "2017-07-22T12:45:42.980+10:00", "type": "verbose", "message": "[azurevm]: [[UserRightsAssignment]AssignLogOnAsService] Task did not complete successfully"},
{"time": "2017-07-22T12:45:43.001+10:00", "type": "verbose", "message": "[azurevm]: LCM: [ End Set ] [[UserRightsAssignment]AssignLogOnAsService] in 2.0210 seconds."},
This is the config I am using:
UserRightsAssignment AssignLogOnAsService
{
Policy = 'Log_on_as_a_service'
Identity = 'contoso\TestUser1'
}
from securitypolicydsc.
@scottmckenzie what version of the module are you running?
Get-Module SecurityPolicyDsc -ListAvailable
from securitypolicydsc.
1.4.0.0. The target resource is Windows Server 2016.
I'm using Azure DSC so this version was imported from the Modules Gallery in the Azure Portal.
from securitypolicydsc.
Fixed by 9fc3a5b? Can we have a new release with this fix please?
from securitypolicydsc.
FYI I'm using the fix in #9fc3a5b and I'm seeing the issue. Using dev branch on Server 2016.
EDIT:
Disregard, I copied the dev branch and made a 1.4.0.1 version and redeployed. Errors are gone now. Nodes were still using old 1.4.0.0 code.
from securitypolicydsc.
Related Issues (20)
- SecurityPolicyDsc: Invoke-DscResource "Get" output is "System.Object[]"
- SecurityPolicyDsc: Maximum_lifetime_for_service_ticket cannot be set to "0"
- SendConfigurationApply function does not succeeds on account an AccountPolicy. HOT 1
- Not able to use Configuration AccountPolicy_KerberosPolicies_Config
- DSC Conversion Breaks HOT 1
- UserRightsAssignment :Could not convert Identity to SID
- Minimum_Password_Length, Minimum_length_password_audit, Relax_minimum_password_length_limits HOT 1
- UserRightsAssignment threw one or more non-terminating errors while running the Test-TargetResource functionality
- Problem: 'MSFT_Security Option : MSFT_Security Option failed to execute Set-TargetResource failed to update security option´
- Network_access_ Restrict_clients_ allowed_to_make_ remote_calls_to_SAM: convertfrom-gpo not ok
- UserRightsAssignment: Allow_log_on_locally' with SourceInfo '::1129::4::UserRightsAssignment' threw one or more non-terminating errors while running the Get-TargetResource functionality. HOT 1
- UserRightsAssignment : Multiple identities don't work when using "Force"
- AccountPolicy: Current Configuration Does Not Exist
- SecurityPolicy Not being recognized in my powershell HOT 4
- Could not convert Identity: BUILTIN to SID
- SecurityPolicyDsc-AccountPolicy]SecuritySetting(INF)-ResetLockoutCount,LockoutDuration,MinimumPasswordLength,LockoutBadCount
- Support for Security Option: "Domain controller: Allow computer account re-use during domain join"
- AccountPolicy: Add AllowAdministratorAccountLockout
- SecurityOptions -Error in Get-GuestConfigurationPackageComplianceStatus
- Error Detail is The SendConfigurationApply function did not succeed.. Resource Id is [AccountPolicy]SecuritySetting(INF): LockoutBadCount HOT 2
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 securitypolicydsc.