From Yosi, via Roy:

Microsoft (R) Management Strongly Typed Class Generator Version 1.1.4322.573
Copyright c Microsoft Corporation 1998-2002. All rights reserved.
MgmtClassGen  [options]
         /N                WMI namespace containing the class. Defaults to root\cimv2
         /O              .NET namespace in which the class is generated
         /L       One of the following. Defaulted to CS
                                                 CS - CSharp(C#)
                                                 VB - Visual Basic
                                                 JS - JScript
         /P                    Output file path
         /M                     Remote computer to connect. Defaults to the local machine
         /U                        User name
         /PW                   Password
         /?                              Displays this help screen
Example:
        MgmtclassGen Win32_Logicaldisk /L VB /N root\cimv2 /P c:\temp\logicaldisk.vb