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

Install-SfbLabRequirements fails - incorrect function called #15

Open
astavitsky opened this issue May 8, 2018 · 1 comment
Open

Install-SfbLabRequirements fails - incorrect function called #15

astavitsky opened this issue May 8, 2018 · 1 comment

Comments

@astavitsky
Copy link

Install-SfbLabRequirements fails with multiple message like this one:

Get-LabMachine : The term 'Get-LabMachine' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, 
verify that the path is correct and try again.
At C:\Program Files\WindowsPowerShell\Modules\SfBAutomatedLab\0.6\SfBAutomatedLab.psm1:314 char:17
+     $machines = Get-LabMachine
+                 ~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Get-LabMachine:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
 
Install-LabWindowsFeature : Cannot validate argument on parameter 'ComputerName'. The argument is null or empty. Provide an argument that is not null or empty, and then try the command 
again.
At C:\Program Files\WindowsPowerShell\Modules\SfBAutomatedLab\0.6\SfBAutomatedLab.psm1:315 char:45
+     Install-LabWindowsFeature -ComputerName $machines -FeatureName NE ...
+                                             ~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Install-LabWindowsFeature], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Install-LabWindowsFeature

This is because Get-LabMachineDefinition should be used instead of Get-LabMachine.

@raandree
Copy link
Member

raandree commented May 9, 2018

Actually the cmdlet was renamed quite some time ago from 'Get-LabMachine' to 'Get-LabVM'. In v4.7 or later we have removed the alias as well.

Unfortunately there is not enough time to also maintain the SfB project. This was done on a customer request but is no longer maintained. If you find it useful, your are invited to take over :)

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