Windows-Containers icon indicating copy to clipboard operation
Windows-Containers copied to clipboard

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

Open philipt99 opened this issue 2 years ago • 5 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 avatar May 16 '24 19:05 philipt99

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

ntrappe-msft avatar May 16 '24 20:05 ntrappe-msft

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

philipt99 avatar May 16 '24 20:05 philipt99

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 avatar May 16 '24 23:05 ntrappe-msft

@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 avatar May 17 '24 00:05 philipt99

@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.

ntrappe-msft avatar May 22 '24 21:05 ntrappe-msft

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

philipt99 avatar May 26 '24 13:05 philipt99

@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.

ntrappe-msft avatar Jun 03 '24 22:06 ntrappe-msft