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.

WMI script in commandlines.txt

Featured Replies

does anyone know if WMI is up and running during the gui portion of an xp install? I have a script that will check the model of a machine and then install certain drivers (which are being troublesome and won't install properly without the setup file being run) based on that machines model. it works fine in a full blown already installed windows xp box, but it doesnt run properly when put into the commandlines.txt. it starts to run but fails. I am thinking this is because WMI isn't up and running yet there... any thoughts?


You'll need to consider WinPE to deploy your images then, as WinPE 2005 includes WMI support. You can also use BartPE, as I believe there's a hack to get most WMI working there as well.

  • Author

*mgrin* yeaaaah... my boss thinks i "overcomplicate" things, so i think introducing either bartpe or winpe isn't an option. They are just going to have to understand that not everything can be done exactly like they want :)

Well, you need to explain it to him in terms "management" can understand, live with it, or find a new boss :). Any boss that actively hindered me from doing my job in the past was no longer my boss.

  • Author

i'm going with the "live with it" portion ;) i'm really new here, and still feeling out the way things work. :)

  • 2 months later...

I've had to do the following to get WMI working. Follow these steps exactly:

1> Set the following registry key:

Key: 'HKLM\SYSTEM\Setup'

Value: 'SystemSetupInProgress'

Type: DWORD

Data: '0'

2> net stop winmgmt /y

3> net start winmgmt

4> <Execute your WMI script(s) now>

5> Reset 'SystemSetupInProgress' to '1'

6> net stop winmgmt /y

7> net start winmgmt

NOTE: I've only queried 'Win32_ComputerSystem' for 'model'. Not sure if all functionality is available.

Edited by sgraves66

That's similar to process required for installing .NET 2.0 from svcpack.inf. I would use it sparingly. I've seen some spectacular failures when something goes wrong with that little reg hack.

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.