473,796 Members | 2,460 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Batch File Problems

Hi everyone,

I'm having some issues figuring out how to complete certain tasks
with a batch file, whether it be not knowing the right syntax or if it can
even be accomplished with a batch file. Heres my problem.

I work in the IT department at a local bank and we are in the
process of deploying new PCs for some of the employees with older work
stations. I just finished staging about a dozen of them and in the next month
or so we will be recieving a shippment of about 20 or more.

Our staging process involves several different things including
running the initial setup of windows, updating windows, configuring certain
things in the system properties such as adding the computer to the local
domain, installing several different programs, and changing the security
properties for a few different things. Needless to say, this is a very long,
time consuming process. I can spend between 2 and 3 hours on each individual
machine, and thats before it even leaves the IT department!

Just recently I thought "Hey, I could probably use a batch file to
do most of this stuff". So, I began constructing the code and, of course, ran
into many problems. I've learned alot about how batch files work and their
syntax but I'm not very experienced with them.

Here is a list of problems that I've ran into:

1. I don't know how to change system properties or if it is even possible
-I need to add the computer to the local domain
-I need to uncheck the Allow Remote Assistance in the remote tab

2. I need to map a network drive

3. I have to change the security settings for a folder
-I need to add the Domain Users group with full control privledges
*I already found the command (cacls) but i keep getting
the error
message "The trust relationship between this
workstation and
the primary domain failed". Whats that all
about?

4. I need to access the Computer Management Console
-Add APP-ZEUS to the Power Users group

5. I need to change the trusted sites in internet security settings
-Uncheck the Require Server Verification box
-Add an IP address to the sites

6. And last but DEFINENTLY not least, I want to know if its possible to
automate software installations and setups with a batch and, if so, how.
Ok, I know thats alot but help would be greatly appreciated. I've
searched the web but it seems like I'm getting everything except what I need.
If you don't know about everything but still have an idea about some things,
any help would be beneficial.

Thanks,
Rusty Roser
Jul 25 '08 #1
0 827

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
47543
by: Bill | last post by:
I need help closing a CMD window when it is executed from Access. 1) The batch file is called from Access. 2) Access closes, 3) the batch runs a copy of the access database (creating a backup) 4) Once the copy is complete, the batch file opens the Access database again 5) EXIT should close out the cmd window but it does not execute that line
6
11238
by: Charles Neitzel | last post by:
I'm trying to write a windows application in C# (Using Microsoft Visual C# 2005 Express) that is nothing more than a simple UI with buttons on it. The buttons do various things like running programs and executing registry entries. The majority of my buttons work however, I have come upon a problem. I need a few of the buttons to run DOS batch files, the batch files in turn run program installers (specifically windows update runtime .exe...
1
3204
by: Charles | last post by:
I'm trying to write a windows application in C# (Using Microsoft Visual C# 2005 Express) that is nothing more than a simple UI with buttons on it. The buttons do various things like running programs and executing registry entries. The majority of my buttons work however, I have come upon a problem. I need a few of the buttons to run DOS batch files, the batch files in turn run program installers (specifically windows update runtime .exe...
3
2626
by: Chris | last post by:
Hi, How can I execute a batch file form asp.net app. I have a form which a user uploads a text file. after the file is uploaded I want a batch file to then execute and do some work. Thanks
6
20412
by: eric.goforth | last post by:
Hello, I have a simple batch file that I'm trying to call from a VB.NET application: @ECHO OFF IF (%1)==() GOTO END DIR %1 > MYDIR.TXT :END @ECHO ON
0
2283
by: Elroyskimms | last post by:
I need to execute a batch file via ASP.Net. In my VB.Net code, I'm using System.Diagnostics.Process to call the batch file and its appropriate command line arguments. I'm using System.Diagnostics.Process.StandardError and System.Diagnostics.Process.StandardOutput to capture and view the output and error messages. My web.config file has the following: <identity impersonate="true" userName="administrator" password="password" />
2
5888
by: treborstetsam | last post by:
Hi, I am creating a small batch file that (hopefully) will copy files from one name to another. however one batch of files cause problems - for the application they are going to be used in, they have to have a % sign in the name - i.e. 1194EL%2f03.jpg (they are all image files). When I run the following, the % sign is removed, obviously as it has a certain use in batch files. copy 10_20tc_500.jpg 10%2f20X1%2f2TC.jpg copy 10_20tc_500.jpg...
4
3664
ck9663
by: ck9663 | last post by:
hi guys this is a little challenging, at least for me...here goes... i have to run a DOS batch file from a server. with some parameters that i need to pass. these parameters can be found on a sql-server table. which means i need to build the string that will be used to call the batch file (set @var = 'callbatch.bat ' + @var1 + ' ' + @var2). then call the batch file using the xp_cmdshell command. each batch file runs about 4-5 hours. i don't...
14
12832
by: =?Utf-8?B?R2lkaQ==?= | last post by:
Hi, In my windows applicationm, i need to excute a batch file. this batch file throws some text and questions to the screen, i need to catch the standard Output, check if it's a question, in case it's a question, i want to popup a messageBox or something, and bring back to the batch file the result (Yes\No question). I know how to excute the batch file and get all the Standard output at the end, but i don't know who can i read it line by...
0
1495
by: =?Utf-8?B?UnVzdHlfUm9zZXI=?= | last post by:
Hi everyone, I'm having some issues figuring out how to complete certain tasks with a batch file, whether it be not knowing the right syntax or if it can even be accomplished with a batch file. Heres my problem. I work in the IT department at a local bank and we are in the process of deploying new PCs for some of the employees with older work stations. I just finished staging about a dozen of them and in the next month or so we will...
0
9673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9525
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10452
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10169
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7546
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6785
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5569
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.