I am using your code and i added a network printer & join a domain option also but i keep gettin errors... maybe i am not using the Function command correctly... can you help me buddy.. Below i have my code that i used to create vbs script to do those command, but i want to but those into your .hta file Add Network Printer Code ----------------------------------------- Set WshNetwork = CreateObject("WScript.Network") strFullPath = Inputbox("Please enter the full path of your network printer here:" _ "Example:\\extremeserver01\delllase","Enter Printer Path") strPrintSrvrPath = "\\<servername>\" strPrinterName = Inputbox("Please enter the name of your network printer here:" _ "Example:delllase","Enter Printer Name") If strFullPath = "" Then strFullPath = strPrintSrvrPath & strPrinterName End If WshNetwork.AddWindowsPrinterConnection strFullPath Msgbox "Printer " & strFullPath & " Installed" Join A Domain Code ----------------------------------------- Name = InputBox("Enter the new computer name below and click OK to Continue Example:laptop1","Rename: Step 1") Password = "i8bobokh" Username = "aayobi" Set objWMIService = GetObject("Winmgmts:root\cimv2") ' Call always gets only one Win32_ComputerSystem object. For Each objComputer in _ objWMIService.InstancesOf("Win32_ComputerSystem") Return = objComputer.rename(Name,Password,User) If Return <> 0 Then WScript.Echo "Rename failed. Error = " & Err.Number Else WScript.Echo "Rename succeeded." & " Reboot for new name to go into effect" End If Next DomainName = InputBox("Enter the Domain to join this computer to and click OK to continue","Rename: Step 1") DomainPassword = "i8bobokh" DomainUsername = "aayobi" Set objWMIService = GetObject("Winmgmts:root\cimv2") ' Call always gets only one Win32_ComputerSystem object. For Each objComputer in _ objWMIService.InstancesOf("Win32_ComputerSystem") Return = objComputer.JoinDomainOrWorkgroup(DomainName,DomainPassword,DomainUsername) If Return <> 0 Then WScript.Echo "Rename failed. Error = " & Err.Number Else WScript.Echo "Rename succeeded." & " Reboot for new name to go into effect" End If Next ------------------------------------------------- Thanks again