-
Notifications
You must be signed in to change notification settings - Fork 54
Service : can't set local account like NT SERVICE\MsDtsServer110 #108
Comments
The resource SqlServiceAccount using the SQL Server SMO object model to set the service account, and the object model probably has this built-in since we do nothing special to handle this in the resource. So the same functionality can not be reused. But similar could be added as an enhancement to this resource or it's equivalent xService in xPSDesiredStateConfiguration. @kwirkykat Do you see this as an potential enhancement that the community could add to this resource, or do you rather see this added to xService in xPSDesiredStateConfiguration? |
This issue has been automatically marked as stale because it has not had activity from the community in the last 30 days. It will be closed if no further activity occurs within 10 days. If the issue is labelled with any of the work labels (e.g bug, enhancement, documentation, or tests) then the issue will not auto-close. |
We are still waiting for response from @kwirkykat as per previous comment. Comment so that the issues keeps open. |
@Francois-Rousseau @johlju I would try using that with the resource first to see if it works. If it doesn't work, it doesn't look like it would be a very hard change. |
@Francois-Rousseau relabeled this as 'needs more information' until the suggestion from @kwirkykat has been evaluated by you. Let's us know your findings. Thank you! |
This issue has been automatically marked as stale because it has not had activity from the community in the last 30 days. It will be closed if no further activity occurs within 10 days. If the issue is labelled with any of the work labels (e.g bug, enhancement, documentation, or tests) then the issue will not auto-close. |
This issue has been automatically closed because it is has not had activity from the community in the last 40 days. |
Using Service Resource, I'm not able to set services with local account like NT SERVICE\MsDtsServer110, with no password:
PowerShell DSC resource MSFT_ServiceResource failed to execute Set-TargetResource functionality with error message: Failed to change 'Credential' property. Message: 'The 'Change' method of
'Win32_Service' failed with error code: '22'.'
Which means : The account under which this service runs is either invalid or lacks the permissions to run the service.
I can set this account manually in services.msc with no problem, with or without password.
I think the Service resource should handle that, like the SqlServiceAccount from SQL module do.
If the account is NT Authority or NT SERVICE, the password should be ignored?
Thank you!
The text was updated successfully, but these errors were encountered: