Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Mikka

Pages: [1] 2

I've got a DELL XPS 13 9360 here and need to make a PE for it, currently using Win8.1SE.
Booting up the PE Desktop I noticed that the resolution with "small" scaling (96 dpi/100 % - Smaller) is hardly readable.
At my production system a 24" screen is used, so 96 dpi is fine here, no need for scaling.

I found out that the Registry values for DPI scaling (Win8DpiScaling, LogPixels) are written in yy_Theme.script -
however, modifying the relevant LogPixels value to 120 dpi/125 % - Medium won't have an effect on the PE Desktop.
I suppose there's another information that needs to be added for this to work.

The best solution would be to make Win8.1SE/Win10PESE capable of changing the item size as in regular Windows installations.
Right now, this will lead to a visual flaw as Win8.1SE starts a new session without applying the changes.
Any ideas?

Research and questions / Offline Windows hostname getter
« on: September 07, 2016, 12:48:51 AM »

TeraByte added a neat context menu option to their backup solution, a command that will perform a full backup of a selected partition
with pre-selected parameters (target path etc.).

The new image file will also be named accordingly such as C system.root - 2016-09-07 @1310.TBI, I included the partition label system.root.
To make it a distinct name I'd like to also add the hostname of the Windows system of that partition - if existing.

As in a PE %computername% holds e.g. Win81SE, an approach could be:

  • Check a partition for an offline Windows installation
  • Search for and load offline SYSTEM (huge!) as Registry hive
  • Read out a particular Registry value, cf. here
  • Put the value in a new environment variable HostOScsname
  • Make use of the variable for Image for Windows

Scripting all this in AutoIt should be possible but is time consuming.

Is there a simpler/quicker way to read out the hostname of an offline Windows installation?

Win8.1 SE HomePage / Prerequisites for Bluetooth
« on: July 09, 2016, 04:45:17 AM »
In Windows 8.1 there are two services for Bluetooth support which are missing in Win8.1SE.

I built a 64bit version with suitable drivers (I assume), but the services are missing. Besides that, I don't know whether I could easily
check or enable/disable Bluetooth via GUI as the Charms Bar (or the shortcut Windows X) doesn't seem to be an option in Win8.1SE.

Is there some sort of Bluetooth plugin?

Win8.1 SE HomePage / Win8.1SE for ASUS UX501VW?
« on: July 05, 2016, 01:30:46 AM »
I'm trying to compile a new Win8.1SE build for a ZenBook Pro UX501VW.
It's full of current hardware, such as Skylake Intel processor with HD Graphics 530, additional Nvidia GTX 960M or a 256 GB M.2 SSD.

For older systems (2012 to 2015), I just had to integrate the LAN/WiFi drivers and set the Original display drivers plugin accordingly.
For the ZenBook, that's not enough, unfortunately. Booting up Win8.1SE, I receive either an error message or a black/black flickering screen.
The last to be shown correctly is the Administrator icon ("Welcome"), the Desktop won't load.

It might be due to missing HD Graphics 530 and/or Nvidia GTX 960M drivers (like in the past with Win7PESE). As particularly these components are difficult to handle:
Is there some sort of plugin which includes Skylake's HD Graphics and the Nvidia GTX 960M?

Currently, I try to further narrow down the error. Some messages I received are attached.
Any tips are welcome.

Macro/Command Support / New ML syntax
« on: February 09, 2016, 08:37:14 AM »

I strongly dislike recent ML syntax changes (RunFrom, ExtractFile) as I have to revise all scripts I use, which is a lot.

I'm talking about the now deprecated Unpack command and the fuss that arises to dodge the errors and warnings.
One neat Unpack line* (doing all) to remove means two to four lines of rewritten new code, this is just cumbersome!

Will it stay like this now or must I expect further rewritings in the future?
* e.g.: Unpack,,Archive,Tools,xmlstarlet.7z,%Target_Prog%\%ProgramFolder%

Lancelot pointed it out to me, the neat li'll tool Sigcheck cannot be used for projects due to its licensing terms.
So I'm looking for another way to determine the platform of a given file like Sigcheck does (amongst others).

Let's have a look at Mark Russinovich's tool:
sigcheck -accepteula -q filename.ext | findstr /c:"MachineType"
This will produce an output like this:
        MachineType:    64-bit

I'd like to have another method of gaining the information x86|x64 when checking a file.
The benefit is obvious, we could foobar filename.ext, put the result into %Baz% and use it for instance in:

Any suggestions, tips and hacks?


I'm working on a script for a tool that must be run explicitly as an Administrator (i.e. in administrative context).
Add_Shortcut just creates normal shortcuts; is there any possibility, maybe combined with an external utility, to code an "extended shortcut" as well?

Thanks in advance!

Research and questions / Full path vs. path to file handling
« on: March 01, 2014, 02:45:00 AM »
I just stumbled upon the following situation.

