![]() ![]() Something like Map Network Drives would be apt. Choose ‘Create a GPO in this domain, and Link it here’ Give your GPO a descriptive name. O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers. If you’re setting this up for the first time, right-click on the domain or the specific Organizational Unit (OU) you want the GPO to apply to. All you need to do is right-click on Group Policy Objects and choose New. The GPMC allows you to create a GPO that. Get Active Directory Cookbook now with the O’Reilly learning platform. Creating a GPO is very similar to creating a user account within Active Directory. The GPO is associated with selected Active Directory containers, such as sites, domains or organizational units (OU). ![]() ou=Workstations,dc=rallencorp,dc=com ' - END CONFIGURATION - strBaseDN = " " strFilter = "(&(objectcategory=grouppolicycontainer)" & _ "(objectclass=grouppolicycontainer)" & _ "(displayname=" & strGPO & ")) " strAttrs = "ADsPath " strScope = "OneLevel" set objConn = CreateObject("ADODB.Connection") objConn.Provider = "ADsDSOObject" objConn.Open "Active Directory Provider" set objRS = objConn.Execute(strBaseDN & strFilter & strAttrs & strScope) if objRS.EOF TRUE then objRS.MoveFirst end if if objRS.RecordCount = 1 then strGPOADsPath = objRS.Fields(0).Value WScript.Echo "GPO Found: " & strGPOADsPath elseif objRS.RecordCount = 0 then WScript.Echo "Did not founding. Using VBScript ' This code links a GPO to an OU in the specified domain ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |