-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access denied to mount iso #273
Comments
Use the built-in parameter |
thks a lot for your reply, but how to code under MountImage . it doesn't seem to be an available parameter |
I try something like but no impact and credential required at console . |
You have to change For testing you can pass plain text password in the compiled configuration. For production you should use certificate to encrypt the password. See DSC documentation how to encrypt credentials. |
The parameter is built-in in DSC and supported by LCM.
|
I have UserName Password a-millionje System.Security.SecureString PS C:\Users\a-millionje\Documents\DSC\SQLInstall> $configData = @{AllNodes = @(@{NodeName= 'localhost';PsDscAllowPlainTextPassword = $true} )} PS C:\Users\a-millionje\Documents\DSC> ./SQLInstall.ps1 -MyCredential $credentials $configData cmdlet SQLInstall at command pipeline position 1
Mode LastWriteTime Length Name -a---- 06/03/2023 15:28 4672 NLVCP1842D .mof with SQLINSTALL source: Configuration SQLInstall
} but got issue when run config PS C:\Users\a-millionje\Documents\DSC\SQLInstall> Start-DscConfiguration -path "." -verbose -wait VERBOSE: Perform operation 'Invoke CimMethod' with following parameters, ''methodName' = SendConfigurationApply,'className' = MSFT_DSCLocalConfigurationManager,'namespaceName' = VERBOSE: Operation 'Invoke CimMethod' complete. Apparently it doesn't use my credential ; no ? |
Make sure the account you use in the PSDscRunAsCredential is allowed to run resources. The account need specific rights on the node. Don't remember which ones now. |
The right can be found here https://learn.microsoft.com/en-us/powershell/dsc/configurations/runasuser Then make sure to run Start-DscConfiguration as elevated user. |
Hello Configuration SQLInstall
$mydata= } SQLInstall Then use following command with configurationdata to generatare MOF : PS C:\Users\a-millionje\Documents\DSC> .\SQLInstall4.ps1 -configurationdata $mydata But finally it doesn't want to generate it arguing security message PS C:\Users\a-millionje\Documents\DSC> .\SQLInstall4.ps1 -configurationdata $mydata cmdlet SQLInstall at command pipeline position 1
does it really possible to do it ? |
Your passing in a parameter to the script when the parameter is in the configuration. Without really knowing want you doing, I think you probably need to do # dot-source the script
. .\SQLInstall4.ps1
# pass the parameters to the configuration
SQLInstall -Node 'localhost' -MyCred $credentials -ConfigurationData $mydata |
Hello |
It says to use the configuration in the same file but you are passing the configuration from outside the file? |
No I pass in the same file
$mydata= } SQLInstall |
Change SqlInstall in the end to:
|
Hello |
Problem description
I face issue Acces Denied when launch Start-Dsc
Have u got any idea about this deny ?
Try with my authorised credentail , but same issue . Try to give computer authorize on DVD, but impossible
Verbose logs
DSC configuration
Suggested solution
Try to give Read access to DVD to computer . But impossible
Operating system the target node is running
PowerShell version and build the target node is running
StorageDsc version
The text was updated successfully, but these errors were encountered: