microsoft/Windows-Containers

The referenced assembly could not be found. Error: 0x80073701

Closed this issue · 7 comments

When running the script, I got an error. It went through Querying the status and Enabling feature but then I got the error. I ran it again in ISE to keep the errors up. Any thoughts on this?
2024-05-16 13_40_15-Window

@philipt99 Hi, what OS version are you using? And are you running this script in an elevated PowerShell window?

@ntrappe-msft @ritikaguptams
Sorry for not being more specific. This is on Windows Server 2019 Standard 1809 running as Administrator

Could you check if you have the Add-WindowsFeature cmdlet installed? Just run the following and you should see that ServerManager is present (it owns Add-WindowsFeature).

Get-Module -ListAvailable -Name ServerManager

@ntrappe-msft

Here is the output I got from the command
Greenshot 2024-05-16 18 38 27

Here is the full list:
Commands 2

@philipt99 Hi, thanks for showing the output. I was hoping it was just the case that Add-WindowsFeature wasn't installed properly or available. Since that's not it, there may be a permissions error with your script trying to install something the system isn't allowing. I'm attending Build this week so I won't be able to investigate until next week. Thanks for your patience.

I went ahead and upgraded to Windows Server 2022 and got it running under that.

@philipt99 I'm glad it's working with Windows Server 2022. 2019 seems to have significant differences between the commands you can run or information you can query. I'll see if we plan to add 2019 support to the script. I'll close this for now but link it with any PRs we submit for 2019.