ÿþ********************** Windows PowerShell Transcript Start ********************** PS C:\Users\Administrator.BRIDGE> gwmi -class win32_logicaldisk DeviceID : C: DriveType : 3 ProviderName : FreeSpace : 20123308032 Size : 41943035904 VolumeName : DeviceID : D: DriveType : 3 ProviderName : FreeSpace : 24064016384 Size : 53686038528 VolumeName : Vista DeviceID : E: DriveType : 5 ProviderName : FreeSpace : Size : VolumeName : PS C:\Users\Administrator.BRIDGE> gwmi -class win32_logicaldisk -computer columbus DeviceID : A: DriveType : 2 ProviderName : FreeSpace : Size : VolumeName : DeviceID : C: DriveType : 3 ProviderName : FreeSpace : 6043721728 Size : 16102977536 VolumeName : DeviceID : D: DriveType : 5 ProviderName : FreeSpace : Size : VolumeName : PS C:\Users\Administrator.BRIDGE> $creds = get-credential cmdlet get-credential at command pipeline position 1 Supply values for the following parameters: Credential PS C:\Users\Administrator.BRIDGE> gwmi -class win32_logicaldisk -computername columbus -credential $creds DeviceID : A: DriveType : 2 ProviderName : FreeSpace : Size : VolumeName : DeviceID : C: DriveType : 3 ProviderName : FreeSpace : 6043639808 Size : 16102977536 VolumeName : DeviceID : D: DriveType : 5 ProviderName : FreeSpace : Size : VolumeName : PS C:\Users\Administrator.BRIDGE> gwmi win32_logicaldisk | get-member TypeName: System.Management.ManagementObject#root\cimv2\Win32_LogicalDisk Name MemberType Definition ---- ---------- ---------- Chkdsk Method System.Management.ManagementBaseOb... Reset Method System.Management.ManagementBaseOb... SetPowerState Method System.Management.ManagementBaseOb... Access Property System.UInt16 Access {get;set;} Availability Property System.UInt16 Availability {get;set;} BlockSize Property System.UInt64 BlockSize {get;set;} Caption Property System.String Caption {get;set;} Compressed Property System.Boolean Compressed {get;set;} ConfigManagerErrorCode Property System.UInt32 ConfigManagerErrorCo... ConfigManagerUserConfig Property System.Boolean ConfigManagerUserCo... CreationClassName Property System.String CreationClassName {g... Description Property System.String Description {get;set;} DeviceID Property System.String DeviceID {get;set;} DriveType Property System.UInt32 DriveType {get;set;} ErrorCleared Property System.Boolean ErrorCleared {get;s... ErrorDescription Property System.String ErrorDescription {ge... ErrorMethodology Property System.String ErrorMethodology {ge... FileSystem Property System.String FileSystem {get;set;} FreeSpace Property System.UInt64 FreeSpace {get;set;} InstallDate Property System.String InstallDate {get;set;} LastErrorCode Property System.UInt32 LastErrorCode {get;s... MaximumComponentLength Property System.UInt32 MaximumComponentLeng... MediaType Property System.UInt32 MediaType {get;set;} Name Property System.String Name {get;set;} NumberOfBlocks Property System.UInt64 NumberOfBlocks {get;... PNPDeviceID Property System.String PNPDeviceID {get;set;} PowerManagementCapabilities Property System.UInt16[] PowerManagementCap... PowerManagementSupported Property System.Boolean PowerManagementSupp... ProviderName Property System.String ProviderName {get;set;} Purpose Property System.String Purpose {get;set;} QuotasDisabled Property System.Boolean QuotasDisabled {get... QuotasIncomplete Property System.Boolean QuotasIncomplete {g... QuotasRebuilding Property System.Boolean QuotasRebuilding {g... Size Property System.UInt64 Size {get;set;} Status Property System.String Status {get;set;} StatusInfo Property System.UInt16 StatusInfo {get;set;} SupportsDiskQuotas Property System.Boolean SupportsDiskQuotas ... SupportsFileBasedCompression Property System.Boolean SupportsFileBasedCo... SystemCreationClassName Property System.String SystemCreationClassN... SystemName Property System.String SystemName {get;set;} VolumeDirty Property System.Boolean VolumeDirty {get;set;} VolumeName Property System.String VolumeName {get;set;} VolumeSerialNumber Property System.String VolumeSerialNumber {... __CLASS Property System.String __CLASS {get;set;} __DERIVATION Property System.String[] __DERIVATION {get;... __DYNASTY Property System.String __DYNASTY {get;set;} __GENUS Property System.Int32 __GENUS {get;set;} __NAMESPACE Property System.String __NAMESPACE {get;set;} __PATH Property System.String __PATH {get;set;} __PROPERTY_COUNT Property System.Int32 __PROPERTY_COUNT {get... __RELPATH Property System.String __RELPATH {get;set;} __SERVER Property System.String __SERVER {get;set;} __SUPERCLASS Property System.String __SUPERCLASS {get;set;} PSStatus PropertySet PSStatus {Status, Availability, De... ConvertFromDateTime ScriptMethod System.Object ConvertFromDateTime(); ConvertToDateTime ScriptMethod System.Object ConvertToDateTime(); Delete ScriptMethod System.Object Delete(); GetType ScriptMethod System.Object GetType(); Put ScriptMethod System.Object Put(); PS C:\Users\Administrator.BRIDGE> $disks = gwmi win32_logicaldisk PS C:\Users\Administrator.BRIDGE> $disks[0].filesystem NTFS PS C:\Users\Administrator.BRIDGE> $disks[0].freespace 20123295744 PS C:\Users\Administrator.BRIDGE> $disks[0].VolumeName PS C:\Users\Administrator.BRIDGE> $disks[0].VolumeName = "Kirks disk" PS C:\Users\Administrator.BRIDGE> $disks[0].VolumeName Kirks disk PS C:\Users\Administrator.BRIDGE> $disks[0].Put() Path : \\localhost\root\cimv2:Win32_LogicalDisk.DeviceID="C:" RelativePath : Win32_LogicalDisk.DeviceID="C:" Server : localhost NamespacePath : root\cimv2 ClassName : Win32_LogicalDisk IsClass : False IsInstance : True IsSingleton : False PS C:\Users\Administrator.BRIDGE> gwmi win32_quickfixengineering Description : Update FixComments : HotFixID : KB940518 Install Date : InstalledBy : S-1-5-21-1040838827-970115280-473082446-500 InstalledOn : 01c908e9990e7eed Name : ServicePackInEffect : Status : Description : Security Update FixComments : HotFixID : KB941693 Install Date : InstalledBy : S-1-5-21-1040838827-970115280-473082446-500 InstalledOn : 01c908e999180471 Name : ServicePackInEffect : Status : Description : Update FixComments : HotFixID : KB947562 Install Date : InstalledBy : S-1-5-21-1040838827-970115280-473082446-500 InstalledOn : 01c908e999180471 Name : ServicePackInEffect : Status : Description : Security Update FixComments : HotFixID : KB948590 Install Date : InstalledBy : S-1-5-21-1040838827-970115280-473082446-500 InstalledOn : 01c908e999180471 Name : ServicePackInEffect : Status : Description : Hotfix FixComments : HotFixID : KB949189 Install Date : InstalledBy : S-1-5-21-1040838827-970115280-473082446-500 InstalledOn : 01c908e9991a65d2 Name : ServicePackInEffect : Status : Description : Update FixComments : HotFixID : KB950050 Install Date : InstalledBy : S-1-5-21-1040838827-970115280-473082446-500 InstalledOn : 01c908e9991a65d2 Name : ServicePackInEffect : Status : Description : Security Update FixComments : HotFixID : KB950582 Install Date : InstalledBy : S-1-5-21-1040838827-970115280-473082446-500 InstalledOn : 01c908e9991a65d2 Name : ServicePackInEffect : Status : Description : Security Update FixComments : HotFixID : KB950762 Install Date : InstalledBy : S-1-5-21-1040838827-970115280-473082446-500 InstalledOn : 01c908e9991a65d2 Name : ServicePackInEffect : Status : Description : Security Update FixComments : HotFixID : KB950974 Install Date : InstalledBy : S-1-5-21-1040838827-970115280-473082446-500 InstalledOn : 01c908e9991cc733 Name : ServicePackInEffect : Status : Description : Security Update FixComments : HotFixID : KB951066 Install Date : InstalledBy : S-1-5-21-1040838827-970115280-473082446-500 InstalledOn : 01c908e9991cc733 Name : ServicePackInEffect : Status : Description : Update FixComments : HotFixID : KB951072 Install Date : InstalledBy : S-1-5-21-1040838827-970115280-473082446-500 InstalledOn : 01c908e9991cc733 Name : ServicePackInEffect : Status : Description : Update FixComments : HotFixID : KB951618 Install Date : InstalledBy : S-1-5-21-1040838827-970115280-473082446-500 InstalledOn : 01c908e9991cc733 Name : ServicePackInEffect : Status : Description : Security Update FixComments : HotFixID : KB951698 Install Date : InstalledBy : S-1-5-21-1040838827-970115280-473082446-500 InstalledOn : 01c908e9991f2894 Name : ServicePackInEffect : Status : Description : Security Update FixComments : HotFixID : KB951746 Install Date : InstalledBy : S-1-5-18 InstalledOn : 01c90d332781a7c6 Name : ServicePackInEffect : Status : Description : Update FixComments : HotFixID : KB951978 Install Date : InstalledBy : S-1-5-21-1040838827-970115280-473082446-500 InstalledOn : 01c908e9991f2894 Name : ServicePackInEffect : Status : Description : Hotfix FixComments : HotFixID : KB952287 Install Date : InstalledBy : S-1-5-21-1040838827-970115280-473082446-500 InstalledOn : 01c908e9991f2894 Name : ServicePackInEffect : Status : Description : Security Update FixComments : HotFixID : KB953733 Install Date : InstalledBy : S-1-5-21-1040838827-970115280-473082446-500 InstalledOn : 01c908e9991f2894 Name : ServicePackInEffect : Status : Description : Security Update FixComments : HotFixID : KB953838 Install Date : InstalledBy : S-1-5-21-1040838827-970115280-473082446-500 InstalledOn : 01c908e9992189f5 Name : ServicePackInEffect : Status : Description : Security Update FixComments : HotFixID : KB953839 Install Date : InstalledBy : S-1-5-21-1040838827-970115280-473082446-500 InstalledOn : 01c908e9992189f5 Name : ServicePackInEffect : Status : Description : Update FixComments : HotFixID : KB955020 Install Date : InstalledBy : S-1-5-21-1040838827-970115280-473082446-500 InstalledOn : 01c908e9992189f5 Name : ServicePackInEffect : Status : PS C:\Users\Administrator.BRIDGE> gwmi win32_quickfixengineering | get-member TypeName: System.Management.ManagementObject#root\cimv2\Win32_QuickFixEngine ering Name MemberType Definition ---- ---------- ---------- Caption Property System.String Caption {get;set;} CSName Property System.String CSName {get;set;} Description Property System.String Description {get;set;} FixComments Property System.String FixComments {get;set;} HotFixID Property System.String HotFixID {get;set;} InstallDate Property System.String InstallDate {get;set;} InstalledBy Property System.String InstalledBy {get;set;} InstalledOn Property System.String InstalledOn {get;set;} Name Property System.String Name {get;set;} ServicePackInEffect Property System.String ServicePackInEffect {get;set;} Status Property System.String Status {get;set;} __CLASS Property System.String __CLASS {get;set;} __DERIVATION Property System.String[] __DERIVATION {get;set;} __DYNASTY Property System.String __DYNASTY {get;set;} __GENUS Property System.Int32 __GENUS {get;set;} __NAMESPACE Property System.String __NAMESPACE {get;set;} __PATH Property System.String __PATH {get;set;} __PROPERTY_COUNT Property System.Int32 __PROPERTY_COUNT {get;set;} __RELPATH Property System.String __RELPATH {get;set;} __SERVER Property System.String __SERVER {get;set;} __SUPERCLASS Property System.String __SUPERCLASS {get;set;} PSStatus PropertySet PSStatus {__PATH, Status} ConvertFromDateTime ScriptMethod System.Object ConvertFromDateTime(); ConvertToDateTime ScriptMethod System.Object ConvertToDateTime(); Delete ScriptMethod System.Object Delete(); GetType ScriptMethod System.Object GetType(); Put ScriptMethod System.Object Put(); PS C:\Users\Administrator.BRIDGE> gwmi win32_quickfixengineering | format-table hotfixid hotfixid -------- KB940518 KB941693 KB947562 KB948590 KB949189 KB950050 KB950582 KB950762 KB950974 KB951066 KB951072 KB951618 KB951698 KB951746 KB951978 KB952287 KB953733 KB953838 KB953839 KB955020 PS C:\Users\Administrator.BRIDGE> $os = gwmi win32_operatingsystem PS C:\Users\Administrator.BRIDGE> $os | get-member TypeName: System.Management.ManagementObject#root\cimv2\Win32_OperatingSyste m Name MemberType Definition ---- ---------- ---------- Reboot Method System.Management.Man... SetDateTime Method System.Management.Man... Shutdown Method System.Management.Man... Win32Shutdown Method System.Management.Man... Win32ShutdownTracker Method System.Management.Man... BootDevice Property System.String BootDev... BuildNumber Property System.String BuildNu... BuildType Property System.String BuildTy... Caption Property System.String Caption... CodeSet Property System.String CodeSet... CountryCode Property System.String Country... CreationClassName Property System.String Creatio... CSCreationClassName Property System.String CSCreat... CSDVersion Property System.String CSDVers... CSName Property System.String CSName ... CurrentTimeZone Property System.Int16 CurrentT... DataExecutionPrevention_32BitApplications Property System.Boolean DataEx... DataExecutionPrevention_Available Property System.Boolean DataEx... DataExecutionPrevention_Drivers Property System.Boolean DataEx... DataExecutionPrevention_SupportPolicy Property System.Byte DataExecu... Debug Property System.Boolean Debug ... Description Property System.String Descrip... Distributed Property System.Boolean Distri... EncryptionLevel Property System.UInt32 Encrypt... ForegroundApplicationBoost Property System.Byte Foregroun... FreePhysicalMemory Property System.UInt64 FreePhy... FreeSpaceInPagingFiles Property System.UInt64 FreeSpa... FreeVirtualMemory Property System.UInt64 FreeVir... InstallDate Property System.String Install... LargeSystemCache Property System.UInt32 LargeSy... LastBootUpTime Property System.String LastBoo... LocalDateTime Property System.String LocalDa... Locale Property System.String Locale ... Manufacturer Property System.String Manufac... MaxNumberOfProcesses Property System.UInt32 MaxNumb... MaxProcessMemorySize Property System.UInt64 MaxProc... MUILanguages Property System.String[] MUILa... Name Property System.String Name {g... NumberOfLicensedUsers Property System.UInt32 NumberO... NumberOfProcesses Property System.UInt32 NumberO... NumberOfUsers Property System.UInt32 NumberO... OperatingSystemSKU Property System.UInt32 Operati... Organization Property System.String Organiz... OSArchitecture Property System.String OSArchi... OSLanguage Property System.UInt32 OSLangu... OSProductSuite Property System.UInt32 OSProdu... OSType Property System.UInt16 OSType ... OtherTypeDescription Property System.String OtherTy... PAEEnabled Property System.Boolean PAEEna... PlusProductID Property System.String PlusPro... PlusVersionNumber Property System.String PlusVer... Primary Property System.Boolean Primar... ProductType Property System.UInt32 Product... QuantumLength Property System.Byte QuantumLe... QuantumType Property System.Byte QuantumTy... RegisteredUser Property System.String Registe... SerialNumber Property System.String SerialN... ServicePackMajorVersion Property System.UInt16 Service... ServicePackMinorVersion Property System.UInt16 Service... SizeStoredInPagingFiles Property System.UInt64 SizeSto... Status Property System.String Status ... SuiteMask Property System.UInt32 SuiteMa... SystemDevice Property System.String SystemD... SystemDirectory Property System.String SystemD... SystemDrive Property System.String SystemD... TotalSwapSpaceSize Property System.UInt64 TotalSw... TotalVirtualMemorySize Property System.UInt64 TotalVi... TotalVisibleMemorySize Property System.UInt64 TotalVi... Version Property System.String Version... WindowsDirectory Property System.String Windows... __CLASS Property System.String __CLASS... __DERIVATION Property System.String[] __DER... __DYNASTY Property System.String __DYNAS... __GENUS Property System.Int32 __GENUS ... __NAMESPACE Property System.String __NAMES... __PATH Property System.String __PATH ... __PROPERTY_COUNT Property System.Int32 __PROPER... __RELPATH Property System.String __RELPA... __SERVER Property System.String __SERVE... __SUPERCLASS Property System.String __SUPER... FREE PropertySet FREE {FreePhysicalMem... PSStatus PropertySet PSStatus {Status, Name} ConvertFromDateTime ScriptMethod System.Object Convert... ConvertToDateTime ScriptMethod System.Object Convert... Delete ScriptMethod System.Object Delete(); GetType ScriptMethod System.Object GetType(); Put ScriptMethod System.Object Put(); PS C:\Users\Administrator.BRIDGE> $os | format-list caption, csdversion caption : Microsoft® Windows Server® 2008 Standard csdversion : Service Pack 1 PS C:\Users\Administrator.BRIDGE> $nics = gwmi win32_networkadapterconfiguration PS C:\Users\Administrator.BRIDGE> $nics DHCPEnabled : False IPAddress : DefaultIPGateway : DNSDomain : ServiceName : RasSstp Description : WAN Miniport (SSTP) Index : 0 DHCPEnabled : False IPAddress : DefaultIPGateway : DNSDomain : ServiceName : Rasl2tp Description : WAN Miniport (L2TP) Index : 1 DHCPEnabled : False IPAddress : DefaultIPGateway : DNSDomain : ServiceName : PptpMiniport Description : WAN Miniport (PPTP) Index : 2 DHCPEnabled : False IPAddress : DefaultIPGateway : DNSDomain : ServiceName : RasPppoe Description : WAN Miniport (PPPOE) Index : 3 DHCPEnabled : False IPAddress : DefaultIPGateway : DNSDomain : ServiceName : NdisWan Description : WAN Miniport (IPv6) Index : 4 DHCPEnabled : False IPAddress : DefaultIPGateway : DNSDomain : ServiceName : NdisWan Description : WAN Miniport (Network Monitor) Index : 5 DHCPEnabled : True IPAddress : DefaultIPGateway : DNSDomain : ServiceName : RTL8169 Description : Realtek RTL8168/8111 Family PCI-E Gigabit Ethernet NIC (NDIS 6.0) Index : 6 DHCPEnabled : True IPAddress : {130.195.56.102, fe80::6cf0:fb1a:6355:20} DefaultIPGateway : {130.195.56.1} DNSDomain : ServiceName : NETw3v64 Description : Intel(R) PRO/Wireless 3945ABG Network Connection Index : 7 DHCPEnabled : False IPAddress : DefaultIPGateway : DNSDomain : ServiceName : NdisWan Description : WAN Miniport (IP) Index : 8 DHCPEnabled : False IPAddress : {192.168.1.3} DefaultIPGateway : DNSDomain : ServiceName : VMSMP Description : New Internal Virtual Network Index : 9 DHCPEnabled : True IPAddress : DefaultIPGateway : DNSDomain : ServiceName : VMSMP Description : Microsoft Virtual Network Switch Adapter Index : 10 DHCPEnabled : False IPAddress : DefaultIPGateway : DNSDomain : ServiceName : AsyncMac Description : RAS Async Adapter Index : 11 DHCPEnabled : True IPAddress : DefaultIPGateway : DNSDomain : ServiceName : SWNC5E00 Description : Sierra Wireless AC595U 1xEV-DO Network Adapter Index : 12 DHCPEnabled : False IPAddress : DefaultIPGateway : DNSDomain : ServiceName : tunmp Description : Microsoft Tun Miniport Adapter Index : 13 DHCPEnabled : False IPAddress : DefaultIPGateway : DNSDomain : ServiceName : tunnel Description : Microsoft ISATAP Adapter Index : 16 DHCPEnabled : False IPAddress : DefaultIPGateway : DNSDomain : ServiceName : tunnel Description : Microsoft 6to4 Adapter Index : 17 DHCPEnabled : False IPAddress : DefaultIPGateway : DNSDomain : ServiceName : tunnel Description : Microsoft ISATAP Adapter Index : 19 PS C:\Users\Administrator.BRIDGE> $mynic = gwmi win32_networkadapterconfiguration | where-object { $_.index -eq 9 } PS C:\Users\Administrator.BRIDGE> $mynic | get-member TypeName: System.Management.ManagementObject#root\cimv2\Win32_NetworkAdapter Configuration Name MemberType Definition ---- ---------- ---------- DisableIPSec Method System.Management.ManagementBaseOb... EnableDHCP Method System.Management.ManagementBaseOb... EnableIPSec Method System.Management.ManagementBaseOb... EnableStatic Method System.Management.ManagementBaseOb... ReleaseDHCPLease Method System.Management.ManagementBaseOb... RenewDHCPLease Method System.Management.ManagementBaseOb... SetDNSDomain Method System.Management.ManagementBaseOb... SetDNSServerSearchOrder Method System.Management.ManagementBaseOb... SetDynamicDNSRegistration Method System.Management.ManagementBaseOb... SetGateways Method System.Management.ManagementBaseOb... SetIPConnectionMetric Method System.Management.ManagementBaseOb... SetIPXFrameTypeNetworkPairs Method System.Management.ManagementBaseOb... SetTcpipNetbios Method System.Management.ManagementBaseOb... SetWINSServer Method System.Management.ManagementBaseOb... ArpAlwaysSourceRoute Property System.Boolean ArpAlwaysSourceRout... ArpUseEtherSNAP Property System.Boolean ArpUseEtherSNAP {ge... Caption Property System.String Caption {get;set;} DatabasePath Property System.String DatabasePath {get;set;} DeadGWDetectEnabled Property System.Boolean DeadGWDetectEnabled... DefaultIPGateway Property System.String[] DefaultIPGateway {... DefaultTOS Property System.Byte DefaultTOS {get;set;} DefaultTTL Property System.Byte DefaultTTL {get;set;} Description Property System.String Description {get;set;} DHCPEnabled Property System.Boolean DHCPEnabled {get;set;} DHCPLeaseExpires Property System.String DHCPLeaseExpires {ge... DHCPLeaseObtained Property System.String DHCPLeaseObtained {g... DHCPServer Property System.String DHCPServer {get;set;} DNSDomain Property System.String DNSDomain {get;set;} DNSDomainSuffixSearchOrder Property System.String[] DNSDomainSuffixSea... DNSEnabledForWINSResolution Property System.Boolean DNSEnabledForWINSRe... DNSHostName Property System.String DNSHostName {get;set;} DNSServerSearchOrder Property System.String[] DNSServerSearchOrd... DomainDNSRegistrationEnabled Property System.Boolean DomainDNSRegistrati... ForwardBufferMemory Property System.UInt32 ForwardBufferMemory ... FullDNSRegistrationEnabled Property System.Boolean FullDNSRegistration... GatewayCostMetric Property System.UInt16[] GatewayCostMetric ... IGMPLevel Property System.Byte IGMPLevel {get;set;} Index Property System.UInt32 Index {get;set;} InterfaceIndex Property System.UInt32 InterfaceIndex {get;... IPAddress Property System.String[] IPAddress {get;set;} IPConnectionMetric Property System.UInt32 IPConnectionMetric {... IPEnabled Property System.Boolean IPEnabled {get;set;} IPFilterSecurityEnabled Property System.Boolean IPFilterSecurityEna... IPPortSecurityEnabled Property System.Boolean IPPortSecurityEnabl... IPSecPermitIPProtocols Property System.String[] IPSecPermitIPProto... IPSecPermitTCPPorts Property System.String[] IPSecPermitTCPPort... IPSecPermitUDPPorts Property System.String[] IPSecPermitUDPPort... IPSubnet Property System.String[] IPSubnet {get;set;} IPUseZeroBroadcast Property System.Boolean IPUseZeroBroadcast ... IPXAddress Property System.String IPXAddress {get;set;} IPXEnabled Property System.Boolean IPXEnabled {get;set;} IPXFrameType Property System.UInt32[] IPXFrameType {get;... IPXMediaType Property System.UInt32 IPXMediaType {get;set;} IPXNetworkNumber Property System.String[] IPXNetworkNumber {... IPXVirtualNetNumber Property System.String IPXVirtualNetNumber ... KeepAliveInterval Property System.UInt32 KeepAliveInterval {g... KeepAliveTime Property System.UInt32 KeepAliveTime {get;s... MACAddress Property System.String MACAddress {get;set;} MTU Property System.UInt32 MTU {get;set;} NumForwardPackets Property System.UInt32 NumForwardPackets {g... PMTUBHDetectEnabled Property System.Boolean PMTUBHDetectEnabled... PMTUDiscoveryEnabled Property System.Boolean PMTUDiscoveryEnable... ServiceName Property System.String ServiceName {get;set;} SettingID Property System.String SettingID {get;set;} TcpipNetbiosOptions Property System.UInt32 TcpipNetbiosOptions ... TcpMaxConnectRetransmissions Property System.UInt32 TcpMaxConnectRetrans... TcpMaxDataRetransmissions Property System.UInt32 TcpMaxDataRetransmis... TcpNumConnections Property System.UInt32 TcpNumConnections {g... TcpUseRFC1122UrgentPointer Property System.Boolean TcpUseRFC1122Urgent... TcpWindowSize Property System.UInt16 TcpWindowSize {get;s... WINSEnableLMHostsLookup Property System.Boolean WINSEnableLMHostsLo... WINSHostLookupFile Property System.String WINSHostLookupFile {... WINSPrimaryServer Property System.String WINSPrimaryServer {g... WINSScopeID Property System.String WINSScopeID {get;set;} WINSSecondaryServer Property System.String WINSSecondaryServer ... __CLASS Property System.String __CLASS {get;set;} __DERIVATION Property System.String[] __DERIVATION {get;... __DYNASTY Property System.String __DYNASTY {get;set;} __GENUS Property System.Int32 __GENUS {get;set;} __NAMESPACE Property System.String __NAMESPACE {get;set;} __PATH Property System.String __PATH {get;set;} __PROPERTY_COUNT Property System.Int32 __PROPERTY_COUNT {get... __RELPATH Property System.String __RELPATH {get;set;} __SERVER Property System.String __SERVER {get;set;} __SUPERCLASS Property System.String __SUPERCLASS {get;set;} DHCP PropertySet DHCP {Description, DHCPEnabled, DH... DNS PropertySet DNS {Description, DNSDomain, DNSDo... IP PropertySet IP {Description, Index, IPAddress,... PSStatus PropertySet PSStatus {DHCPLeaseExpires, Index,... WINS PropertySet WINS {Description, Index, WINSEnab... ConvertFromDateTime ScriptMethod System.Object ConvertFromDateTime(); ConvertToDateTime ScriptMethod System.Object ConvertToDateTime(); Delete ScriptMethod System.Object Delete(); GetType ScriptMethod System.Object GetType(); Put ScriptMethod System.Object Put(); PS C:\Users\Administrator.BRIDGE> $newip = "192.168.1.3" PS C:\Users\Administrator.BRIDGE> $newmask = "255.255.255.0" PS C:\Users\Administrator.BRIDGE> PS C:\Users\Administrator.BRIDGE> $mynic.enablestatic($newip, $newmask) __GENUS : 2 __CLASS : __PARAMETERS __SUPERCLASS : __DYNASTY : __PARAMETERS __RELPATH : __PROPERTY_COUNT : 1 __DERIVATION : {} __SERVER : __NAMESPACE : __PATH : ReturnValue : 0 PS C:\Users\Administrator.BRIDGE> cd \ps PS C:\ps> C:\ps\bulkservers.ps1 servers.txt galileo columbus copernicus PS C:\ps> C:\ps\bulkservers2.ps1 servers.txt CSName caption CSDVersion ------ ------- ---------- GALILEO Microsoft® Windows Server® 2008 Standard Service Pack 1 CSName caption CSDVersion ------ ------- ---------- COLUMBUS Microsoft® Windows Server® 2008 Standard Service Pack 1 CSName caption CSDVersion ------ ------- ---------- COPERNICUS Microsoft® Windows Server® 2008 Standard Service Pack 1 PS C:\ps> C:\ps\bulkservers3.ps1 servers.txt PS C:\ps> del output.csv PS C:\ps> C:\ps\bulkservers4.ps1 servers.txt PS C:\ps> Gwmi  namespace  root\virtualization  list __NotifyStatus __ExtendedStatus __SecurityRelatedClass __Trustee __NTLMUser9X __ACE __SecurityDescriptor __PARAMETERS __SystemClass __ProviderRegistration __EventProviderRegistration __ObjectProviderRegistration __ClassProviderRegistration __InstanceProviderRegistration __MethodProviderRegistration __PropertyProviderRegistration __EventConsumerProviderRegistration __thisNAMESPACE __NAMESPACE __IndicationRelated __FilterToConsumerBinding __EventConsumer __AggregateEvent __TimerNextFiring __EventFilter __Event __NamespaceOperationEvent __NamespaceModificationEvent __NamespaceDeletionEvent __NamespaceCreationEvent __ClassOperationEvent __ClassDeletionEvent __ClassModificationEvent __ClassCreationEvent __InstanceOperationEvent __InstanceCreationEvent __MethodInvocationEvent __InstanceModificationEvent __InstanceDeletionEvent __TimerEvent __ExtrinsicEvent __SystemEvent __EventDroppedEvent __EventQueueOverflowEvent __QOSFailureEvent __ConsumerFailureEvent __EventGenerator __TimerInstruction __AbsoluteTimerInstruction __IntervalTimerInstruction __Provider __Win32Provider __SystemSecurity CIM_ElementSettingData Msvm_NetworkElementSettingData Msvm_ElementSettingData Msvm_LastAppliedSettingData Msvm_PreviousSettingData CIM_ServiceAffectsElement Msvm_ServiceAffectsElement CIM_ElementCapabilities CIM_ElementAllocationCapabilities Msvm_ElementCapabilities CIM_Error Msvm_Error CIM_Component CIM_ServiceComponent CIM_SwitchServiceTransparentBridging CIM_SystemComponent CIM_SystemBIOS Msvm_SystemBIOS CIM_SystemDevice Msvm_SystemDevice CIM_VirtualSystemSettingDataComponent Msvm_VirtualSystemSettingDataComponent CIM_ConcreteComponent Msvm_ConcreteComponent CIM_SettingsDefineCapabilities Msvm_SettingsDefineCapabilities Msvm_SummaryInformation CIM_PreviousSettingData Msvm_VirtualizationComponentRegistra... Msvm_VirtualSystemResourceRegistration Msvm_ResourcePoolRegistration CIM_SettingsDefineState Msvm_SettingsDefineState Msvm_VirtualizationComponent Msvm_ResourcePoolComponent Msvm_VirtualSystemResourceComponent CIM_ManagedElement CIM_SettingData CIM_VLANEndpointSettingData Msvm_VLANEndpointSettingData Msvm_VirtualSystemManagementServiceS... Msvm_VirtualSystemGlobalSettingData CIM_VirtualSystemSettingData Msvm_VirtualSystemSettingData CIM_ResourceAllocationSettingData Msvm_SyntheticEthernetPortSettingData Msvm_MemorySettingData Msvm_VssComponentSettingData Msvm_ShutdownComponentSettingData Msvm_ProcessorSettingData Msvm_ResourceAllocationSettingData Msvm_EmulatedEthernetPortSettingData Msvm_TimeSyncComponentSettingData Msvm_HeartbeatComponentSettingData Msvm_KvpExchangeComponentSettingData CIM_ResourcePoolSettingData CIM_ManagedSystemElement CIM_LogicalElement CIM_ResourcePool Msvm_ProcessorPool Msvm_ResourcePool CIM_Job CIM_ConcreteJob Msvm_NetworkJob Msvm_ConcreteJob Msvm_StorageJob CIM_EnabledLogicalElement CIM_System CIM_ComputerSystem Msvm_VirtualSwitch Msvm_ComputerSystem CIM_LogicalDevice Msvm_TimeSyncComponent Msvm_HeartbeatComponent CIM_UserDevice CIM_Display CIM_DesktopMonitor Msvm_Keyboard CIM_PointingDevice Msvm_Ps2Mouse Msvm_SyntheticMouse CIM_ProtocolController CIM_SCSIProtocolController Msvm_SCSIProtocolController Msvm_KvpExchangeComponent Msvm_VssComponent Msvm_ShutdownComponent CIM_MediaAccessDevice CIM_DiskDrive Msvm_DiskDrive CIM_DisketteDrive Msvm_DisketteDrive CIM_TapeDrive CIM_CDROMDrive CIM_DVDDrive Msvm_DVDDrive CIM_VideoHead Msvm_VideoHead CIM_Controller CIM_IDEController Msvm_IDEController CIM_DisplayController Msvm_S3DisplayController Msvm_SyntheticDisplayController CIM_SerialController Msvm_SerialController Msvm_DisketteController CIM_LogicalPort CIM_NetworkPort CIM_EthernetPort Msvm_InternalEthernetPort Msvm_SyntheticEthernetPort Msvm_ExternalEthernetPort Msvm_EmulatedEthernetPort Msvm_SerialPort CIM_StorageExtent CIM_Memory Msvm_Memory CIM_LogicalDisk Msvm_LogicalDisk CIM_Processor Msvm_Processor Msvm_TerminalConnection CIM_Service CIM_NetworkService CIM_ForwardingService CIM_SwitchService CIM_TransparentBridgingService Msvm_TransparentBridgingService Msvm_VirtualSwitchManagementService Msvm_ImageManagementService Msvm_TerminalService CIM_ResourcePoolConfigurationService CIM_VirtualSystemManagementService Msvm_VirtualSystemManagementService CIM_ServiceAccessPoint CIM_ProtocolEndpoint CIM_LANEndpoint Msvm_VmLANEndpoint Msvm_SwitchLANEndpoint CIM_SwitchPort Msvm_SwitchPort CIM_VLANEndpoint Msvm_VLANEndpoint CIM_DynamicForwardingEntry Msvm_DynamicForwardingEntry Msvm_MountedStorageImage CIM_SoftwareElement CIM_BIOSElement Msvm_BIOSElement Msvm_KvpExchangeDataItem CIM_Capabilities CIM_ResourcePoolConfigurationCapabil... CIM_AllocationCapabilities Msvm_AllocationCapabilities CIM_LastAppliedSettingData CIM_Dependency CIM_SAPSAPDependency CIM_ActiveConnection Msvm_ActiveConnection CIM_BindsTo Msvm_BindsTo CIM_SwitchPortDynamicForwarding Msvm_SwitchPortDynamicForwarding CIM_DeviceAllocatedFromPool Msvm_ParentChildSettingData CIM_ProtocolControllerForDevice CIM_ProtocolControllerForUnit Msvm_ProtocolControllerForUnit CIM_DeviceSAPImplementation Msvm_GlobalEthernetPortSAPImplementa... Msvm_DeviceSAPImplementation CIM_RecordedSetting CIM_ElementAllocatedFromPool Msvm_ElementAllocatedFromPool CIM_HostedDependency CIM_PortOnDevice Msvm_SerialPortOnSerialController Msvm_SystemTerminalConnection CIM_HostedService Msvm_HostedService Msvm_HostedSwitchService CIM_VideoHeadOnController Msvm_VideoHeadOnController Msvm_HostedDependency CIM_HostedAccessPoint Msvm_HostedAccessPoint CIM_ServiceSAPDependency CIM_ForwardsAmong CIM_SwitchesAmong CIM_DeviceConnection CIM_ControlledBy Msvm_ControlledBy CIM_ResourceAllocationFromPool Msvm_ResourceAllocationFromPool CIM_PoolAllocatedFromPool CIM_MediaPresent Msvm_MediaPresent CIM_TransparentBridgingDynamicForwar... Msvm_TransparentBridgingDynamicForwa... Msvm_ResourceTypeDefinition Msvm_VirtualHardDiskInfo CIM_AffectedJobElement Msvm_AffectedStorageJobElement Msvm_AffectedJobElement PS C:\ps> Gwmi  namespace  root\virtualization  class msvm_computersystem | get-member TypeName: System.Management.ManagementObject#root\virtualization\Msvm_Comput erSystem Name MemberType Definition ---- ---------- ---------- RequestStateChange Method System.Management.ManagementBaseO... SetPowerState Method System.Management.ManagementBaseO... AssignedNumaNodeList Property System.UInt16[] AssignedNumaNodeL... Caption Property System.String Caption {get;set;} CreationClassName Property System.String CreationClassName {... Dedicated Property System.UInt16[] Dedicated {get;set;} Description Property System.String Description {get;set;} ElementName Property System.String ElementName {get;set;} EnabledDefault Property System.UInt16 EnabledDefault {get... EnabledState Property System.UInt16 EnabledState {get;s... HealthState Property System.UInt16 HealthState {get;set;} IdentifyingDescriptions Property System.String[] IdentifyingDescri... InstallDate Property System.String InstallDate {get;set;} Name Property System.String Name {get;set;} NameFormat Property System.String NameFormat {get;set;} OnTimeInMilliseconds Property System.UInt64 OnTimeInMillisecond... OperationalStatus Property System.UInt16[] OperationalStatus... OtherDedicatedDescriptions Property System.String[] OtherDedicatedDes... OtherEnabledState Property System.String OtherEnabledState {... OtherIdentifyingInfo Property System.String[] OtherIdentifyingI... PowerManagementCapabilities Property System.UInt16[] PowerManagementCa... PrimaryOwnerContact Property System.String PrimaryOwnerContact... PrimaryOwnerName Property System.String PrimaryOwnerName {g... ProcessID Property System.UInt32 ProcessID {get;set;} RequestedState Property System.UInt16 RequestedState {get... ResetCapability Property System.UInt16 ResetCapability {ge... Roles Property System.String[] Roles {get;set;} Status Property System.String Status {get;set;} StatusDescriptions Property System.String[] StatusDescription... TimeOfLastConfigurationChange Property System.String TimeOfLastConfigura... TimeOfLastStateChange Property System.String TimeOfLastStateChan... __CLASS Property System.String __CLASS {get;set;} __DERIVATION Property System.String[] __DERIVATION {get... __DYNASTY Property System.String __DYNASTY {get;set;} __GENUS Property System.Int32 __GENUS {get;set;} __NAMESPACE Property System.String __NAMESPACE {get;set;} __PATH Property System.String __PATH {get;set;} __PROPERTY_COUNT Property System.Int32 __PROPERTY_COUNT {ge... __RELPATH Property System.String __RELPATH {get;set;} __SERVER Property System.String __SERVER {get;set;} __SUPERCLASS Property System.String __SUPERCLASS {get;s... ConvertFromDateTime ScriptMethod System.Object ConvertFromDateTime(); ConvertToDateTime ScriptMethod System.Object ConvertToDateTime(); Delete ScriptMethod System.Object Delete(); GetType ScriptMethod System.Object GetType(); Put ScriptMethod System.Object Put(); PS C:\ps> $vms = Gwmi  namespace  root\virtualization  class msvm_computersystem PS C:\ps> $vms | format-table elementname, enabledstate elementname enabledstate ----------- ------------ GALILEO 2 Columbus 2 Copernicus 2 PS C:\ps> $vms | format-table elementname, enabledstate elementname enabledstate ----------- ------------ GALILEO 2 Columbus 2 Copernicus 2 PS C:\ps> $vms = Gwmi  namespace  root\virtualization  class msvm_computersystem PS C:\ps> $vms | format-table elementname, enabledstate elementname enabledstate ----------- ------------ GALILEO 2 Columbus 32768 Copernicus 2 PS C:\ps> $query = "SELECT * FROM Msvm_ComputerSystem WHERE ElementName='Columbus'" PS C:\ps> $VM = get-wmiobject -query $query -namespace "root\virtualization" -computername "." PS C:\ps> $VM.RequestStateChange(2) __GENUS : 2 __CLASS : __PARAMETERS __SUPERCLASS : __DYNASTY : __PARAMETERS __RELPATH : __PROPERTY_COUNT : 2 __DERIVATION : {} __SERVER : __NAMESPACE : __PATH : Job : \\GALILEO\root\virtualization:Msvm_ConcreteJob.InstanceID="5 AC692BC-474B-4788-A12F-AC0CE46232B4" ReturnValue : 4096