Discussion:
get-WMIObject win32_share - reinstall functionality
(too old to reply)
pgw1959
2009-06-17 06:36:01 UTC
Permalink
Hi,

While working in powershell I excuted the following...

$shares = get-WMIObject win32_share
$shares.Delete()

Now when I excute "get-WMIObject win32_share" I get the following error
message

Get-WmiObject : Invalid class

Any ideas on how I can reinstall the functionality.

Thanks, in advance pgw1959
pgw1959
2009-06-19 07:06:01 UTC
Permalink
What I had to do was to find out which dll (C:\WINDOWS\system32\wbem) the
win32_share was in and recomplie

C:\WINDOWS\system32\wbem>MOFComp CIMWIN32.MOF

This added back the functionality for the win32_share
pgw1959
2009-06-19 07:04:02 UTC
Permalink
What I had to do was to find out which dll (C:\WINDOWS\system32\wbem) the
win32_share was in and recomplie

C:\WINDOWS\system32\wbem>MOFComp CIMWIN32.MOF

This added back the functionality for the win32_share

Loading...