Jump to content
MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. ×

pauledavey

Member
  • Content Count

    106
  • Joined

  • Last visited

  • Donations

    $0.00 

Everything posted by pauledavey

  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
  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 i
  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..
  13. Question: Has anyone here ever loaded Winpe on to a hard drive partition, booted in to the Winpe environment (loading the Winpe environment in to memory) and then tried to delete or reimage that partition? Thought I would ask the question before trying it in case any of you have already done this and know that it works, or rather doesn't. In theory I can't see any reason why it wouldn't.. You can load Winpe from a CD in to memory and swap CD's without crashing the WinPE environment, so why not on a hard disk? Any thoughts on this, really appreciated! Thanks!
  14. OK. I have tried many different ways to do this an have yet to find out how to get it to work. This is the scenario: ----------------------------------------------------------------------------------- ' ' ' ' Rebuild Partition ' Windows XP SP2 ' ' (hidden primary) ' (Primary) ' -----------------------------------------------------------------------------------' As you can see the hard d
  15. thanks for the advice. I do actually have a script that clears the page file! I will try removing that and see if it helps. Paul
  16. I have a very strange problem going on with sysprep on windows xp sp2 clients. Basically I am creating my build using standard unattended processes. Then I am running sysprep.exe –mini –reseal , using a standard sysprep.inf file in the c:\sysprep folder. The file is processed etc all ok. However when I actually run sysprep as above, it takes between 35 – 50 minutes before the machine logs out of windows and shuts down. This is happening on lots of different kit (old and new HP notebooks and desktops). Do you have any ideas? The sysprep.inf contents are as below. The version information of sysp
  17. I too would be interested in a sample page to see how this would be done.! B)
  18. When I try to use Image Centre 32 in Winxp it runs fine. In Winpe with a 20mb ramdrive it refuses to run, complains that a picture or a bitmap is missing (cant remember the exact error) Has anyone seen this? I cannot get it working in PE!!!!
  19. I can try that, but even so setres.exe doesnt try to run either!
  20. If I put them in there it doesnt work - If I add them to the oc2.bat file they do... strange
  21. OK, one further question on PE. I want to have setres.exe run with the following syntax: x:\tools\setres\setres.exe h800 w600 b24 Then I want the following command run: X:\HTA_Page\Index.hta I put them in the winbom.ini section but it doesn't work. Can any of you guys show me how you have run apps etc on startup. I do not want to have to copy the files somewhere just have them run as shown above. Many thanks in advance Paul
×
×
  • Create New...