Jump to content

WinPE 2005 with WMI -HELP! - Doesn't work


Recommended Posts

Posted

I have tried building WMI in WinPE 2005 with the /WMI switch at least half a dozen times and added the oc.bat to the startnet.cmd file and still my vb scripts that work on an xp machine will not work.

I run wbemtest and I am unable to connect to a WMI namespace( cimv2, wmi, etc.), I get an error rpc server unavialable. :wacko:

I also ran the buildoptionalcomponents.vbs file and copied the files that it generates into the appropriate directories.

Any advice is appreciated.

thanks


Posted

First step.

Rebuild the image from fresh pe and server2003sp1 media and see what happends. Not all wmi classes are inplemented under winpe but most are, for example win32_batery doesn't seem to work but win32_processor does

Posted

WMI support is cak in PE. Outside basic system informtion: memory, NIC, processor, hdd details: you will not get a lot of details. WMI will not report anything on floppy, cd rom, sound, video, ect...

It is on my list of things to do to try and increase the repository but in the great circle of life, it's pretty far down on mt to do list.

Do an example script to just pull the mac address or summing like that to test that wmi is working. Also, take of the crappy firewall as that seems to fig a lot of things up...b

Posted

I noticed there is a small "bug" in Windows PE 2005.

I had the same problem when using both the /WMI and /PNP with mkimg.cmd.

I noticed oemmint.exe in mkimg.cmd failed to copy one file which results in an error (ERRORLEVEL 1), because of this the "Copy the WMI repositery" is skipped.

Change the following code in mkimg.cmd

REM
REM Copy the WMI repository
REM
if NOT ERRORLEVEL 1 (
if /i "%WMISUPPORT%"=="yes" (

To

REM
REM Copy the WMI repository
REM
SET ERRORLEVEL=0
if NOT ERRORLEVEL 1 (
if /i "%WMISUPPORT%"=="yes" (

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...