on-internet
← Community

List users from specific groups

Stack Overflow ·

Good morning all, I am currentlycovering my line manager. And I need to modify an existing to VBScript, to pull users from specific groups in AD (Commercial, Finance, HR, IT, Marketing, Operations, and Property): Const ForReading = 1,ForWriting = 2,ForAppending = 8 StartFilename = "AD groups.txt" Set objFSO = CreateObject("Scripting.FileSystemObject") Set objTextFile = objFSO.OpenTextFile(StartFilename,ForAppending, True) strDomainName = inputbox("Enter Domain Name","AD Billing","") Set objDomain = GetObject("WinNT://" & strDomainName) For each objDomainObject in objDomain If objDomainObject.c

Comments

Sign in or sign up to comment and upvote.

No comments yet.