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.

run a command in autounattend.xml

Featured Replies

Hi,

Is there any way to run a command in autounattend.xml. For example, i want to run "del c:\xyt.txt" at the end of installation. Is there any way to directly give the command from autounattend.xml?

thanks..


Hi,

Is there any way to run a command in autounattend.xml. For example, i want to run "del c:\xyt.txt" at the end of installation. Is there any way to directly give the command from autounattend.xml?

thanks..

srihariram, yes, please see 'SetupComplete.cmd' in the waik.chm help file. Enjoy, John.

  • Author

Thanks for the reply john..

I boot through winpe (already copied to HD) and start the windows setup from DVD.

I can copy files only after winpe boots. That time there is no directory structure %WINDIR%\Setup\Scripts\SetupComplete.cmd .

Can i make this directory structure after winpe boots and update the setupcomplete.cmd? Will this way work or any other place that i can copy setupcomplete.cmd.

regards..

Thanks for the reply john..

I boot through winpe (already copied to HD) and start the windows setup from DVD.

I can copy files only after winpe boots. That time there is no directory structure %WINDIR%\Setup\Scripts\SetupComplete.cmd .

Can i make this directory structure after winpe boots and update the setupcomplete.cmd? Will this way work or any other place that i can copy setupcomplete.cmd.

regards..

srihariram, sorry I cannot answer your questions. I use 'SetupComplete.cmd' to run a command after first login (file structure is in place) in a flat install (from HDD). I do not use WinPE and am not familiar with it. I would suggest running some experiments in a virtual machine. I use VMware Player. It is free and easy to use. Enjoy, John.

1) Maybe you can customize your Windows DVD and use this one!

2)Customization of the DVD Windows for the unattended installation.

You can create the folders:

$OEM$\SETUP\SCRIPITS\SetupComplete.cmd inside sources (inside the folder where are located your Windows 7 folders).

Example with a command "WPI.cmd" inside the folder "SCRIPTS"

Inside your "Autounattend.xml" you can add the path of your command:

Example for Windows 7 Ultimate x86:


<settings pass="oobeSystem">

<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<Description>Password never expires</Description>
<CommandLine>cmd /C wmic useraccount where "name='myselfidem'" set PasswordExpires=FALSE</CommandLine>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>2</Order>
<Description>Install Applications with WPI</Description>
<CommandLine>cmd /C start /wait c:\Windows\Setup\scripts\WPI.cmd</CommandLine>
</SynchronousCommand>
</FirstLogonCommands>

You can find more help inside: Unattended Windows Setup Reference for Windows 7.chm

Windows Automated Installation Kit for Windows 7 documentation (May 2010 Update)

Edited by myselfidem

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.