I'm trying to run a powershell script for a study course I have, however each time I get the below failure.
Import-Module : Cannot bind argument to parameter 'Name' because it is null.At C:\Program Files\WindowsPowerShell\Modules\Lability\0.10.1\Lib\Dism.ps1:63 char:43
+ $dismModule = Import-Module -Name $dism Path -Force -Scope Gl ...
+ ~~~~~
+ CategoryInfo : InvalidData: (:) [Import-Module], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.ImportModul
eCommand
and
GetDscModule : DSC module\resource 'PSDesiredStateConfiguration\MSFT_WindowsOptionalFeature' not found.At C:\Program Files\WindowsPowerShell\Modules\Lability\0.10.1\Lib\DscResource.ps1:37 char:33
+ ... ourcePath = GetDscModule -ModuleName $ModuleName -ResourceName $Resou ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,GetDscModule
What have I missed here?