Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to get Run/RunOnce keys working?

Featured Replies

I can add the keys fine after Vista is installed, but if I add them in during setup they're wiped clean before the first user logs on.

the HKCU RunOnce branch is actually removed in it's entirety. but it works fine if I add the key manually after the user logs on.

  • Author

woot! got it working. HKCU Run & RunOnce were being obliterated before first logon (even when I locked down permissions on them beforehand), but HKLM RunOnce stays intact.

so I used HKLM RunOnce to run a script that adds a key to HKCU RunOnce and then reboots.

I needed to use both because certain pesky registry tweaks will only "stick" if run from HKCU, while others only "stick" when run from HKLM.

Had to combine setupcomplete.cmd with the RunOnce keys to finally set all the keys I wanted.

specialize, oobeSystem, and even auditUser passes were all (mostly) worthless.

(this was all with SP1 RTM btw)

P.S. - Another thing I noticed early on, you can't use regedit to import the Run\RunOnce keys, they won't be written. Instead I used reg add or regini. I never tried reg import.

Edited by [TiLT]

woot! got it working. HKCU Run & RunOnce were being obliterated before first logon (even when I locked down permissions on them beforehand), but HKLM RunOnce stays intact.

so I used HKLM RunOnce to run a script that adds a key to HKCU RunOnce and then reboots.

I needed to use both because certain pesky registry tweaks will only "stick" if run from HKCU, while others only "stick" when run from HKLM.

Had to combine setupcomplete.cmd with the RunOnce keys to finally set all the keys I wanted.

specialize, oobeSystem, and even auditUser passes were all (mostly) worthless.

(this was all with SP1 RTM btw)

P.S. - Another thing I noticed early on, you can't use regedit to import the Run\RunOnce keys, they won't be written. Instead I used reg add or regini. I never tried reg import.

Glad ya got it workin..how about a tute for the few not in the know?

  • Author

use Windows\Setup\Scripts\setupcomplete.cmd to "reg add" runonce.cmd to the HKLM RunOnce

runonce.cmd then sets the HKCU RunOnce cmd that I want via "reg add" and reboots via shutdown /r.

I run all .cmd with hidec and they work fine that way.

Edit: You may be able to set the HKLM RunOnce key at another time in your unattended.xml too, but that's how I did it since I was using setupcomplete.cmd already. Hidec also works fine for batch files executed from your unattended.xml

Edited by [TiLT]

use Windows\Setup\Scripts\setupcomplete.cmd to "reg add" runonce.cmd to the HKLM RunOnce

runonce.cmd then sets the HKCU RunOnce cmd that I want via "reg add" and reboots via shutdown /r.

I run all .cmd with hidec and they work fine that way.

Edit: You may be able to set the HKLM RunOnce key at another time in your unattended.xml too, but that's how I did it since I was using setupcomplete.cmd already. Hidec also works fine for batch files executed from your unattended.xml

Look I know where you are coming from but a simple tutorial would be helpful to some.

use Windows\Setup\Scripts\setupcomplete.cmd to "reg add" runonce.cmd to the HKLM RunOnce

runonce.cmd then sets the HKCU RunOnce cmd that I want via "reg add" and reboots via shutdown /r.

I run all .cmd with hidec and they work fine that way.

Edit: You may be able to set the HKLM RunOnce key at another time in your unattended.xml too, but that's how I did it since I was using setupcomplete.cmd already. Hidec also works fine for batch files executed from your unattended.xml

Look I know where you are coming from but a simple tutorial would be helpful to some.

that would be nice. i don't have the time to try it right now. I use FirstLogonCommanfs for now and works great. Im now into SP1 without any hassles.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.