![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Win32_Tpm class I am trying to do some testing with WMI scripting of the TPM. There are a few resources, but none with concrete code samples, and I am having a problem with the scripts I've tried using the Win32_Tpm class. My instances of the Win32_Tpm class are always null. Finally I broke down and simply tried to find the class, and I cannot even do that. I used the following script: ====================================== strComputer = "." strNamespace = "\root" Set objSWbemServices = GetObject("winmgmts:\\" & strComputer & strNamespace) Set colClasses = objSWbemServices.SubClassesOf() For Each objClass in colClasses Wscript.Echo objClass.Path_.Path Next ====================================== I ran the script and piped it to -> findstr /I "Win32_Tpm" but nothing was returned. It seems like the Win32_Tpm class is missing entirely, but that can't be right can it? This is a fresh install of Windows Vista 64-bit (the latest from the MSDN), I am logged into an account that is in the Administrators group, and I am puzzled. Thanks |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Win32_Tpm class Hi Dan, did you look at the "manage-bde.wsf" script? This uses the Win32_Tpm class and is a good reference sample. - Jamie Hunter [MS] "Dan" <Dan@discussions.microsoft.com> wrote in message news:70F38274-C55E-427D-937E-4BDB518457F1@microsoft.com... >I am trying to do some testing with WMI scripting of the TPM. There are a > few resources, but none with concrete code samples, and I am having a > problem > with the scripts I've tried using the Win32_Tpm class. My instances of > the > Win32_Tpm class are always null. Finally I broke down and simply tried to > find the class, and I cannot even do that. I used the following script: > ====================================== > strComputer = "." > strNamespace = "\root" > > Set objSWbemServices = GetObject("winmgmts:\\" & strComputer & > strNamespace) > > Set colClasses = objSWbemServices.SubClassesOf() > For Each objClass in colClasses > Wscript.Echo objClass.Path_.Path > Next > ====================================== > > I ran the script and piped it to -> findstr /I "Win32_Tpm" but nothing was > returned. It seems like the Win32_Tpm class is missing entirely, but that > can't be right can it? This is a fresh install of Windows Vista 64-bit > (the > latest from the MSDN), I am logged into an account that is in the > Administrators group, and I am puzzled. > > Thanks |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| When a class is both an inherited class of another, and alsoimplements an interface method | .NET General | |||
| win32_pingstatus class / dns class | PowerShell | |||
| add module & add class | .NET General | |||
| What goes with the WMI Win32_Share class | PowerShell | |||
| create my own class | PowerShell | |||