Author: brad
Date: 2006-06-24 20:29:42 +0000 (Sat, 24 Jun 2006)
New Revision: 16502

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16502

Log:
Added a description of the script and a copyright statement.
Removed an unused parameter.


Modified:
   branches/SOC/bnh/vbscript/win_setup.wsf


Changeset:
Modified: branches/SOC/bnh/vbscript/win_setup.wsf
===================================================================
--- branches/SOC/bnh/vbscript/win_setup.wsf     2006-06-24 20:06:01 UTC (rev 
16501)
+++ branches/SOC/bnh/vbscript/win_setup.wsf     2006-06-24 20:29:42 UTC (rev 
16502)
@@ -2,8 +2,13 @@
 <job id=win_setup>
 <script language="VBScript" src="common.vbs">
 
+' A VBScript to create a local admin user and set their password, 
+' set the windows hosts' workgroup and hostname, and enable and start the 
+' telnet server.
+' Copyright Brad Henry <[EMAIL PROTECTED]> 2006
+' Released under the GNU GPL v2 or later.
+
 const USAGE_STATEMENT = "Usage: cscript win_setup.wsf /username:<username> 
/password:<password> /hostname:<hostname> /workgroup:<workgroup>"
-const DEFAULT_BASEDIR = "C:\smbtorture_root"
 
 ' Use WMI to set the local system's hostname.
 function setup_hostname(adminuser, adminpass, hostname)
@@ -64,7 +69,6 @@
                exit function
        end if
 
-       ' Set the workgroup name.
        error_code = local_machine.joinDomainOrWorkgroup(workgroup, adminpass, 
adminuser)
        if error_code <> 0 then
                setup_workgroup = error_code

Reply via email to