How to force a "Yes" response in a logon script

I have a logon script that points to a .reg file. This launches a request "are you sure" type window, with a "Yes" button.

I have tried the command "C:\mypath\myregitem.reg /y", but this does not provide the correct response.
HilltownHealthCenterAsked:
Who is Participating?
 
OrenRozenConnect With a Mentor Commented:
use the folowing

reg import C:\mypath\myregitem.reg
0
 
MaximumIQCommented:
if you dont want user interaction, then run in silent mode

regedit /S C:\mypath\myregitem.reg
0
 
Steve KnightIT ConsultancyCommented:
You have the answer there, but the other way is to lose the reg file and just use reg.exe to directly add the entries from command line, or use group policy to put the registry entries directly into the user's registry.
Steve
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.