Let's assume we've set a [Interface] variable
which might also change to
and we can't tell which version we'll encounter. Folder and optional file (e.g. are entirely up to the user.

How do we know whether there's an archive to deal with or just a folder (i.e. no archive file to look at)?

I intend to handle the following cases:
  • Valid path, no archive (with or without trailing \):
    Save folder as variable and proceed
  • Valid path to archive:
    Save folder, filename, extension as variables and proceed
  • Missing or invalid user input/path:
    Error message

The problem I met is that StrFormat,Filename seems to return Folder, if no file has been specified, so I cannot rely on that. :undecided:
I'm afraid, I fail to see the solution... are there any suggestions?

Plugins / TeraByte Image for Windows
« on: February 23, 2014, 10:36:04 AM »
Thanks to the hint of oliverjia I tested IFW and liked it!
Grown fond of it, I wrote a plugin and share it with the forums. More information on the imaging solution is available here.

In order to use my plugin, execute the PE Builder Plugin Installer (IFW Start Menu) and generate a folder with PE files.
Create an archive PE.7z of these 7 files, point the plugin to it, and you're done!
(I won't embed the files themselves into the script due to legal reasons.)

Feedback is welcome. Enjoy!

Update: A new script version for the latest version has been attached.

* TeraByte Image for Windows.script (22.13 kB - downloaded 192 times.)

Plugins / RadioSure
« on: January 25, 2014, 05:09:37 AM »
The Best Internet Radio Player Ever! ;) - now available for WinX[PE]SE projects, latest script version successfully tested with Win8PESE.
Support for other projects possible, feel free to check.

Although this is not a "vital" script, it's quite useful to quickly check network and audio support.
Initially I wrote it for demonstrating the use of XMLStarlet (here ..elsewhere), a top-notch xml parser for the command line, kudos to Acheron @MSFN Forums for the tip, and of course Mikhail Grushinskiy for his great tool!

You'll have the choice to use the voluminous station database provided by the RadioSure maintainers or take a smaller one administered by Mikka.
The latter might be preferable in case you share my taste in music (which isn't very probable, though).
You'll see, enjoy!

(Screenshot maybe later.)

Win8PE SE HomePage / Applying cosmetic changes per script
« on: January 21, 2014, 12:26:53 AM »
Even though I mainly set screen resolution to HD I think the default window border width and titlebar size are too big.
Slim looks better.

I know which values to modify to customize them, but how could I script these? The regular way doesn't seem to work..
Basically, I need to alter 4 values in the HKCU\Control Panel\Desktop\WindowMetrics reg key (did use RegCPE).

The values are BorderWidth, CaptionFont, CaptionHeight, CaptionWidth and PaddedBorderWidth.
(I didn't manage to customize them unattendedly in Windows 8 either.)

I wonder whether I can prevent the creation of %ALLUSERSPROFILE%, more precisely "X:\ProgramData\Microsoft\Windows\Start Menu\" and its shortcuts? I receive superfluous menu entries (empty folders) I do not want. Unfortunately DirDelete or ...cmd.exe,"/C rd /s /q #$q%PDatTarget%#$q" didn't help.

In fact, there's no need for a "All Users" symlink (pointing to X:\ProgramData) in \Users...
Just a cosmetic detail I noticed after having disabled the Classic Shell script.

Win8.1 SE HomePage / Worries: PeShell -> pecmd
« on: December 21, 2013, 05:21:09 AM »
In Win8.1SE "PeShell" in Shell Loader has been changed to Pecmd (only) in Pecmd Loader, leading to new worries...

Win8PESE runs fine for me, incl. drivers just work. I used the default setting, i.e. PeShell.
Now, with Win8.1SE I don't have a choice anymore: it's Pecmd and that's all Greek (or rather Chinese) to me!

Leaving script defaults as is, I get a shittyblurry HD (?) resolution (all necessary drivers included) for most programs (Explorer, Notepad, PE Network, Opera etc.).
A few applications seem to behave normally (IE 11, StartIsBackPlus). This does not apply to Win7PESE nor Win8PESE (both using PeShell).

I don't use the pecmd.ini option yet, but I wonder if there's a minimal ini sample that may solve this?
If Win8.1SE can't be used without Pecmd, I'll revert to Win8PESE as my current situation is just bad...

Win8PE SE HomePage / How to change the following text
« on: December 08, 2013, 10:55:40 PM »

I'd like to change "Windows 8 Enterprise Evaluation" string to something else, e.g. "Win8PE SE December Edition 2013".
Is this feasible, which file(s) do I need to modify for this?


after several months I recently downloaded a current copy of Win8PESE x86 and ran a build with Holger's PENetwork 0.58.1.
The latter doesn't work for my home WiFi (I have yet to scrutinize..), although correct drivers are added by the script.

I noticed 1 red error line (I configured WB082 to continue) I keep receiving:
FileCopy - Failed to copy [%BaseDir%\Mount\Win8PESE\Source\InstallWimSrc\Windows\system32\netprof.dll] to: [%BaseDir%\Target\Win8PESE\Windows\system32\netprof.dll]: Das System kann die angegebene Datei nicht finden.
[= The system cannot find that file. Btw, I'm building with Windows 7x64 German.]

I suspect the missing netprof.dll to cause my PENetwork worries (somehow). When launched at startup, PENetwork comes up with an error (see screenshot).
The device manager correctly shows lan/wifi network adapters and the correspondent drivers.

I don't know what to look for. Any suggestions?

Win7PE SE HomePage / Wireless input device worries
« on: November 24, 2013, 06:50:38 AM »

recently I bought a wireless Keyboard and Mouse.
They both use a "Unifying" receiver (stuck in a usb3 port of my PC) and after configuring it for these input devices they're working flawlessly for Windows 7 x64 Ultimate with no problems soever.

Win7PESE however became rather troublesome: in 8 of 10 starts neither keyboard nor mouse gets recognised!
(It does work in grub4dos and I'm able to choose a menu option, though.)

I disconnected any usb device from the system, just the stick with Win7PESE is connected.

As it already worked a few times, I assume it's principally possible. The keyboard model is Logitech K750 and the mouse is Logitech M705.
In Windows 7 x64 keyboard and mouse work "out of the box", no additional drivers had to be installed.
I haven't the faintest idea where to start seeking for solutions ...  :confused:
Do I need some sort of additional device script?

Any help is highly appreciated!

Research and questions / Any .NET C# developers to help me...?
« on: May 04, 2013, 12:05:00 AM »

I'm in favour of extending the Iron script of mine by handling (Chrome) extensions in the crx package format, similar to my Firefox script (which takes a random amount of extensions and prepares them for automatic integration).

Alas, it seems to be by far more laborious! The main obstacle to solve:
The crx extension's id can't be read out, it needs to be computed. After searching high and low I found this sparse blog entry with sample code.

As I've got no knowledge of .NET C# whatsoever I can't tell if that class that handles .crx files works (as expected).
I need apart from 7z.dll an executable to be run from command line (x86/x64) that takes a crx file as parameter and prints the computed ID to stdout, period. No more, no less, I hope it's that simple, I'm no .NET developer...

Anybody here to support me with this?

Plugins / Notepad++ universal Plugin
« on: April 21, 2013, 05:52:40 AM »
This is the thread for the officially Notepad++ universal script of mine.

It has been primarily written and tested for Win8.1SE. Kudos to everybody who contributed to the script, especially to Lancelot and ChrisR!

Why Notepad++ universal? First off, I didn't put any program files into the script, you'll need to be online to fetch the current setup file (via AutoIt). That way it's always up to date. Apart from that, I played with the tool xmlStarlet to easily customize xml files, and last not least I added some eye candy so you might optionally change the program's default icon and associated file extension(s). On the other hand, if you don't like, you don't have to... and if you're more into "Real men don't click!" maybe check out another script of mine. :wink:

Download the script below. And have fun!

Update: Broken for current Notepad++ versions!

Questions and Support / Notepad++ universal [RC TESTING]
« on: April 18, 2013, 07:33:10 AM »
Okay, this has been my first WB script last year and has since been steadily evolved.
By now it's not "yet another script for Notepad++" but maybe the best one around... well, at least it aims to be. :wink:

Unfortunately, one routine stopped working a couple of weeks ago when the macro library stuff was introduced.
I don't know that for sure, but what I do know is that it worked perfectly well last year (that means: before).

Okay, here's the snippet I'm talking about:
Code: [Select]
// Associations for multiple file extensions, AssocStrg generated from [Interface]:
// AssocStrg="ini,log,txt,script,xml"

Usually, I associated up to 8 extensions like this and it used to work like a charm.
But not any more, and I have no clue why...

Are there known issues with Associate_File or am I missing something...?
Any help greatly appreciated!


Win8PE SE HomePage / Thoughts about my WinXPE SE project...
« on: January 20, 2013, 02:33:12 AM »

Firstly, a big thank you ChrisR for another great project! :thumbsup:

Currently I'm fiddling around Win7PE SE but I'm revising my (self written) scripts and driver stuff to migrate to Win8PE SE asap (might still take me a while, though).

There's one thing I'm unsure, concerning network functionality. Maybe you could clarify this a bit:
I'd like to have a VPN option within WinXPE SE (replace the "X" with the corresponding number), for a regular Windows 7 system this is easily done by installing e.g. the OpenVPN client.

I doubt Win7PESE being able to get OpenVPN running (I suppose it to be critical due to network protocol installation), has that changed in Win8PESE?
I guess Holger's PENetwork will be needed, too and network supply is fragmentary as it is the case for Win7PESE.

Anybody to enlighten me if VPN is a futile wish or not...?

Thanks! :cool:

Oh, by the way... concerning app scripts developped for Win7PESE:
Could I use them just like this for Win8PESE as well?

Pages: [1] 2
Powered by EzPortal