Jump to content

IcemanND

Patron
  • Posts

    3,252
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Posts posted by IcemanND

  1. How about going about this in a totally different way? Looks like you are pulling this info from a web page. Copy everything from the <select to </select> an save it in a file. Import the file as XML using power shell and then read the attributes out to a new file.

    So if you save something like the following as option.xml:

    <Select name="vehicle">
    <option value="6199">Patriot 250</option>
    <option value="6200">Patriot 250 MX</option>
    </select>

    Then in powershell type the following commands, from the directory the option.xml file is in:

    $option = Get-Content .\option.xml

    To output to screen:

    $option.select.option

    To output to file:

    $option.select.option | out-file .\options.txt

  2. Multi task to the extreme at least at work. Normally have at least three computers doing something, which equates to 5 monitors.

    Ont machine runs multiple VM's for various testing and I can have a different VM on each monitor. Other machine with two monitors usually has something up for reference on the second monitor while I work on something in the first, easier than switching between applications (especially when you have 6 to 8 open at a time. The poor machine with a single monitor is usually some specialized project I'm working on and doesn't normally need two monitors for that work.

  3. @echo off

    icalcs c:\windows\system32\en-us\winload.exe.mui /grant Brian:F

    takeown /f C:\Windows\System32\en-US\winload.exe.mui

    DelTree("C:\Windows\Help\Help\en-US", nil);Folder.DeleteTree("C:\Windows\Help\Help\en-US", nil);

    Not sure where you are coming up with Deltree or Folder.deltree, neither are valid in a command in a CMD/BAT script. To delete a folder and the tree under it:

    rd /s /q <Root path>

    so to get rid of en-us:

    rd /s /q C:\windows\help\help\en-us

    and your icalcs and takeown command are not taking ownership of the help folder. It is taking ownership of a single file, winload.exe which won't help you with deleting the help folder, you need to point it at the folder you are trying to delete.

  4. the MUI files are only searched for by MMC.exe in the en-us subfolder or a EN subfolder of system32,

    I somehow missed the MUI files in my list of needed files. Without those the console is not correctly displayed because of missing icons or even whole sections.

  5. Just replicated what I did before for WinPE 3.0 or 3.1.

    Use the MMC_registry.au3 file above to import the registry keys needed.

    You also need to set values for the following, I did not add them to the above AU3 file in case others reading this already have IE added to their PE build, I do not but you need these values for MMC.exe to run:

    HKLM\Software\Microsoft\Internet Explorer

    Build - REG_SZ - 98112

    svcUpdateVersion - REG_SZ - 9.0.1

    svcVersion - REG_SZ - 9.0.8112.16421

    Version - REG_SZ - 9.0.8112.16421

    W2kVersion - REG_SZ - 9.0.8112.16421

    Here are the files you need to have in your WIM file in the correct directories:

    c:\windows\system32\dwwin.exe

    c:\windows\system32\diskmgmt.msc

    c:\windows\system32\mmc.exe

    c:\windows\system32\mmcbase.dll

    c:\windows\system32\mmcndmgr.dll

    c:\windows\system32\mmcshext.dll

    c:\windows\system32\apphelp.dll

    c:\windows\system32\dmdlgs.dll

    c:\windows\system32\dmdskmgr.dll

    c:\windows\system32\dmdskres.dll

    c:\windows\system32\dmdskres2.dll

    c:\windows\system32\dmintf.dll

    c:\windows\system32\dmocx.dll

    c:\windows\system32\dmutil.dll

    c:\windows\system32\dmvdsitf.dll

    c:\windows\system32\dmview.ocx

    c:\windows\system32\hhsetup.dll

    c:\windows\system32\en-US\mmc.exe.mui

    c:\windows\system32\en-US\mmcbase.dll.mui

    c:\windows\system32\en-US\mmcndmgr.dll.mui

    c:\windows\system32\en-US\mmcshext.dll.mui

    c:\windows\system32\en-US\dmdskres.dll.mui

    c:\windows\system32\en-US\dmdskres2.dll.mui

  6. Unlike Windows XP, Windows 7 is already pretty hardware independent.

    I personally build all of my images in a VM using VMWare workstation. I install and ocnfigure it the way I want, add the drivers I need for our systems to a subfolder of c:\windows\inf and sysprep and capture.

    So far I have not had anyone tell me they had a machine it would not deploy to, the images I have created this way are deployed to over 2500 systems and not image related issues.

  7. Unless there is another file that I missed. This should be a full list of all the dependent files, but I believe thay are already in the build:

    %systemroot%\system32\lpk.dll

    %systemroot%\system32\usp10.dll

    %systemroot%\system32\mfc42u.dll

    %systemroot%\system32\ole32.dll

    %systemroot%\system32\oleaut32.dll

    %systemroot%\system32\odbc32.dll

    %systemroot%\system32\shlwapi.dll

    %systemroot%\system32\uxtheme.dll

    %systemroot%\system32\duser.dll

    %systemroot%\system32\imm32.dll

    %systemroot%\system32\mscft.dll

    %systemroot%\system32\katrack.dll

    %systemroot%\system32\odbcint.dll

    %systemroot%\system32\mfc42loc.dll

    %systemroot%\system32\dwwin.exe

    %systemroot%\system32\dui70.dll

    %systemroot%\system32\wtsapi32.dll

    %systemroot%\system32\rpcss.dll

    %systemroot%\system32\urlmon.dll

    %systemroot%\system32\iertutil.dll

    %systemroot%\system32\wininet.dll

    %systemroot%\system32\normaliz.dll

    %systemroot%\system32\clbcatq.dll

    %systemroot%\system32\apphelp.dll

    %systemroot%\system32\ntdll.dll

    %systemroot%\system32\kernel32.dll

    %systemroot%\system32\kernelbase.dll

    %systemroot%\system32\gdi32.dll

    %systemroot%\system32\user32.dll

    %systemroot%\system32\msvcrt.dll

    %systemroot%\system32\rpcrt4.dll

    %systemroot%\system32\advapi32.dll

    %systemroot%\system32\sechost.dll

    %systemroot%\system32\msctf.dll

    %systemroot%\system32\katrk32.dll

    %systemroot%\system32\apisetschema.dll

    %systemroot%\system32\cryptbase.dll

    %systemroot%\system32\sspicli.dll

    %systemroot%\system32\shell32.dll

    %systemroot%\system32\mmc.exe.local

    %systemroot%\system32\msxml3.dll

    %systemroot%\system32\msxml3r.dll

    %systemroot%\system32\profapi.dll

    %systemroot%\system32\dmdskres.dll

    %systemroot%\system32\dmutil.dll

    %systemroot%\system32\dmdskres2.dll

    %systemroot%\system32\dwmapi.dll

    %systemroot%\system32\oleacc.dll

    %systemroot%\system32\oleaccrc.dll

    %systemroot%\system32\cryptsp.dll

    %systemroot%\system32\rsaenh.dll

    %systemroot%\system32\rpcrtremote.dll

    %systemroot%\system32\propsys.dll

    %systemroot%\system32\ntmarta.dll

    %systemroot%\system32\mlang.dll

    %systemroot%\system32\xmllite.dll

    %systemroot%\system32\version.dll

    %systemroot%\system32\dmdlgs.dll

    %systemroot%\system32\dmview.ocx

    %systemroot%\system32\sxs.dll

    %systemroot%\system32\atl.dll

    %systemroot%\system32\stdole2.tlb

    %systemroot%\system32\vds_ps.dll

    %systemroot%\system32\dmvdsitf.dll

    %systemroot%\system32\en-us\dmdskres2.dll.mui

    C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\comctl32.dll (may have a different path depending upon patch level)

    C:\Windows\Globalization\Sorting\SortDefault.nls (I don't recall pulling this one)

  8. Make sure these imported:

    RegWrite("HKEY_CLASSES_ROOT\CLSID\{DBFCA500-8C31-11D0-AA2C-00A0C92749A3}", "", "REG_SZ", "DiskManagement.SnapInComponent")

    RegWrite("HKEY_CLASSES_ROOT\CLSID\{DBFCA500-8C31-11D0-AA2C-00A0C92749A3}\InProcServer32", "", "REG_EXPAND_SZ", "%SystemRoot%\System32\dmdskmgr.dll")

    RegWrite("HKEY_CLASSES_ROOT\CLSID\{DBFCA500-8C31-11D0-AA2C-00A0C92749A3}\InProcServer32", "ThreadingModel", "REG_SZ", "Apartment")

    RegWrite("HKEY_CLASSES_ROOT\CLSID\{DBFCA500-8C31-11D0-AA2C-00A0C92749A3}\ProgID", "", "REG_SZ", "DiskManagement.SnapInComponent")

    RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{DBFCA500-8C31-11D0-AA2C-00A0C92749A3}", "", "REG_SZ", "DiskManagement.SnapInComponent")

    RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{DBFCA500-8C31-11D0-AA2C-00A0C92749A3}\InProcServer32", "", "REG_EXPAND_SZ", "%SystemRoot%\System32\dmdskmgr.dll")

    RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{DBFCA500-8C31-11D0-AA2C-00A0C92749A3}\InProcServer32", "ThreadingModel", "REG_SZ", "Apartment")

    RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{DBFCA500-8C31-11D0-AA2C-00A0C92749A3}\ProgID", "", "REG_SZ", "DiskManagement.SnapInComponent")

    RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MMC\SnapIns\{dbfca500-8c31-11d0-aa2c-00a0c92749a3}", "NameString", "REG_SZ", "Disk Management")

    RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MMC\SnapIns\{dbfca500-8c31-11d0-aa2c-00a0c92749a3}", "NameStringIndirect", "REG_SZ", "@dmdskres.dll,-65535")

    RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MMC\SnapIns\{dbfca500-8c31-11d0-aa2c-00a0c92749a3}", "NodeType", "REG_SZ", "{312B59C1-4002-11d0-96F8-00A0C9191601}")

    RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MMC\SnapIns\{dbfca500-8c31-11d0-aa2c-00a0c92749a3}", "Provider", "REG_SZ", "Microsoft Corp., VERITAS Software Corp.")

    RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MMC\SnapIns\{dbfca500-8c31-11d0-aa2c-00a0c92749a3}", "Version", "REG_SZ", "1.0")

    RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MMC\SnapIns\{dbfca500-8c31-11d0-aa2c-00a0c92749a3}", "About", "REG_SZ", "{FAC1D9C0-0296-11d1-A840-00A0C92C9D5D}")

    And check HKLM\Software\Microsoft\Internet Explorer

    Do values exist under this key? I seem to recall importing one or more of the following, I just copied them from a current system:

    Build - REG_SZ - 98112

    IntegratedBrowser - REG-DWORD - 1

    MkEnabled - REG_SZ - Yes

    svcKBFWLink - REG_SZ - http://go.microsoft.com/fwlink/?LinkId=216932

    svcKBNumber - REG_SZ - KB2530548

    svcUpdateVersion - REG_SZ - 9.0.1

    svcVersion - REG_SZ - 9.0.8112.16421

    Version - REG_SZ - 9.0.8112.16421

    W2kVersion - REG_SZ - 9.0.8112.16421

  9. I believe these are all of the files you need for diskmgmt.msc to work with the above registry entries. Since I was enabling more than one my notes may have an extra file or be missing one, if it doesn't work let me know and I can dig further.

    Files needed:

    %SystemRoot%\system32\MMC.EXE

    %SystemRoot%\System32\diskmgmt.msc

    %SystemRoot%\system32\mmcbase.dll

    %SystemRoot%\System32\mmc.exe

    %SystemRoot%\System32\mmcbase.dll

    %SystemRoot%\System32\mmcndmgr.dll

    %SystemRoot%\System32\mmcshext.dll

    %SystemRoot%\System32\apphelp.dll

    %SystemRoot%\System32\dmdlgs.dll

    %SystemRoot%\System32\dmdskmgr.dll

    %SystemRoot%\System32\dmdskres.dll

    %SystemRoot%\System32\dmdskres2.dll

    %SystemRoot%\System32\dmintf.dll

    %SystemRoot%\System32\dmocx.dll

    %SystemRoot%\System32\dmutil.dll

    %SystemRoot%\System32\dmvdsitf.dll

    %SystemRoot%\System32\dmview.ocx

    %SystemRoot%\System32\hhsetup.dll

  10. Here is the autoit script I run that add the needed registry entries fro disk management to work in PE 3.0. It also enables or partially enables some of the other MMC consoles. Because of the way I ise PE to deploy images I don't add it directly to PE's registry I just load it at start up via my deployment application.

    MMC_Registry.au3

    As soon as I find the file list I will add that too. The information somehow was separated when I was transferring it to a new system.

  11. You have to add some other files and registry keys in order to get the MMC console and Diskmgmt.msc to load. I have the info in some notes around here somewhere. Soon as I find them I can post the info.

    The class not registered error is actually due to the registry information missing.

  12. While startup items may be slowing a system down, replacing that spinning disk with a solid state drive will do more than turning everything off. The SSDs in my machines kick the read/write speeds of every spinning disk I have ever compared them to in both desktops and laptops. Only thing I can think of that might come close would be a raid array.

  13. The slowest item in a windows pc is the HDD.

    Agreed, take a machine and replace the spinning platter HDD with a SSD and performance issues almost disappear. I did this to a Thinkpad t61 (4 years old), ran windows 7 ok, put an SSD in it and it runs as well as a machine new out of the box.

  14. And an Exit For statement after the command you want run only once inside the If..else..then, that way once the statement is true and the backup script runs it will exit the for loop and continue the script after the Next statement.

    Something like this: (snipped to just the if..then the rest of the code would remain the same)

        If Ip > "194.7.23.199" And Ip < "194.7.23.255" Or _
    Ip > "192.168.180.99" And Ip < "192.168.180.200" Or _
    Ip > "192.168.181.99" And Ip < "192.168.181.200" and _
    InStr(sysInfo.ComputerName, "OU=" & SBX) > 0 Then
    shell.run("\\SERVER\NETLOGON\Other\pstbackup\Check.bat")
    Exit For
    Elseif Ip > "192.168.199.109" And Ip < "192.168.199.161" and InStr(sysInfo.ComputerName, "OU=" & SB) > 0 Then
    shell.run("\\SERVER\NETLOGON\Other\pstbackup\Check.bat")
    Exit For
    End If

×
×
  • Create New...