473,491 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Group Policy / WMI filter

1 New Member
I would like use wmi filter to apply Group policy to only members of certain
active directory workstations group.

I have some basic script which list all members of group, but I do not know
how to transport it to wmi filter :

On Error Resume Next
Set objGroup = GetObject _
("LDAP://cn=Accountants,ou=Accounting,dc=fabrikam,dc=com")
For Each objUser in objGroup.Members
Wscript.Echo objUser.Name
Next

Thank you for help.
--
Daniel
May 14 '07 #1
0 2013

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2993
by: Angela | last post by:
This question is in reference to another question I posted titled, "This advertised application will not be installed because it might be unsafe". The error I am getting says I need to change...
4
3550
by: Chris Thunell | last post by:
Where in GroupPolicy can you adjust DotNet framework security? Thanks! cthunell@pierceassociates.com Chris Thunell
9
10806
by: Terry E Dow | last post by:
Howdy, I am having trouble with the objectCategory=group member.Count attribute. I get one of three counts, a number between 1-999, no member (does not contain member property), or 0. Using...
3
4415
by: shiv | last post by:
Hi all, I am able to read groups in the domain but not able to read the members within each group. can somebody help? here goes the code DirectoryEntry m_obDirEntry=new DirectoryEntry...
0
1054
by: Johnny Drama | last post by:
Hi, My WinForms-based application occasionally reads/writes data from/to the user's profile directory. I use the following logic to determine where the user's profile directory is located: ...
0
9931
by: mrmmills | last post by:
OK I want to make sure a GPO doesnt get applied to a user (my boss) in Group Policy. I could make his own OU but for the purposes of me learning WMI lets not consider that an option. I am able to...
3
2090
by: Danny J. Lesandrini | last post by:
-- previously posted on newsgroup :: <microsoft.public.access-- Has anyone else noticed this behavior? Focus jumping from current cell to upper left in embedded datasheet. If not, would you be...
1
8545
by: rrangaprasad | last post by:
i'm trying to create a 'kiosk' type of workstation, based on a particular login (where the desktop is pretty much locked and the user won't have access to run commands, change taskbar, etc). Now, the...
2
26845
by: Jim in Arizona | last post by:
I'm trying to do a check to see if a specific active directory user account exists in active directory AND a specific group. I can't seem to get the filter down right. I can do this to find a...
0
6978
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7154
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6858
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4578
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3086
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3076
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1392
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
633
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
280
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.