emartin75 Posted January 19, 2006 Posted January 19, 2006 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. I also ran the buildoptionalcomponents.vbs file and copied the files that it generates into the appropriate directories. Any advice is appreciated.thanks
mats Posted January 20, 2006 Posted January 20, 2006 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
gadget Posted January 22, 2006 Posted January 22, 2006 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
Jaque Posted January 24, 2006 Posted January 24, 2006 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.cmdREMREM Copy the WMI repositoryREMif NOT ERRORLEVEL 1 ( if /i "%WMISUPPORT%"=="yes" (ToREMREM Copy the WMI repositoryREMSET ERRORLEVEL=0if NOT ERRORLEVEL 1 ( if /i "%WMISUPPORT%"=="yes" (
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now