An attempt was made to reference a token that does not exist

When opening manage or the  “Microsoft Management Console (MMC)”  you recieve
An attempt was made to reference a token that does not exist”.

Solution:

Open a Command Prompt ( Search for CMD) (right click and run as administrator) and navigate to

c:\windows\System32

Re-register the required DLL files by using the following command:

For /F %s in (‘dir /b *.dll’) do regsvr32 /s %s

 

Also run SFC /SCANNOW from the command prompt (Elevate permission) if the above does not work.