Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Install-SfbLabRequirements fails - incorrect function called

Open
#15 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
35/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
powershell
Domain
devops

Research direction

Start at SfBAutomatedLab.psm1 around lines 314-315 and reproduce the failure through Install-SfbLabRequirements. Check the reported Get-LabMachine call and its use as the ComputerName argument. Done means the reported command-not-found error and resulting null-argument error no longer occur.

Written by the indexing model from the issue text.

Description

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.

Dominant language
PowerShell
Stars
14
Forks
4
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AutomatedLab/SfBAutomatedLab

All issues in AutomatedLab/SfBAutomatedLab

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.