Discussion Locked

Automated Logon

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

During a logon script patches are deployed to fix security holes. Some of these patches give a user the option to choose not to install. How do you have the logon script choose the yes or no questions for the user so I know the patches are being applied?

I am using Kixtart.

11 replies

by kellyst

Most patch installs give you a /y for yes or a silent install which will answer yess to everything. This should be contained within a readme or on their website.

by ntadmin599271

True most patches allow you to use /y but many times that isn't an option. You can pipe input from a text file to answer these questions as well. For example, create a text file that contains only one character, y.

from a command prompt you canuse:

copy con y.txt
y
press F6 and enter to save the file.

Now you can use that file to answer a question with a y for yes. You can do that same thing to answer a question with n for no any letter for anything else.

For example-- the command "DEL *.*" will ask if you are sure y/n?

The command "DEL *.* >y.txt" will use the y.txt answer file to answer the question yes with no user interaction.

And yes, you can use the answer file to answer multiple questions. For example if you know you will be propmted with three questions you can answer y,n,y by putting each answer on a separate line like:

y
n
y

in the answer file.

Enjoy.....

by ntadmin599271

Oh yeah-- and be careful abot firectory you are in if you use my DEL *.* example above-- I'm sure it's not fun to have to repair your box because you accidentally deleted all files in your root directory--

by wayne.meadows

Although both of the previous answers would work ( using a /y and an answer file )I think it is preferable to use a product such as SMS and Zen Works because of the benefits they offer you. For instance, with these products you can easily segment who gets the software you are trying to distribute. For example, say you wanted to make it so only NT Workstations on a remote network got the software without asking the user for intervention. You could setup this type of scenerio in less than 30 minutes.

Good luck!

by hdoan

A simple way to force an answer to a program that expects one is using ECHO and pipe it to the program.
ECHO Y | DEL A:*.*
The above ECHO inserts Y to DEL question "Are you sure (Y/N)?"

This discussion is closed to new replies.