Windows

General discussion

Locked

Windows NT Batch File

By bdhansen ·
I am trying to create a batch file for windows NT that will set the following parameters for me after i install windows NT.

Set the time zone to : central time zone
Set the display properties to : 1280 X 1024
Set the color to : 65536 colors
create 2 shortcuts on desktop to a program in: \winnt
Create a user account: user
Password : user
Set : password never expires
Set : user cannot change password
clear: user must change password at logon
Add user to power users group and make group log on as a service
Add environment variable to the Path variable: %home%\scripts;%home%\bin;%dir%\scripts;%dir%\bin
Add new variables: home=d:\dir\home
New variable : dir = d:\dir\cust

Could you let me know if this can be all done by usinga batch file ?

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

Windows NT Batch File

by bdhansen In reply to Windows NT Batch File

Poster rated this answer

Collapse -

Windows NT Batch File

by mgonzales In reply to Windows NT Batch File

I would like to recommed a bigger hammer for this solution...

Collapse -

Windows NT Batch File

by bdhansen In reply to Windows NT Batch File

Poster rated this answer

Collapse -

Windows NT Batch File

by ratnayake_j In reply to Windows NT Batch File

I know the way to add shortcuts to the desktop, and to add the users, but the other stuff I am not sure of. If you want to know mail me.

Collapse -

Windows NT Batch File

by bdhansen In reply to Windows NT Batch File

Poster rated this answer

Collapse -

Windows NT Batch File

by spn In reply to Windows NT Batch File

Why does it have to be a batch file?The best i can think of is to create a manditory policy that is copied from a shared dir on the server that will take care of most of the settings , then the short cuts are simpal enouph.

(Is this a work group or a domain?, are you runing a full NT enviorment? , the details are very important for complete and accurate answers)

Collapse -

Windows NT Batch File

by bdhansen In reply to Windows NT Batch File

Poster rated this answer

Collapse -

Windows NT Batch File

by pbgerrard In reply to Windows NT Batch File

It would take a lot of work to create any sort of file to do what you want to do. If we are talking about one machine I would create those settings manually.

If you are trying to create those settings on a lot of machines it is a different story. Windows NT is funny about BAT files, so you may not want to use a BAT file to do it. I would think it is possible to do, but it would take a lot of work and time. It may be faster to manually adjust the settings even if you have to adjust a whole network.

If you are willing to spend some money, you may consider purchasing Ghost or some other Symantec software. I think they make a few. That would make it exteremly easy to set up a whole network with the parameters you gave.
That is probably the best way. Ghost does not cost too much, especially considering how much work has to be put into doing it manually.

Also you may be able to setup one computer like that and copy the settings to the others without Ghost, but Ghost is the best tool to use.

Collapse -

Windows NT Batch File

by bdhansen In reply to Windows NT Batch File

Poster rated this answer

Collapse -

Windows NT Batch File

by Zlatin Zlatev In reply to Windows NT Batch File

Well not all, and not only with a batch file but it can be done
____
Legend:
*reg* - with additional REG file
*wsh* - from the Windows Scripting Host (VBScript/JScript)
*bat* - can be done in the bat file
____
*reg* Set the time zone to : central time zone
Configure one of the machines to that time zone and export the following key from registry:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation]

*reg* Set the display properties to : 1280 X 1024
*reg* Set the color to : 65536 colors
the same export key:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Services\i81xnt4\Device0]

This key is for i810 graphic controler "i81xnt4" If your grafic controlleris different
this key will differ too

(continues)

Related Discussions

Related Forums