Can I call a vbscript from a dos batch file?
I am creating Windows 2000 and XP unattended installations.
The way I have things set up is that I boot the subject computer from a dos
based network boot disk.
First the user is given the option to choose the Student or Teacher domain.
Then the user is given the option to install either XP or 2000.
I'd also like the user to be able to enter whatever the end computer's name
should be (as a variable I guess).
Then a vbscript residing on the appropriate server would be called.
That script would read what the computers name is supposed to be, delete an
existing account in Active Directory if it exists, and then create the
computer account.
Is this possible?

Thanks,
Jeremy

Re: Call a vbscript file from a dos batch file? by joseomjr

joseomjr
Fri Feb 23 17:40:23 CST 2007

cscript \\server\share\vbscript.vbs

On Feb 23, 3:10 pm, "Jeremy" <j...@hotmail.com> wrote:
> Can I call a vbscript from a dos batch file?
> I am creating Windows 2000 and XP unattended installations.
> The way I have things set up is that I boot the subject computer from a dos
> based network boot disk.
> First the user is given the option to choose the Student or Teacher domain.
> Then the user is given the option to install either XP or 2000.
> I'd also like the user to be able to enter whatever the end computer's name
> should be (as a variable I guess).
> Then a vbscript residing on the appropriate server would be called.
> That script would read what the computers name is supposed to be, delete an
> existing account in Active Directory if it exists, and then create the
> computer account.
> Is this possible?
>
> Thanks,
> Jeremy



Re: Call a vbscript file from a dos batch file? by Jeremy

Jeremy
Fri Feb 23 18:07:05 CST 2007

Thanks! But I was thinking, this probably won't work from a dos boot disk?
I may have to use something like psexec.exe? Maybe I can copy the cscript
executable to the boot disk?
<joseomjr@gmail.com> wrote in message
news:1172274022.893092.29710@v33g2000cwv.googlegroups.com...
> cscript \\server\share\vbscript.vbs
>
> On Feb 23, 3:10 pm, "Jeremy" <j...@hotmail.com> wrote:
>> Can I call a vbscript from a dos batch file?
>> I am creating Windows 2000 and XP unattended installations.
>> The way I have things set up is that I boot the subject computer from a
>> dos
>> based network boot disk.
>> First the user is given the option to choose the Student or Teacher
>> domain.
>> Then the user is given the option to install either XP or 2000.
>> I'd also like the user to be able to enter whatever the end computer's
>> name
>> should be (as a variable I guess).
>> Then a vbscript residing on the appropriate server would be called.
>> That script would read what the computers name is supposed to be, delete
>> an
>> existing account in Active Directory if it exists, and then create the
>> computer account.
>> Is this possible?
>>
>> Thanks,
>> Jeremy
>
>


Re: Call a vbscript file from a dos batch file? by Michael

Michael
Fri Feb 23 18:57:23 CST 2007

Jeremy wrote:
> Thanks! But I was thinking, this probably won't work from a dos boot
> disk? I may have to use something like psexec.exe? Maybe I can copy
> the cscript executable to the boot disk?
> <joseomjr@gmail.com> wrote in message
> news:1172274022.893092.29710@v33g2000cwv.googlegroups.com...
>> cscript \\server\share\vbscript.vbs
>>
>> On Feb 23, 3:10 pm, "Jeremy" <j...@hotmail.com> wrote:
>>> Can I call a vbscript from a dos batch file?
>>> I am creating Windows 2000 and XP unattended installations.
>>> The way I have things set up is that I boot the subject computer
>>> from a dos
>>> based network boot disk.
>>> First the user is given the option to choose the Student or Teacher
>>> domain.
>>> Then the user is given the option to install either XP or 2000.
>>> I'd also like the user to be able to enter whatever the end
>>> computer's name
>>> should be (as a variable I guess).
>>> Then a vbscript residing on the appropriate server would be called.
>>> That script would read what the computers name is supposed to be,
>>> delete an
>>> existing account in Active Directory if it exists, and then create
>>> the computer account.
>>> Is this possible?
>>>

Cscript won't work from a DOS boot disk environment, only from an actual
Windows environment with WSH properly installed and available.

--
Michael Harris
Microsoft.MVP.Scripting



Re: Call a vbscript file from a dos batch file? by Jeremy

Jeremy
Sat Feb 24 16:12:42 CST 2007

Thanks Michael. How about dsrm and dsmod? Can they run from DOS?

"Michael Harris (MVP)" <mikhar.at.mvps.dot.org> wrote in message
news:eogLA76VHHA.600@TK2MSFTNGP05.phx.gbl...
> Jeremy wrote:
>> Thanks! But I was thinking, this probably won't work from a dos boot
>> disk? I may have to use something like psexec.exe? Maybe I can copy
>> the cscript executable to the boot disk?
>> <joseomjr@gmail.com> wrote in message
>> news:1172274022.893092.29710@v33g2000cwv.googlegroups.com...
>>> cscript \\server\share\vbscript.vbs
>>>
>>> On Feb 23, 3:10 pm, "Jeremy" <j...@hotmail.com> wrote:
>>>> Can I call a vbscript from a dos batch file?
>>>> I am creating Windows 2000 and XP unattended installations.
>>>> The way I have things set up is that I boot the subject computer
>>>> from a dos
>>>> based network boot disk.
>>>> First the user is given the option to choose the Student or Teacher
>>>> domain.
>>>> Then the user is given the option to install either XP or 2000.
>>>> I'd also like the user to be able to enter whatever the end
>>>> computer's name
>>>> should be (as a variable I guess).
>>>> Then a vbscript residing on the appropriate server would be called.
>>>> That script would read what the computers name is supposed to be,
>>>> delete an
>>>> existing account in Active Directory if it exists, and then create
>>>> the computer account.
>>>> Is this possible?
>>>>
>
> Cscript won't work from a DOS boot disk environment, only from an actual
> Windows environment with WSH properly installed and available.
>
> --
> Michael Harris
> Microsoft.MVP.Scripting
>
>


Re: Call a vbscript file from a dos batch file? by E

E
Sat Feb 24 18:23:03 CST 2007

If you are adventurous check out BartPE. Their are many plug-ins for WMI. This will give you a
boot CD or thumb drive (if supported).

Jeremy wrote:
> Thanks Michael. How about dsrm and dsmod? Can they run from DOS?
>
> "Michael Harris (MVP)" <mikhar.at.mvps.dot.org> wrote in message
> news:eogLA76VHHA.600@TK2MSFTNGP05.phx.gbl...
>

Re: Call a vbscript file from a dos batch file? by Jeremy

Jeremy
Sun Feb 25 11:26:15 CST 2007

E C H,

I would like to be able to use BartPE (or WinPE2, if it supports XP and 2K
installs because it's free) but most of our student's computers don't have
CD ROMS, only floppy drives. And I don't think you can boot in PE from a
floppy? But am I wrong?
They do have USB, but I don't know if there BIOS has the ability to boot
from USB. I'll have to check into that?

Jeremy

"E C H (He of too much code)" <glasswalkertheurge@juno.com> wrote in message
news:eJdbhMHWHHA.4632@TK2MSFTNGP04.phx.gbl...
> If you are adventurous check out BartPE. Their are many plug-ins for WMI.
> This will give you a boot CD or thumb drive (if supported).
>
> Jeremy wrote:
>> Thanks Michael. How about dsrm and dsmod? Can they run from DOS?
>>
>> "Michael Harris (MVP)" <mikhar.at.mvps.dot.org> wrote in message
>> news:eogLA76VHHA.600@TK2MSFTNGP05.phx.gbl...
>>