Skip to content
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

The term '\Scripts\CertHelpers.ps1' is not recognized... #50

Closed
benpiper opened this issue Oct 18, 2016 · 1 comment
Closed

The term '\Scripts\CertHelpers.ps1' is not recognized... #50

benpiper opened this issue Oct 18, 2016 · 1 comment

Comments

@benpiper
Copy link

After the SDNExpress.ps1 script gets to the "End Set" portion of InstallHostCert, I get the following error:

PowerShell DSC resource MSFT_ScriptResource failed to execute Set-TargetResource functionality with error message: The term '\Scripts\CertHelpers.ps1' is not recognized as the name of a cmdlet, function, script file, or operable program.

@nwoodmsft
Copy link
Member

Offhand, it looks like you are missing a value for the HostInstallSrcDir variable. The script is trying to access:

$($using:node.HostInstallSrcDir)\Scripts\CertHelpers.ps1

The HostInstallSrcDir is a variable configured at the very top of the FabricConfig.psd1 file. Please check that config file and ensure that you have HostInstallSrcDir defined. In most deployments the value will be set to the same value as InstallSrcDir.

Note: HostInstallSrcDir was introduced in the RTM/Master branch copy of FabricConfig.psd1. If you are using an older (e.g. TP5) version of the FabricConfig.psd1 file with the RTM version of the scripts, there will be problems and mismatches like this. It is strongly recommended to start over with a fresh copy of FabricConfig.psd1 from the Master branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants