Script

Script to reset all active directory users passwords in an organizational unit OU

This will replace all the users passwords in UserOU with Newpassword! Update the italicised items to suit you domain Option Explicit Dim objOU, objUser Dim strPassword Dim intCounter, intAccValue, intPwdValue ‘———————— strPassword = “Newpassword!” intAccValue = 544 intCounter = 0 set objOU =GetObject(“LDAP://OU=UserOU,OU=MyCompanyOU,C=MyDomain,DC=LOCAL“) For each objUser in objOU If objUser.class=”user” then objUser.SetPassword strPassword objUser.SetInfo objUser.Put.

Script to backup Asterisk folders

The key folders to backup for asterisk are /etc/asterisk /var/log/asterisk /var/lib/asterisk /var/spool/asterisk /usr/lib/asterisk /var/lib/mysql /usr/local/tomcat/webapps You can use this script to back them up into one gz file. ora=`date ‘+%Y.%m.%d-%H.%M.%S’` tar zcf etc-asterisk-$ora.tar.gz /etc/asterisk tar zcf var-log-asterisk-$ora.tar.gz /var/log/asterisk tar zcf var-lib-asterisk-$ora.tar.gz /var/lib/asterisk tar zcf var-spool-asterisk-$ora.tar.gz /var/spool/asterisk tar zcf usr-lib-asterisk-$ora.tar.gz /usr/lib/asterisk tar zcf var-lib-mysql-$ora.tar.gz /var/lib/mysql tar.

Script to create a signature file from Active Directory field entries

Do save having to manually edit and create uniform signature files for users, you can implement this VBS script which gathers information from Active directory about the user and inserts it into the appropriate signature folder on their system. At the bottom you will find the signature.htm and signature.txt files to edit and save –