To synchronize the computer's clock with that of another computer or domain, use net time command, for example, net time \\chicagotech /set /yes.
Example of VBScript - Mapping a network drive based on the group
'Map a network drive if the user is a member of the group.
'Alert the user if the drive cannot be mapped.
If IsMember (objUser, "accounting") Then
If Not MapDrive ("Q:", "\\chicagotech\data") Then
MsgBox "Unable to Map Q: to AdminShare"
End If
Example of batch file - make a network drive
net use h: \\hostname\sharedname