Windows 10: Why does Powershell Install-Module fail inside Windows Sandbox

Discus and support Why does Powershell Install-Module fail inside Windows Sandbox in Windows 10 Customization to solve the problem; Outside sandbox windows powershell is happy to Install-Module ; inside Sandbox the ability to do this is missing? The versions appear to be identical.... Discussion in 'Windows 10 Customization' started by EddyLangley, May 22, 2020.

  1. Why does Powershell Install-Module fail inside Windows Sandbox


    Outside sandbox windows powershell is happy to Install-Module ; inside Sandbox the ability to do this is missing? The versions appear to be identical. I'm trying to automate a build process inside Sandbox using a Powershell script that installs and builds a number of things and I need to install 7Zip4Powershell.


    Running outside of sandbox:

    PS C:\Users\eddy> echo $PSVersionTable

    Name Value
    ---- -----
    PSVersion 5.1.18362.752
    PSEdition Desktop
    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
    BuildVersion 10.0.18362.752
    CLRVersion 4.0.30319.42000
    WSManStackVersion 3.0
    PSRemotingProtocolVersion 2.3
    SerializationVersion 1.1.0.1


    PS C:\Users\eddy> Install-Module

    cmdlet Install-Module at command pipeline position 1
    Supply values for the following parameters:
    Name[0]:


    Whereas inside sandbox:

    PS C:\Users\WDAGUtilityAccount> echo $PSVersionTable

    Name Value
    ---- -----
    PSVersion 5.1.18362.752
    PSEdition Desktop
    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
    BuildVersion 10.0.18362.752
    CLRVersion 4.0.30319.42000
    WSManStackVersion 3.0
    PSRemotingProtocolVersion 2.3
    SerializationVersion 1.1.0.1


    PS C:\Users\WDAGUtilityAccount> Install-Module
    Install-Module : The term 'Install-Module' 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 line:1 char:1
    + Install-Module
    + ~~~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: Install-Module:String [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

    PS C:\Users\WDAGUtilityAccount>

    :)
     
    EddyLangley, May 22, 2020
    #1
  2. sgartner Win User

    Windows Sandbox can't run PowerShell?!?

    When running in Windows Sandbox I can't run any PowerShell scripts at all. I get an error that states that, "Version v4.0.30319 of the .NET Framework is not installed and it is required to run version 3 of Windows PowerShell." and I have .net version 4.8.03752
    installed on the host machine (and then presumably on the sandbox machine). So far I've found it impossible to reinstall any version of .net 4.0 in the sandbox, I get "Same or higher version of .NET Framework 4 has already been installed on this computer."

    I assume PowerShell is supported in the sandbox? That would be a pretty annoying limitation to not be able to run PowerShell...

    Thanks,
     
    sgartner, May 22, 2020
    #2
  3. Fix for Sandbox

    Microsoft has acknowledged this issue now:

    Windows Sandbox may fail to start with error code “0x80070002”Windows Sandbox may fail to start with "ERROR_FILE_NOT_FOUND (0x80070002)" on devices in which the operating system language is changed during the update process when installing Windows 10, version 1903.


    Affected platforms:
    • Client: Windows 10, version 1903

    Next steps: We are working on a resolution and estimate a solution will be available in late June.
     
    hsehestedt, May 22, 2020
    #3
  4. Why does Powershell Install-Module fail inside Windows Sandbox

    Windows Sandbox failed to start. (0x80070057)

    Hi Arne,

    I am Sumit, an Independent Advisor and a 2-Year Windows Insider MVP here to help.

    Could be related.

    https://docs.microsoft.com/en-us/windows/releas...

    Windows Sandbox may fail to start with error code “0x80070002”

    Windows Sandbox may fail to start with "ERROR_FILE_NOT_FOUND (0x80070002)" on devices in which the operating system language is changed during the update process when installing Windows 10, version 1903.

    Affected platforms:

    Client: Windows 10, version 1903

    Next steps: We are working on a resolution and estimate a solution will be available in late June.

    Back to top OS Build 18362.116

    May 20, 2019

    KB4505057 Acknowledged

    Last updated:

    May 24, 2019

    04:20 PM PT

    Opened:

    May 24, 2019

    04:20 PM PT

    I would suggest you to wait until the next cumulative update.
     
    Sumit (Independent Advisor), May 22, 2020
    #4
