Jump to content

Mikka

Member
  • Posts

    80
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Germany

Posts posted by Mikka

  1. Hi,

    I want to "declutter" the File Explorer default view a bit, reducing as many recent Windows 8.1 disimprovements as possible.

    As long as it could be done via Registry or tools like WENPCFG, I already did it.

    What's still bugging me is one entry (yellow border) for the current user. How could I remove it?

    Thanks in advance,

    Mikka

    post-89609-0-79605500-1388425387_thumb.p

  2. I did a test in a vm, this line --called unattendedly or not-- gives me a bluepurple screen ...

    Seems to be yet buggy. Applying some settings (via .reg import) would be okay, though.

    @Tihiy: I acquired 2 licenses for SIB+, all I miss is a working unattended setup procedure (progpath & most important settings to keep things silently).

  3. Tihiy: Firstly, thank you very much for an awesome tool. :thumbup

    I'm currently checking it out, but I guess StartIsBack+ 1.5.1 seems to be the one tool I need.

    I've got 2 fresh client systems here for unattended Windows 8.1 installations.

    The icing on the cake would be an additional unattended switch for the SIB+ installer.

    (I don't mind writing a little script either, featuring stuff like 7z x -o"%ProgramFiles(x86)%\StartIsBack+\" SIB+.7z, regsvr32 /s StartIsBack64.dll ...)

    That would be really great and an asset compared to similar tools!

    Thanks for considering my suggestion.

    B)

  4. AFAIK the UUID field can only be written to if the field is empty or is all FF.

    Unfortunately, I doesn't work any more, I don't know why. :thumbdown

    I ran it with all F and, in a second step, tried to apply a random value.

    Using all F, it's something like

    FF1BFF70-FF24-FF22-5FFF-6CFFFFFFFFFF

    what I get.

    Maybe AMIDEWINx64 isn't appropriate for UEFI...?

  5. puntoMX you're right, such an effort isn't usually worth it.

    Tripredacus, I was looking for system properties to change to their "default" state.

    In case I've got a run-of-the-mill PC, using

    wmic CsProduct Get /all /format:table
    I get a few properties which are set to "To be filled by O.E.M." (except for [the Mainboard] "Vendor") that might be customized accordingly.

    And there's the UUID. Which I expected to be changeable, too, and with the additional tool AMIDEWIN[x64].exe

    AMIDEWINx64.exe /su 00000000000000000000000000000000
    I changed it. But it seems the assigned UUID isn't permanent (not "reboot proof")...
  6. Enter the following command in cmd:

    wmic CsProduct Get UUID

    you'll receive the system's UUID value, usually different from:

    FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF

    Well, I seek a possibility to simply change my UUID to this very value (33 times F meaning "none").

    How do I do that, or is there a simple way of doing this?

    (I'm on quite recent Desktop PC with a Gigabyte UEFI motherboard, just in case.)

    Thanks in advance!

  7. Thanks, Tripredacus.

    There is quite some stuff in sceregvl.inf, but I can't find any reference to symbolic links or user assignment in it.

    I might be looking at the wrong place (the original poster at TechNet is talking about a different setting).

    Peeking into Microsoft's SCM, the particular setting lies under Microsoft Baselines > Windows 7 > Win7-EC-Desktop 1.0

    Easiest way would be to filter out the relevant registry(?) setting, dump that to a file and deploy it on a fresh machine.

    Just in case this won't work (if the setting is saved somewhere else), how could I track down this option?

    Edit:

    All right, just managed to dump a GptTmpl.inf for a start.

    There's a plethora of settings in it (much more than the tiny bit I'm looking for), but it seems that the line

    SeCreateSymbolicLinkPrivilege=*S-1-5-32-544,*S-1-5-32-545

    is what I'm aiming at (in the section [Privilege Rights]).

    Now, the question is if one could simply cut the inf down to keep just this information, and deleting the rest.

    So hopefully, what I'll get is something like:

    [unicode]

    Unicode=yes

    [Version]

    signature=$CHICAGO$

    Revision=1

    [Privilege Rights]

    SeCreateSymbolicLinkPrivilege=*S-1-5-32-544,*S-1-5-32-545

    [Registry Values]

    [system Access]

    (dunno if the last 2 lines are needed)

    Now I have to find out how to import that .inf during an unattended setup...

  8. Okay, it's centralized and all, but if you like to e.g. automatically change one simple setting (like allowing group Users to create symbolic links), how would you do it?

    Maybe there's a command to be called in SetupComplete.cmd which imports that setting, just which one?

    I merely know the "attended way" via secpol:

    Local Security Policy > Local Policies > User Rights Assignment: Create symbolic links

    Any ideas, tips...?

  9. steven4554, I injected the three missing updates and the IE10 cabinet injected OK.

    johnhc, would you mind telling me which (dism) commands you used for injection?

    I did a quick install in a VM (Windows 7 SP1 x64), afterwards there are these new installer entries:

    Windows Internet Explorer 10

    Internet Explorer 10 de-DE Language Package

    Microsoft Windows English Spelling Package

    Microsoft Windows German Spelling Package

    Microsoft Windows English Hyphenation Package

    Microsoft Windows German Hyphenation Package

    Plus:

    KB2670838

    KB2533623

    KB2729094

    KB2731771

    I'm not so familiar with dism-ology, so any tip is appreciated...

  10. Interesting approach, maxXPsoft.

    I found another one that's working for me. In fact, it's rather simple:

    Reg add %K%\100 /f /ve /d "Shortcuts"

    Reg add %K%\100 /f /v 1 /d "reg.exe add \"HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce\" /f /v 1 /d %SystemDrive%\Install\shortcuts.cmd"

    Reg add %K%\100 /f /v 2 /d "reg.exe add \"HKCU\Software\Microsoft\Windows\CurrentVersion\RunOnce\" /f /v 2 /d %SystemDrive%\Install\cleanup.cmd"

    Reg add %K%\110 /f /ve /d "Reboot"

    Reg add %K%\110 /f /v 1 /d "shutdown.exe /r /t 30"

    A user profile must be accomplished before messing with shortcuts...

    Also, tidying up the system partition is reasonably done then, too.

  11. It's odd, but obviously RunOnceEx behaves differently in Windows 7 compared to Windows XP.

    In short: It didn't work with cmd /c start /wait %SystemDrive%\Install\rm_extra_fonts.cmd.

    After removing the start /wait part, finally the cmd instance auto-closed. (Combined with hidec.exe /w an output may be completely hidden.)

    Checking the test installation I noticed that several changes of the cmd scripts weren't carried out properly.

    I had to execute rm_views.cmd and shortcuts.cmd again manually, that's annoying.

    I assume that it has to do with the moment when the Windows graphics (theme) is loaded, all my cmd scripts run before.

    In Windows XP I sorted shortcuts with a VBS script at one of the last RunOnceEx entries (and I remember that at first it didn't work as expected).

    Registry files are also not fully applied (e.g. via reg import HKCU.reg) yet.

    :no:

    Addendum:

    In some thread I saw an example of a cmd script (copying stuff to a virgin installation) with several Timeout /t 1 in it.

    Do you use this command and if so, under which circumstances?

  12. Thank you, maxXPsoft. Things are improving slowly...

    Now I've got a RunOnceEx functionality -- sort of.

    It isn't really unattended, which means: The cmd instances stay open, and must be closed manually.

    I don't know why, I checked with exit, exit /b 0... and so forth.

    My current RunOnceEx.cmd reads:

    @echo off
    SetLocal enableextensions

    Set K=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

    Reg add %K% /f
    Reg add %K% /f /v Flags /t REG_DWORD /d 20
    Reg add %K% /f /v Title /d "Post setup"

    Reg add %K%\10 /f /ve /d "Console"
    Reg add %K%\10 /f /v 1 /d "reg import %SystemDrive%\Install\console.reg"

    Reg add %K%\20 /f /ve /d "Remove unnecessary fonts"
    Reg add %K%\20 /f /v 1 /d "%SystemDrive%\Install\rm_extra_fonts.cmd"

    Reg add %K%\30 /f /ve /d "User Pictures"
    Reg add %K%\30 /f /v 1 /d "%SystemDrive%\Install\userpics.cmd"

    Reg add %K%\40 /f /ve /d "Views & Shortcuts"
    Reg add %K%\40 /f /v 1 /d "%SystemDrive%\Install\rm_views.cmd"
    Reg add %K%\40 /f /v 2 /d "%SystemDrive%\Install\shortcuts.cmd"

    Reg add %K%\50 /f /ve /d "IE9 Flash ActiveX"
    Reg add %K%\50 /f /v 1 /d "%SystemDrive%\Install\flPlayer_ax.exe"

    Reg add %K%\60 /f /ve /d "Silent Visual C++ Redistributable"
    Reg add %K%\60 /f /v 1 /d "%SystemDrive%\Install\vcRedist.exe auto"

    Reg add %K%\70 /f /ve /d "Reboot"
    Reg add %K%\70 /f /v 1 /d "shutdown.exe /r /t 100"

    rundll32.exe iernonce.dll,RunOnceExProcess
    EndLocal

    Exit /b 0

    In my Autounattend.xml I edited the CommandLines to read:

      <FirstLogonCommands>
    <SynchronousCommand wcm:action="add">
    <CommandLine>cmd /C start /wait %systemdrive%\Windows\setup\scripts\activate.cmd</CommandLine>
    <Order>1</Order>
    </SynchronousCommand>
    <SynchronousCommand wcm:action="add">
    <CommandLine>cmd /C start /wait %systemdrive%\Install\RunOnceEx.cmd</CommandLine>
    <Order>2</Order>
    </SynchronousCommand>
    </FirstLogonCommands>

    I don't see a difference stuffing single commands into <SynchronousCommand> sections or calling one cmd containing the necessary commands.

    Well, what might that be...?

  13. 1. RunOnceEx.cmd (or Firstlogon.cmd):

    You meant to delete the lines:

    Reg add %K%\30 ...

    and to re-active/uncomment:

    rundll32.exe iernonce.dll,RunOnceExProcess

    ?

    2. The file Autounattend.xml now reads

    ...
    <FirstLogonCommands>
    <SynchronousCommand wcm:action="add">
    <CommandLine>start /wait %systemdrive%\Windows\setup\scripts\activate.cmd</CommandLine>
    <Order>1</Order>
    <RequiresUserInput>false</RequiresUserInput>
    </SynchronousCommand>
    <SynchronousCommand wcm:action="add">
    <CommandLine>start /wait %systemdrive%\Install\RunOnceEx.cmd</CommandLine>
    <Order>2</Order>
    <RequiresUserInput>false</RequiresUserInput>
    </SynchronousCommand>
    </FirstLogonCommands>
    ...

    The 1st command is correctly processed, but not the 2nd. Don't know why. :blink:

    Just the setup won't stall this time. RunOnceEx, however, still doesn't work.

  14. Thank you.

    @Tripredacus: I'm unsure how to import registry files.

    That way would really facilitate things...

    @maxXPsoft: Yes, that was my first idea. Actually, I have:

    W7DVD
    Autounattend.xml
    W7DVD\sources\$oem$
    $$
    $$\setup\scripts ← setupcomplete.cmd, activate.cmd...
    $1
    $1\a_tmp_folder
    $1\Install ← RunOnceEx.cmd, shortcuts.cmd, userpics.cmd, views.cmd...

    I commented out the <FirstLogonCommands> section of my Autounattend.xml as setupcomplete.cmd will be processed anyway.

    My setupcomplete.cmd contains:

    @echo off
    start /wait C:\Windows\setup\scripts\activate.cmd
    start /wait C:\Install\RunOnceEx.cmd
    exit/b 0

    And a (basic) RunOnceEx.cmd looks like this:

    @echo off
    SetLocal enableextensions

    Set K=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

    Reg add %K% /f

    Reg add %K% /f /v Flags /t REG_DWORD /d "20"
    Reg add %K% /f /v Title /d "Post setup"

    Reg add %K%\10 /f /ve /d "User Pictures"
    Reg add %K%\10 /f /v 1 /d "%SystemDrive%\Install\userpics.cmd"

    Reg add %K%\20 /f /ve /d "Explorer Views & Shortcuts"
    Reg add %K%\20 /f /v 1 /d "%SystemDrive%\Install\views.cmd"
    Reg add %K%\20 /f /v 2 /d "%SystemDrive%\Install\shortcuts.cmd"

    Reg add %K%\30 /f /ve /d "Reboot"
    Reg add %K%\30 /f /v 1 /d "shutdown.exe /f /r /t 50"
    REM rundll32.exe iernonce.dll,RunOnceExProcess

    EndLocal
    Exit/b 0

    However, something has to be wrong, I cannot tell if SetupComplete.cmd or RunOnceEx.cmd is the culprit.

    (The RunOnceEx.cmd doesn't look so much differently from what I did in the past.)

    My test installation (VMware) stalls with the following screen, not loading Desktop settings for the first time:

    post-89609-0-84379900-1352211441_thumb.p

    I'll comment out the 2nd line of setupcomplete.cmd and try again, I'm quite clueless right now. :(

  15. Hi pros,

    In the past, I found out some tricks to successfully tinker a customized Windows XP installation including default user profile & system settings, unattended apps (Flash plugin) and paths (winnt.sif).

    I'd like to get something similar for Windows 7 x64 sp1. I realized a working autounattend.xml and a $oem$ structure.

    This is my current situation:

    I can't use autounattend.xml (oobeSystem, FirstLogonCommands...) for running scripts (cmd) that peek into %UserProfile%, because no user exists then.

    A RunOnceEx mechanism is gone, so I'm looking for some sort of substitute to execute my scripts at a later date (T+x instead of T-x).

    For the nonce, there are shortcuts.cmd (moving & deleting links), userpics.cmd (tidying up "usertiles") and views.cmd (customizing Windows Explorer view via registry).

    I don't want to create users, I only adjust the local Administrator account (no domain stuff either). Optionally, I'd also like to initiate a few silent installers (Flash plugin etc.).

    There should be several ways to achieve this, like manipulating the file install.wim with DISM or executing scripts afterwards.

    Any ideas?

    Thanks in advance.

  16. Try your install without using the <servicing> object you have at the top.

    There seems to be some issues with how those are setup anyways. For example, you have "FreeCell" but the help says "InboxGames\FreeCell" instead.

    You were right, after removing <servicing> the setup doesn't complain any more.

    Good idea checking for "InboxGames\...", however it doesn't work. It's a tedious task to check which line is the culprit.

    (Nice Microsoft ****-up by the way, thank SatanGod I'm no "regular" Windows admin.)

    I have Win 7 Pro and from the feature export Dism /image:C:\zMountDir /Format:Table /Get-Features > %userprofile%\Desktop\zFeatures.txt

    on a mounted image there is this which means it is removing it anyway which might cause errors.

    Hm, I'd played around with dism 2 years ago, there were quite a few glitches giving me a rough time.

    Maybe I'll revert to WinToolkit 1.5.0.1 to sort out some components.

    There is a way to capture the log files. Look here

    Thanks for the hint, I'll have a look at it. :)

    Unfortunately, my Autounattend.xml still has got some flaws...

    I'd like to install whatever w7 edition was selected at start, without pasting keys from \sources\product.ini.

    That's why I manually changed the <ProduKey><Key /> part and also the file ei.cfg to read:

    [EditionID]

    [Channel]

    OEM

    [VL]

    0

    Now the following window pops up:

    post-89609-0-42676100-1351194648_thumb.j

    I need to unset the tick and click on Skip / Überspringen to continue. That's bad.

    After that another window appears to activate some default settings, in short: my unattended setup is gone!

  17. Hi,

    I've got an annoying problem with my current autounattend.xml (generated and successfully checked by SIM).

    I want to flexibly install Windows 7 x86 SP1 (and x64 later on) for any edition (at start selected by the user).

    Unfortunately, while processing the xml file Windows setup throws an error, saying that the settings for unattended setup couldn't be applied [offlineServicing].

    Edit: A screenshot of this error has been posted here.

    I tried commenting out the offlineServicing part, that didn't fix it. I verified version="6.1.7601.17514" and stuff, but no chance.

    Now, I've got no clue what's wrong as I cannot check for logs in the virtual machine for the (failed) installation (some MSCE guy advised that).

    See below what I've got so far.

    Any tips, tweaks and additions are highly welcome! :yes:

    Autounattend.xml

  18. Okay, I've written a basic script (still alpha) that works for Windows XP and Windows 7. I still have to test it within my PE project.

    Instead of diskpart I used wmic (need to verify this for my Win7PESE build as well) to get the relevant NTFS drives.

    Here's what I've got so far:

    @echo off
    REM Need to loop through all available NTFS volumes, excluding volume X: (on any system)
    For /f "skip=3" %%i In ('wmic logicaldisk where "filesystem='ntfs'" get Name^') Do If Not "%%i"=="X:" (
    For %%t In ($RECYCLE.BIN RECYCLER "System Volume Information") Do (
    If Exist %%~di\%%t Rd /q/s %%~di\%%t
    )
    )

    Little problem: If I omit "skip=3" (which might be skip=2 in your case), the script will try twice to delete matches on C:—don't know why.

    Any CMD guru reading along who could comment on this (Yzöwl maybe)? ;)

    Cheers,

    Mikka

  19. Hi,

    I'd like to use some sort of login script for a Windows PE (Win7PE SE) doing this:

    • detect all existing drives (read-write), c:, d:, e: ..., x: (default PE ramdrive)
    • check each drive on root for a specific folder, i.e. RECYCLER / $Recycle.bin
    • delete each match

    I thought of executing this script each time the PE is booted. I don't know what's best for it; probably a cmd/batch script...?

    I know, that the desired action could be done using something like rd /q/s c:\RECYCLER and so forth, but it should execute well for several systems (some having merely c:, x:; another one with c:, d:, e:, f:, v:, x: etc.).

    My first idea was to use e.g. diskpart to get a list of available (NTFS) volumes and corresponding drive letters.

    Dunno how to script this, though.

    Any suggestions on this? :unsure:

    Greetings,

    Mikka

×
×
  • Create New...