Print this post Print this post

How to add computers do Active Directory remotely

How to add computers do Active Directory remotely? Sometimes we must add many computers to Active Directory and we don?t have time to do this or computers are located in other City. This post explains how to add computers to Active Directory remotely without touch this computers. Step 1. Prepare text file contains computers IP [...]

Print this post Print this post

Active Directory user logon script

You can assign logon script to a certain user or configure it by Group Policy. Use “Profile” tab from user’s properties in Active Directory console (ADUC). It applies to workstations from operating systems like: Windows 95, Windows 98, Windows ME, Windows NT. Group Policy script allows for a user logon script configuration for operating systems [...]

Print this post Print this post

How to display manager name for AD users

Script below display manager name for AD users On Error Resume Next Const ADS_SCOPE_SUBTREE = 2 dtmCreationDate1 = “20070701000000.0Z” dtmCreationDate2 = “20070731000000.0Z” Set objConnection = CreateObject(“ADODB.Connection”) Set objCommand = CreateObject(“ADODB.Command”) objConnection.Provider = “ADsDSOObject” objConnection.Open “Active Directory Provider” Set objCommand.ActiveConnection = objConnection objCommand.Properties(“Page Size”) = 1000 objCommand.Properties(“Searchscope”) = ADS_SCOPE_SUBTREE objCommand.CommandText = _ “SELECT Name,Manager FROM ‘LDAP://dc=domainname,dc=domain’ [...]