Thema:

Why does Powershell Install-Module fail inside Windows Sandbox

Loading...
  1. Why does Powershell Install-Module fail inside Windows Sandbox - Similar Threads - Why does Powershell

  2. Powershell error when using install-module

    in Windows 10 Gaming
    Powershell error when using install-module: Hello !when I use Install-Module -Name ExchangeOnlineManagementI get the following error : Install-Package: The module 'ExchangeOnlineManagement' cannot be installed or updated because the authenticode signature of the file 'ExchangeOnlineManagement.psd1' is not valid.I use...
  3. Powershell error when using install-module

    in Windows 10 Software and Apps
    Powershell error when using install-module: Hello !when I use Install-Module -Name ExchangeOnlineManagementI get the following error : Install-Package: The module 'ExchangeOnlineManagement' cannot be installed or updated because the authenticode signature of the file 'ExchangeOnlineManagement.psd1' is not valid.I use...
  4. Powershell error when using install-module

    in Windows 10 BSOD Crashes and Debugging
    Powershell error when using install-module: Hello !when I use Install-Module -Name ExchangeOnlineManagementI get the following error : Install-Package: The module 'ExchangeOnlineManagement' cannot be installed or updated because the authenticode signature of the file 'ExchangeOnlineManagement.psd1' is not valid.I use...
  5. Windows Sandbox - Powershell Font

    in Windows 10 Gaming
    Windows Sandbox - Powershell Font: In Windows Sandbox my Power Shell terminal looks like this. How can I fix this? https://answers.microsoft.com/en-us/windows/forum/all/windows-sandbox-powershell-font/5fc7a058-0cfa-48f3-9c22-ec225a14ef1a
  6. Windows Sandbox - Powershell Font

    in Windows 10 Software and Apps
    Windows Sandbox - Powershell Font: In Windows Sandbox my Power Shell terminal looks like this. How can I fix this? https://answers.microsoft.com/en-us/windows/forum/all/windows-sandbox-powershell-font/5fc7a058-0cfa-48f3-9c22-ec225a14ef1a
  7. PowerShell error : Install-module is not recognized as the name of a cmdlet on Powershell...

    in Windows 10 Installation and Upgrade
    PowerShell error : Install-module is not recognized as the name of a cmdlet on Powershell...: HI, I am trying to install a powershellmodule and getting the below error message. install-module : The term 'install-module' 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,...
  8. Unable to install modules and powershell ISE

    in Windows 10 BSOD Crashes and Debugging
    Unable to install modules and powershell ISE: hello, Any one can you help me on above issue. unable to install powershell ise before that uninstall powewrshell ise, powershell not avialble in optional feature also... From another post: This is suman bandi i am not able to install module and powershell ise for...
  9. Issue with Install-Module from PowerShell Gallery

    in Windows 10 Installation and Upgrade
    Issue with Install-Module from PowerShell Gallery: I'm trying to Install modules from PowerShell Gallery , But Install-Module command is not working. Also Find-Module and a few commands are not working.[ATTACH][ATTACH]Previously I removed PowerShellGet from modules. I tried to installPowerShellGet from .nupkg file ,...
  10. Windows powershell/module installer query

    in Windows 10 Performance & Maintenance
    Windows powershell/module installer query: Hey all Since yesterday i have noticed for about a few seconds every 20 minutes something seems to trigger windows powershell and the module installer service. I'am aware that both programs are essential so i'm wondering if this simple just routine maintainance or not. I...