Jump to content

pauledavey

Member
  • Posts

    106
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

About pauledavey

pauledavey's Achievements

0

Reputation

  1. Here is some code that will work for you: strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * from Win32_OperatingSystem") For each elem in colItems If instr(elem.CSDVersion, "2") Then msgbox "Found Service Pack2" ' Place your code here Else If instr(elem.CSDVersion, "3") Then msgbox "Found Service Pack3" ' Place your code here End If End If Next
  2. Hey Andy, I have WDS set up (having had it installed when SP2 was installed on my server) on a File and Print server. You do not have to enable any options in DHCP for PXE like you did in RIS for WDS. Just ensure that in the WDS MMC snappin, you have authorised the WDS box with the DHCP server, remove the PXE options etc from your DHCP server scope, and you should find that it all works ok. Hope this helps.
  3. getchassis.vbs strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colChassis = objWMIService.ExecQuery _ ("Select * from Win32_SystemEnclosure") For Each objChassis in colChassis strType = objChassis.ChassisTypes(i) Next If strType = "5" Then ' Pizza box type, so run pizza type chassis commands here via more vbscript code End If
  4. yep - you can do this using a simple WMI query once the windows shell has loaded. Sample vb script: strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colChassis = objWMIService.ExecQuery _ ("Select * from Win32_SystemEnclosure") For Each objChassis in colChassis For i = Lbound(objChassis.ChassisTypes) to Ubound(objChassis.ChassisTypes) Wscript.Echo objChassis.ChassisTypes(i) Next Next --------------------------------------------------------------------- ChassisTypes Data type: uint16 array Access type: Read-only Array of chassis types. This property is inherited from CIM_Chassis. Value Meaning 1 Other 2 Unknown 3 Desktop 4 Low Profile Desktop 5 Pizza Box 6 Mini Tower 7 Tower 8 Portable 9 Laptop 10 Notebook 11 Hand Held 12 Docking Station 13 All in One 14 Sub Notebook 15 Space-Saving 16 Lunch Box 17 Main System Chassis 18 Expansion Chassis 19 SubChassis 20 Bus Expansion Chassis 21 Peripheral Chassis 22 Storage Chassis 23 Rack Mount Chassis 24 Sealed-Case PC
  5. when booting windows XP and is asks you to press F6 for extra drivers, press F10 instead. It runs the recover console from the windows source\cd
  6. you can, but that isn't what I wanted as stated in the original question. However, I am happy now, as I have it wokring as below ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' ' WinPE | Windows XP ' ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' Both boot completely indepently without a bootloader and are invisible to each other. Paul
  7. Thanks Koszopal. Will look in to this. Paul
  8. got this working with the WinPE files and the WinXP files on completely seperate partitions. Used a Powerquest\symantec tool which can switch the partitions over on the fly and reboot the machine, whilst I hide the other partition. Works ab fab :-) Paul
  9. Not true. You just cannot do it with any currently released version of WinPE. @Getwired - not much use to me now though! :-)
  10. I cannot see any solution to what I have asked on those threads.. I want to have three partitions on the disk. Partition one:- Windows PE and Windows PE Boot files **(hidden)** Partiiton two:- Windows XP SP2 and bootfiles Partition one is hidden from Windows XP. The windows xp and windows PE BOOT files are on seperate partitions. I want to swap the partitions over in windows using a script of sorts, so that the machine reboots in to Windows PE. Now, all the solutions I have seen so far require the windows pe bootfiles and windows xp bootfiles to be on the same partition. I cannot have this in this case. Has anyone any epxerience with virtual floppys or virtual partitions (powerquest and ghost)? Has anyone managed to put the windows pe bootfiles in to one of these virtual files? That was one solution I was looking at, but have come to a dead end so far. Paul
  11. Just so you all know, this is not possible. Even with WinPE loaded in memory you cannot delete or amend the Winpe folder that it originated from.
  12. Strange.. I cant see it in the help anywhere..
×
×
  • Create New...