Question Locked

cmdlines.txt

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,

I have a batch file (which stretches the wall paper and turns off the Windows Firewall:
Contents of the batch file:

REGEDIT /S WALLPAPERSTRETCH.REG

TURNOFFFIREWALL.VBS

). When I run this batch file manually, it does exactly what I want it to do, but as soon as I call this file through cmdlines.txt of the sysprep.inf file, it fails. I don't get any error message for the wallpaper but for the firewall I get an error message saying
"There are no more endpoints available from the endpoint mapper."

Any help is greatly appreciated

Regards.

9 replies

by the scummy one

to the 2 files properly? throw a pause command after it, see if any errors pop up

Mostly I would think 'cannot find file' errors

by copycobol

Hi,

Thanks for the quick reply, I have already tried the pause command.

No errors for the regedit /s Wallpaperstretch.vbs
(Doesn't work)

For the vbscript i.e. cscript TurnOffFirewall.vbs it says
"There are no more endpoints available from the endpoint mapper."

I am a novice in vbscript and so I have just taken this script from the microsoft website.

http://www.microsoft.com/technet/scriptcenter/resources/qanda/sept05/hey0916.mspx

by copycobol

Hi Pond Scum,

I think as the batch file works manually, there is nothing wrong with the batch file, it can be way I call it in the cmdlines.txt that can be causing the problem or it can be something else.

Contents of the batch file temp.bat

regedit /s WallpaperStretch.reg
cscript.exe TurnOffFirewall.vbs

Contents of the cmdlines.txt

[commands]
"C:\sysprep\i386\$oem$\temp.bat"

Thanks very much for the quick reply.

Regards.

by the scummy one

trying to run a vbs script here. I am not familiar with the cmdlines.txt or sysprep, but according to MS, it was intended for reg changes and many programs will fail to install.
If you removed the .vbs script, and added a .reg script, it should work. Other than that, I will leave this open to someone more familiar with this setup.

by seanferd

along with the commands available for setupx.dll

by copycobol

Hi Guys,

I tried taking out the vbscript out of the cmdlines.txt and put just the registry key as suggested by Pond Scum, and it worked!!!

I just realised that the changes were made for the account used during the mini setup (is that the system account?) These changes should be for any user that uses that computer. Is there any way that these changes are propagated to all the user accounts or to the default user account?

Thanks again.

by the scummy one

the reg keys were from hklu?
try searching for the same keys in HKEY_USERS\.DEFAULT

This discussion is closed to new replies.