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

[Bug] Configure-EdgeExtension errors on line 16517 char:40 - Add-Member : Cannot bind argument to parameter 'InputObject' because it is null. #984

Closed
3 tasks done
DavidHislop opened this issue May 1, 2024 · 1 comment

Comments

@DavidHislop
Copy link

Prerequisites

PSAppDeployToolkit version

3.10.0

Describe the bug

Trying to add a edge extension with the new function. Below is line I am trying.

Configure-EdgeExtension -configureMode Add -extensionID "banejkelfpdmmmfobepfdnbmbbnecnol" -InstallationMode force_installed
Add-Member : Cannot bind argument to parameter 'InputObject' because it is null.
ppDeployToolkitMain.ps1:16517 char:40

  • ... xtensions | Add-Member -Name $($extensionID) -Value $(@{ "installatio ...

  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidData: (:) [Add-Member], ParameterBindingValidationException
    • FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.AddMemberComm
      and

    It seems to create the regSz Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge ExtensionSettings
    but it just remains null. I am guessing this is due to the value being null in the first place.

Steps to reproduce

1.Load module
2.Run command line
3. Receive Error

Environment data

OsName               : Microsoft Windows 10 Enterprise
OsOperatingSystemSKU : EnterpriseEdition
OsArchitecture       : 64-bit
WindowsVersion       : 2009
WindowsProductName   : Windows 10 Enterprise
WindowsBuildLabEx    : 19041.1.amd64fre.vb_release.191206-1406
OsLanguage           : en-US
OsMuiLanguages       : {en-US}
KeyboardLayout       : en-GB
TimeZone             : (UTC+00:00) Dublin, Edinburgh, Lisbon, London
HyperVisorPresent    : True
CsPartOfDomain       : True
CsPCSystemType       : Mobile
@seanlillis
Copy link
Member

Duplicate of #931 which was resolved in an earlier commit.

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

No branches or pull requests

3 participants