General discussion

Locked

Automated Logon

By glen.armes ·
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.

This conversation is currently closed to new comments.

11 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Automated Logon

by kellyst In reply to Automated Logon

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.

Collapse -

Automated Logon

by glen.armes In reply to Automated Logon

The question was auto-closed by TechRepublic

Collapse -

Automated Logon

by NTADMIN599271 In reply to Automated Logon

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.....

Collapse -

Automated Logon

by glen.armes In reply to Automated Logon

The question was auto-closed by TechRepublic

Collapse -

Automated Logon

by NTADMIN599271 In reply to Automated Logon

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--

Collapse -

Automated Logon

by glen.armes In reply to Automated Logon

The question was auto-closed by TechRepublic

Collapse -

Automated Logon

by wayne.meadows In reply to Automated Logon

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!

Collapse -

Automated Logon

by glen.armes In reply to Automated Logon

The question was auto-closed by TechRepublic

Collapse -

Automated Logon

by hdoan In reply to Automated Logon

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)?"

Collapse -

Automated Logon

by glen.armes In reply to Automated Logon

The question was auto-closed by TechRepublic

Back to Windows Forum
11 total posts (Page 1 of 2)   01 | 02   Next

Operating Systems Forums