Get-NetNat : Invalid class

edbgsr 21 Reputation points
2022-02-18T01:41:54.95+00:00

Running the following Get-NetNat LabNat

I get the following error:
PS C:\WINDOWS\system32> Get-NetNat LabNat
Get-NetNat : Invalid class
At line:1 char:1

  • Get-NetNat LabNat
  • ~~~~~~~~~~~~~~~~~
  • CategoryInfo : MetadataError: (MSFT_NetNat:root/StandardCimv2/MSFT_NetNat) [Get-NetNat], CimException
  • FullyQualifiedErrorId : HRESULT 0x80041010,Get-NetNat
Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,340 questions
0 comments No comments
{count} votes

Accepted answer
  1. Limitless Technology 44,221 Reputation points
    2022-02-18T12:57:33.68+00:00

    Hello @edbgsr

    This error indicates that either you don't have Hyper-V or RAS enabled, just make sure you have the following requirements:

    -Windows 10 Anniversary Update or later

    -Hyper-V is enabled (instructions here)

    For more information see:

    Set up a NAT network
    https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/setup-nat-network

    Hope this helps with your query,

    --
    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.