Scripting Question

Suppress Company Policy on next boot /auto accept

08/14/2013 1769 views

Hi Guys,

During my Unnatended Scripted Deployment, I have a script that auto joins the domain, reboots and then continues the scripted deployment of certain applications that require the computer to be connected to the domain.

This is all working perfectly however it requires me to press Enter to accept the company network policy after it joins the domain and is rebooted, Auto Admin Login is Enabled.

I am aware computers can be manually dragged into a OU that is exclusive of the Company GPO that sets this policy However, for the sake of convenience how can I suppress this popup, or Auto Accept it upon reboot with a bat script?


Many thanks, and Kudos to everybody on itninja, without you my deployments would not be 100% automated (apart from this eula issue)



0 Comments   [ + ] Show comments


All Answers


Have a read of this:

You need to increase your count (:

"Each time the computer is restarted AutoAdminLogon kicks-in and the administrator is logged on automatically, furthermore, the AutoLogonCount value is decremented by one until the count reaches zero. Once its value reaches zero, the AutoLogonCount value in the Winlogon key is removed. "


Good luck!

Answered 08/16/2013 by: rileyz
Red Belt

  • FYI AutoAdminLogon is set to 99, and I use a script to change this to 0 prior to a final reboot.
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