Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Vista Newsgroups > Vista security

Win32_Tpm class

Closed Thread
 
Thread Tools Display Modes
Old 12-27-2006   #1 (permalink)
Dan
Guest


 

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
Old 01-01-2007   #2 (permalink)
Jamie Hunter [MS]
Guest


 

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


Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Class Not Registered fnggyz Vista General 1 02-11-2008 05:34 AM
Creating a WMI class urkec PowerShell 5 01-29-2008 04:16 PM
wmi win32_scheduledjob class Karl-Ernst.Prankel PowerShell 5 11-03-2006 08:44 AM
PowerShell Class Hayato Iriumi PowerShell 4 11-02-2006 11:18 PM








Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50