Open johlju opened 7 years ago
I hope when #405 is solved this will be solved as well.
Scenario 2 could have been resolved with higher rights.
If both PsDscRunAsCredential and SetupCredential is assigned credentials, then the credentials assigned to PsDscRunAsCredential must have the access right 'Replace a process level token'.
If this access right 'Replace a process level token' is not set, starting the process will fail with the following error message.
Exception calling "CreateProcessAsUser" with "5" argument(s): "Create process as user error #1314".
Now there is a new scenario with PR #578 that should be made to work.
Scenarion 4.
Using both parameters PsDscRunAsCredential
and SourceCredential
, if PsDscRunAsCredential
doesn't have the permission directly to the UNC path, and other credentials must be used to access the UNC path, or the SYSTEM account is used to install, then SourceCredential
should be able to work either running as system, or together with PsDscRunAsCredential
.
Details of the scenario you try and problem that is occurring: This is a problem when
SourcePath
is an UNC share when doing cluster install.Three scenarios I tried to get cluster install. Credentials parameters involved
SetupCredential
,SourceCredential
andPsDscRunAsCredential
. Only Scenario 3 worked.Scenario 1.
Using only parameter
SetupCredential
. It is not allow to access the UNC path becuase it is running as SYSTEM.Scenario 2.
Using both parameter
PsDscRunAsCredential
, to access the UNC share, and parameterSetupCredential
, because the setup.exe process is started using these credentials. But those credential inPsDscRunAsCredential
did not have rights (to impersonate) so the setup.exe process could start and failed with error "The process could not be created. Create process as user error #1314".It is a guess that is the rights that are the problem, but if it is there might be a workaround to give those permissions, see this article http://stackoverflow.com/questions/1475577/createprocessasuser-error-1314.
Scenario 3.
Using both parameter
SourceCredential
, to copy media locally, and parameter `SetupCredential, because the setup.exe process is started using these credentials. This scenario worked!The DSC configuration that is using the resource (as detailed as possible): Configuration from working scenario 3.
Version of the Operating System, SQL Server and PowerShell the DSC Target Node is running: Windows Server 2016, SQL Server 2014, PowerShell 5.0
Version of the DSC module you're using, or 'dev' if you're using current dev branch: Dev