Location: Mail List

Ads

Skyscraper

The GPTalk Mailing List

The GPTALK mailing list is where you can send and receive email related to Windows Group Policy. You must subscribe to the list to send and receive mail from the list. The purpose of the list is to provide a forum for asking and answering technical questions related to Group Policy. Any question is fair game as long as it is related to Windows Group Policy.  The Archives for this list can be found on this page.

 

List Posts

Subject: RE: [gptalk] Report in Policy Objects
Prev Next
You are not authorized to post a reply.

AuthorMessages
dmareliaUser is Offline

Posts:394

12/16/2009 2:06 PM  
Kevin-
I think the problem is that GetWMIFilter() returns an object, not a string, as the other properties do. I don't have a place to test this, but I think what you want is something like the following:

Set Filter = gpmgpo.getwmifilter
Wscript.Echo Filter.Description
Wscript.Echo Filter.Name
Wscript.Echo Filter.Path

Darren

From: xxxxxxxxxxxxxxxx [mailto:xxxxxxxxxxxxxxxx] On Behalf Of Wornell, Kevin (Dallas)
Sent: Monday, November 09, 2009 10:40 AM
To: xxxxxxxxxxxxxxxx
Subject: [gptalk] Report in Policy Objects

I am trying to modify the default 'ListAllGPOs.wsf' script to also show the applied WMI filter if it exists. Does anyone know the proper element to use? The GetWMIFilter does not work. The section I am trying to modify is show below.

Function PrintGPOInfo(GPMGPO)
WScript.Echo "Name:" & vbTab & GPMGPO.DisplayName
WScript.Echo "ID:" & vbTab & GPMGPO.ID & VbCrLf
WScript.Echo "WMI:" & vbTab & gpmgpo.getwmifilter & VbCrLf
End Function

Kevin
Kevin Wornell
Office Technology Group
Notice of Confidentiality
This transmission contains information that may be confidential. It has been prepared for the sole and exclusive use of the intended recipient and on the basis agreed with that person. If you are not the intended recipient of the message (or authorized to receive it for the intended recipient), you should notify us immediately; you should delete it from your system and may not disclose its contents to anyone else.

This e-mail has come to you from Watson Wyatt & Company.

You are not authorized to post a reply.
Forums >GPTalk >GPTalk Mailing List > RE: [gptalk] Report in Policy Objects



ActiveForums 3.7

Members

MembershipMembership:
Latest New UserLatest:larrys
New TodayNew Today:0
New YesterdayNew Yesterday:0
User CountOverall:1340

People OnlinePeople Online:
VisitorsVisitors:0
MembersMembers:0
TotalTotal:0

Online NowOnline Now:

Ads

Banner Inv
Copyright 2009 by GPOGUY.COM
Terms Of Use