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.

Environment variables don't work in XML unattended file

Featured Replies

I have this section in my Autounattend.xml unattended answer file:

			<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<CommandLine>REGEDIT /S C:\WINDOWS\system32\tweak.reg</CommandLine>
<Description>RegEntries</Description>
<Order>1</Order>
</SynchronousCommand>
</FirstLogonCommands>

So this is only any use if you install on a C:\ drive, so I change it to this:

			<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<CommandLine>REGEDIT /S %WINDIR%\system32\tweak.reg</CommandLine>
<Description>RegEntries</Description>
<Order>1</Order>
</SynchronousCommand>
</FirstLogonCommands>

And it does not work!

These XML methods suck, this was never a problem in XP with WINNT.SIF, you just

used %SYSTEMDRIVE% or %WINDIR% and it worked, not in Vista though. I thought

things were supposed to get better and easier, not worse and harder?

Edited by LeveL


Hello LeveL!

use cmd /c in front of your command and it will work again:

<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<CommandLine>cmd /c REGEDIT /S %WINDIR%\system32\tweak.reg</CommandLine>
<Description>RegEntries</Description>
<Order>1</Order>
</SynchronousCommand>
</FirstLogonCommands>

Regards,

Martin

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.