List users from specific groups
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
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.