
mchipser
MemberContent Type
Profiles
Forums
Events
Everything posted by mchipser
-
Maybe i need the bootmgr.exe from vista.. not the bootmgr Edit: I tried the vista bootmgr.exe with the same results..
-
same issue? The boot time or the 0xc0000225 error? I just tried a bootmgr from server 2008, should be the same as vista with no luck.
-
I think i might have found the issue.. still not sure how to fix it though.. pxeboot.0 boots bootmgr.exe not bootmgr, the file sizes are different though, bootmgr is 375KB bootmgr.exe is 512KB.. when trying to boot bootmgr.exe straight from pxelinux i get an error saying the file is to large.. when booting bootmgr i get a bootmgr error.. Unable to load BCD. 0xc0000225
-
Here is my current file (I had to move pxeboot.0 to the root of the tftp directory though) LABEL Deployments COM32 chain.c32 kernel pxeboot.0 https://www.youtube.com/watch?v=Rvv1TwiggxE&feature=player_detailpage is a video of the boot time.
-
I would expect similar behavior between the syslinux projects (iso, pxe, sys) This works fine under isolinux, but not pxelinux. It says file can not be found. LABEL test2 COM32 chain.c32 APPEND ntldr=/BOOTMGR I am gonna try grub4dos and see if it removes the wait.
-
I just switched from using WDS to deploy my images to using tftp-hpa / pxelinux. This works wonderfully except one small time issue. When pointing pxelinux to the pxeboot.0 it takes approximately 30 seconds for bootmgr to find the BCD and launch the wim. I only found one article about this here. Is it possible to load bootmgr directly and not use pxeboot.0? I have tried the following with no luck LABEL test1 COM32 chain.c32 APPEND boot ntldr=/BOOTMGR LABEL test2 COM32 chain.c32 APPEND fs ntldr=/BOOTMGR This however works, but with the delay LABEL Deployments with pass COM32 chain.c32 kernel Boot/pxeboot.0
-
Well i am an id***.. I was testing this from a domain computer and the domain policies kept over riding my local policies.
-
I don't have UAC turned on.. Also doesn't startup scripts run at system level? "Startup scripts are run under the Local System account, and they have the full rights that are associated with being able to run under the Local System account"
-
I wrote a script to disable wifi / bluetooth / webcams and i want to add it to the startup scripts of windows 7.. I added a disable.cmd with the following.. echo test >> c:\test.txt c:\disablestuff.exe after rebooting there isn't a test.txt on c: and disablestuff.exe doesn't run any thoughts?
-
http://windows.microsoft.com/en-US/windows7/What-are-User-Account-Control-settings
-
Script/Cmd , Freespace
mchipser replied to Sonic's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
I tried it but i didnt have enough free space so i thought it worked.. i guess i need to try it on a drive with GTR then 200GB -
Script/Cmd , Freespace
mchipser replied to Sonic's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
@echo off SetLocal EnableDelayedExpansion set count=0 for /F "delims=" %%f in ('"wmic LogicalDisk where drivetype=3 get freespace"') do ( set Freespace=%%f set /a count=!count! + 1 if !count! GTR 1 goto exit ) :exit if %Freespace% GTR 214748364800 Echo %Freespace% pause -
I am trying to disable the built in admin account and create a new admin account with the settings etc into a new account.. Is there a easy way to do this? Here is what i am thinking but someone else probably knows an easier way.. EDIT: I think i may try and explore USMT.. REM rename default admin wmic UserAccount where Name="administrator" call Rename Name="backupadmin" REM create new account newadmin NET USER newadmin password REM Add new account to admin group net localgroup administrators newadmin /add REM Enable system to change password at next login WMIC.EXE Path Win32_UserAccount Where Name="newadmin" Set PasswordExpires="TRUE" net user newadmin /logonpasswordchg:yes REM copy all stuff from backupadmin to new newadmin copy c:\users\backupadmin\* c:\users\newadmin\ REM disable old admin net user backupadmin /active:no
-
Batch script for imagex error
mchipser replied to yweiss's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
What command can you use to verify it is a valid wim? /check? When we pull our images to our NAS it automatically adds the /verify switch.. Is this enough? Should we add a /check when we push these images back? -
Batch script for imagex error
mchipser replied to yweiss's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
try this.. Beggars cant be choosers.. If you want it in a batch file fix the one you posted. #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Outfile=imagexgui.exe #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** ;ImagexGUI $PipeXML = "c:\imagexinfo.xml" if not FileExists("imagex.exe") then MsgBox(0,"Error!","Imagex is not in the same directory as the script. Please run this from the same directory") Exit EndIf #include <ComboConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <Array.au3> $ImageX_GUI = GUICreate("ImageX_GUI", 480, 165, 192, 124) $Label1 = GUICtrlCreateLabel("Specify the WIM you would like to deploy.", 16, 16, 202, 17) $Button1 = GUICtrlCreateButton("...",215,10,23,23) $Button2 = GUICtrlCreateButton("Deploy",215,125,50,23) $Label2 = GUICtrlCreateLabel("", 16, 40, 268, 17) $Label3 = GUICtrlCreateLabel("Specify the Drive you would like to deploy to.", 16, 64, 216, 17) $Label5 = GUICtrlCreateLabel("Specify the index of the WIM you would like to deploy.", 16, 88, 260, 17) $Combo1 = GUICtrlCreateCombo("", 232, 56, 49, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL)) $Combo2 = GUICtrlCreateCombo("", 280, 80, 49, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL)) GUISetState(@SW_SHOW) $Drives = DriveGetDrive ( "Fixed" ) for $i = 1 to ubound($drives)-1 GuiCtrlSetData($combo1,$drives[$i]) next While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $Button1 $source = FileOpenDialog("What wim would you like to open?","C:\","WIM(*.WIM)") If FileExists ($PipeXML) Then FileDelete ($PipeXML) runwait(@comspec & ' /c "imagex.exe" /info ' & $Source & "> " & $PipeXML, "" ,@SW_HIDE) sleep(2000) $XMLdata = fileread ($PipeXML) $CatalogArray = StringRegExp ($XMLdata , '(?:IMAGE INDEX=")(\d)' , 3) for $i = 0 to ubound($CatalogArray)-1 GuiCtrlSetData($combo2,$CatalogArray[$i]) Next if FileExists($PipeXML) then FileDelete($PipeXML) GUICtrlSetData($Label2,$source) Case $Button2 $drive = GUICtrlRead($combo1) $index = GUICtrlRead($combo2) if $drive = "" or $index = "" Then MsgBox(0,"","You have not made all required selections") ContinueLoop EndIf runwait(@comspec & ' /c "imagex.exe" /apply ' & $source & " " & $index & " " & $drive) runwait(@comspec & ' /c ' & $drive & "\windows\system32\bcdboot " & $drive & "\windows") Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd imagexgui.zip -
Batch script for imagex error
mchipser replied to yweiss's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Try this.. Attachment has source and compiled versions. #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Outfile=imagexgui.exe #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** ;ImagexGUI $PipeXML = "c:\imagexinfo.xml" #include <ComboConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <Array.au3> $ImageX_GUI = GUICreate("ImageX_GUI", 480, 165, 192, 124) $Label1 = GUICtrlCreateLabel("Specify the WIM you would like to deploy.", 16, 16, 202, 17) $Button1 = GUICtrlCreateButton("...",215,10,23,23) $Button2 = GUICtrlCreateButton("Deploy",215,125,50,23) $Label2 = GUICtrlCreateLabel("", 16, 40, 268, 17) $Label3 = GUICtrlCreateLabel("Specify the Drive you would like to deploy to.", 16, 64, 216, 17) $Label5 = GUICtrlCreateLabel("Specify the index of the WIM you would like to deploy.", 16, 88, 260, 17) $Combo1 = GUICtrlCreateCombo("", 232, 56, 49, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL)) $Combo2 = GUICtrlCreateCombo("", 280, 80, 49, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL)) GUISetState(@SW_SHOW) $Drives = DriveGetDrive ( "Fixed" ) for $i = 1 to ubound($drives)-1 GuiCtrlSetData($combo1,$drives[$i]) next While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $Button1 $source = FileOpenDialog("What wim would you like to open?","C:\","WIM(*.WIM)") If FileExists ($PipeXML) Then FileDelete ($PipeXML) runwait(@comspec & ' /c "C:\Program Files\Windows AIK\Tools\x86\imagex.exe" /info ' & $Source & "> " & $PipeXML, "" ,@SW_HIDE) sleep(2000) $XMLdata = fileread ($PipeXML) $CatalogArray = StringRegExp ($XMLdata , '(?:IMAGE INDEX=")(\d)' , 3) for $i = 0 to ubound($CatalogArray)-1 GuiCtrlSetData($combo2,$CatalogArray[$i]) Next if FileExists($PipeXML) then FileDelete($PipeXML) GUICtrlSetData($Label2,$source) Case $Button2 $drive = GUICtrlRead($combo1) $index = GUICtrlRead($combo2) if $drive = "" or $index = "" Then MsgBox(0,"","You have not made all required selections") ContinueLoop EndIf runwait(@comspec & ' /c "C:\Program Files\Windows AIK\Tools\x86\imagex.exe" /apply ' & $source & " " & $index & " " & $drive) Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd imagexgui.zip -
Fixed the issue, new technology is always fun..
-
We have started to have some issues with windows 7 sysprep.. We have created masters syspreped them and pulled an image (imagex) and everything works fine. (masters are on ATA / IDE mode) we then update the masters with the new applications and it fails.. We are getting an error of "Windows setup could not configure windows to run on this computer's hardware" everything i am finding this has to do the AHCI / IDE (ATA) mode conflicts.. The masters and all the new systems are already on IDE / ATA mode. I am attempting to read the Panther logs but it seems these just are for the generalize phase of sysprep? Is there any useful information we can get from these logs, or are there other logs we can use? Thanks for the help..
-
Since the menu I built was in Autoit. I had the first pxe client create a txt document on the file server in the same directory as the wim once the imagex process started and deleted it once it was finished. After the selection of an image file the script checks if there is a text document there. If there is one there is sleep for a random (1min – 5min) time and then checks again, if it is still there the script sleeps again. If it is not there is writes one then deploys the wim then deletes it when it is done, releasing the wim for others on the network to image their machine..
-
Same problem new question.. My company does not want to upgrade to gigabit (maybe next year if budget allows) but until then I need a way to restore the systems in our lab.. Currently we have 3 servers serving up the images and after 2-3 systems are pulling the images the file share on each server blows up and becomes extremely slow.. So my question is, is it possible to detect when a client is pulling an image (if a file is currently being accessed), that way if two people are accessing the file then I can script the other clients to hold off until someone is done.. How can I detect if imagex is being ran on the subnet? Does Imagex just use a file copy and I am unable to sniff this traffic?
-
<SOLVED>Sysprep Change password on first boot
mchipser replied to mchipser's topic in Unattended Windows 7/Server 2008R2
We are creating this account via sysprep and assigning a default password to that user.. We need the system to flag the account to reset the password on first logon. EDIT: it looks like we just got it to work... At first I was calling "net user <username> /logonpasswordchg:yes" and this was not working.. After further research it appears since the flag was set that the password will never expire this was doing nothing.. So in my setup complete now I have an extra entry "WMIC.EXE Path Win32_UserAccount Where Name="<username>" Set PasswordExpires="TRUE"" Which clears the "password never expires checkbox" then I run the "net user <username> /logonpasswordchg:yes" and everything works as expected.. thanks for the feed back.. -
I am trying to find a way to force the user to change their password on first boot.. I have tried adding the command in the setupcomplete.cmd and in the specialize section of the sysprep answer file but it doesn't seem to work Command used net user <username> /logonpasswordchg:yes This command works great if i run it while in session then reboot.. it forces the user to change their password.. I need to be able to do it either in the setup complete or from oobe.. EDIT: I just tried adding a runonce to kickoff a batch file that had the "net user <username> /logonpasswordchg:yes" and a reboot.. and it didn't run. I see the key in the registry but nothing happened..
-
I have a custom install.wim which works when applying using imagex. However since this image has multiple images within it (1,2) it fails when I try and add it to the "install image" section of WDS. Image one inside of the wim is for C: and image two is for D:. Currently I am just using a custom boot.wim and mapping a share to the server and using imagex to apply the custom install.wim from the network share.. Is there anyway to get around this or since I have multiple images inside my install.wim is this is the best way?
-
AutoIT excel macro help
mchipser replied to mchipser's topic in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
I got it working with a simple if statement in autoit... but for some odd reason when I open the excel doc it always opens to 1 cell and copies it.. odd #include <Excel.au3> #include <Array.au3> #include <file.au3> ;~ ;************************** ;~ ;read array from text file ;~ ;************************** FileChangeDir (@scriptdir ) If FileExists ("array.txt")<>1 then MsgBox(0, "ERROR", "Array text file not found ") Exit EndIf Dim $NewArray FileOpen("array.txt",0) If Not _FileReadToArray("array.txt",$NewArray) Then MsgBox(4096,"Error", " Error reading text file to $NewArray error:" & @error) EndIf FileClose("array.txt") $1=1 $write = "" ;****************************************************************************** ; Open excel query each item in the array and post it to a document to print ;****************************************************************************** $file = FileOpen(@ScriptDir & "\test.txt", 2) $oExcel = _ExcelBookOpen(@ScriptDir & "\Master List.xls",0) $oExcel.sheets("Non-Compliant").Select Do $oExcel.cells.Find($NewArray[$1]).activate $oExcel.ActiveCell.entirerow.copy if ClipGet() = $write Then sleep(100) else $write = clipget() FileWriteLine($file,$write) endif $1 += 1 Until $1 = UBound($NewArray) _ExcelBookClose($oExcel) -
I can not find this anywhere.. I have this code $file = FileOpen(@ScriptDir & "\test.txt", 1) $oExcel = _ExcelBookOpen(@ScriptDir & "\Master List.xls",0) $oExcel.sheets("Non-Compliant").Select Do $oExcel.cells.Find($NewArray[$1]).select $oExcel.ActiveCell.entirerow.copy FileWriteLine($file,Clipget()) $1 += 1 Until $1 = UBound($NewArray) _ExcelBookClose($oExcel) Everything works however if the array variable is not found it copies the previous selection into the "test.txt file Is there a way to deselect or an if statement to use in conjunction with the vba code? I tried $file = FileOpen(@ScriptDir & "\test.txt", 1) $oExcel = _ExcelBookOpen(@ScriptDir & "\Master List.xls",0) $oExcel.sheets("Non-Compliant").Select Do if $oExcel.cells.Find($NewArray[$1]).select = 0 Then $oExcel.ActiveCell.entirerow.copy FileWriteLine($file,Clipget()) endif $1 += 1 Until $1 = UBound($NewArray) _ExcelBookClose($oExcel) which did not work I think I got something that will work but don't know how to pass a macro to excel from autoit *********** EXCEL MACRO *********** Sub UnSelectCurrentArea() Dim Area As Range Dim RR As Range For Each Area In Selection.Areas If Application.Intersect(Area, ActiveCell) Is Nothing Then If RR Is Nothing Then Set RR = Area Else Set RR = Application.Union(RR, Area) End If End If Next Area If Not RR Is Nothing Then RR.Select End If End Sub