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.

Blank comamnd line window on FirstLogonComamnds

Featured Replies

Hey all,

I've got a small, niggling issue... What happens is when my installation gets up to the FirstLogonCommands they run, however the systems has a blank 'command line' screen, and the installation stops until the user manually CLOSES this window. See the attached pic...

What am i doing wrong? :(

My first logon commands in my autounattended.xml look like this:

			<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<CommandLine>cmd %systemdrive%\Install\firstlogon.cmd</CommandLine>
<RequiresUserInput>true</RequiresUserInput>
<Description>SetupUser</Description>
</SynchronousCommand>
</FirstLogonCommands>

My firstlogon.cmd looks like this:

@echo off

start /wait REGEDIT /S %systemdrive%\Install\UserRegTweaks1.Reg
start /wait "%PROGRAMFILES%\Internet Explorer\iexplore.exe" %systemdrive%\Install\IESetup.html
start /wait REGEDIT /S %systemdrive%\Install\UserRegTweaks2.Reg
cmd copy %systemdrive%\Install\Configure_IE.lnk %userprofile%\Desktop\

start /sleep 60 REGEDIT /S %systemdrive%\Install\Install\UserRegTweaks2.Reg


exit

Add /c switch to after cmd, it will execute your bat file then close when done

			<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<CommandLine>cmd /c %systemdrive%\Install\firstlogon.cmd</CommandLine>
<RequiresUserInput>true</RequiresUserInput>
<Description>SetupUser</Description>
</SynchronousCommand>
</FirstLogonCommands>

CMD [/A | /U] [/Q] [/D] [/E:ON | /E:OFF] [/F:ON | /F:OFF] [/V:ON | /V:OFF]
[[/S] [/C | /K] string]

/C Carries out the command specified by string and then terminates
/K Carries out the command specified by string but remains
/S Modifies the treatment of string after /C or /K (see below)
/Q Turns echo off
/D Disable execution of AutoRun commands from registry (see below)
/A Causes the output of internal commands to a pipe or file to be ANSI
/U Causes the output of internal commands to a pipe or file to be
Unicode
/T:fg Sets the foreground/background colors (see COLOR /? for more info)
/E:ON Enable command extensions (see below)
/E:OFF Disable command extensions (see below)
/F:ON Enable file and directory name completion characters (see below)
/F:OFF Disable file and directory name completion characters (see below)
/V:ON Enable delayed environment variable expansion using ! as the
delimiter. For example, /V:ON would allow !var! to expand the
variable var at execution time. The var syntax expands variables
at input time, which is quite a different thing when inside of a FOR
loop.

Edited by ricktendo64

yep

Cmd.exe. If used without parameters, cmd displays the version and copyright information of the operating system.

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.