14.05.2022 – Windows/Remove_edit_password_from_VBA.md

Remove edit password from VBA

To remove the (purely cosmetic) password needed to view/edit VBA in .dotm and .xlsm files

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#/bin/bash

# Based on https://stackoverflow.com/a/31073075/6432559

if [[ "$#" -ne 1 ]]; then
        echo "Usage: $0 <file>"
        echo "Works for .dotm and .xlsm"
        exit
fi

if [[ -f word/vbaProject.bin ]]; then
        echo "word/vbaProject.bin already exists, exiting..."
        exit
fi

unzip $1 word/vbaProject.bin

sed s/DPB/DPx/ word/vbaProject.bin > word/vbaProject.bin.tmp

mv word/vbaProject.bin.tmp word/vbaProject.bin

zip $1 word/vbaProject.bin

rm word/vbaProject.bin
rmdir word/
06.01.2022 – Windows/Extend_WebDAV_filesize_limit.md

Extend WebDAV file size limit

Windows applies an arbitrary file size limit of 50 Mb to WebDAV drives, despite natively supporting file sizes up to 4 Gb. To fix this change the registry key

1
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters\FileSizeLimitInBytes

to 4294967295 or 0xffffffff and reboot or restart the WebClient Service.

11.03.2021 – Windows/LabView/LabView_causes_BSOD_with_usbser.sys.md

LabView causes BSOD with usbser.sys

At least since LabView version 2010, LabView frequently causes a BSOD due to an DRIVER_IRQL_NOT_LESS_OR_EQUAL when using USB CDC through usbser.sys on Windows 7.

This can be (kind of) solved by setting the serial read and serial write VIs to synchronous mode: Right-click respective VI > Synchronous I/O Mode > Synchronous

05.03.2020 – Windows/Run_Ultimaker_Cura_in_RDP_session.md

Run Ultimaker Cura in RDP session

When trying to run Ultimaker Cura in a RDP session one is probably confronted with a message like this

1
Could not probe OpenGL. This program requires OpenGL 2.0 or higher. Please check your video card drivers.

complaining about missing OpenGL support. This can be easily solved by placing the OpenGL software rendering library in the folder of the Cura executable, usually C:\Program Files\Ultimaker Cura\. Builds for opengl32sw.dll are available from: https://download.qt.io/development_releases/prebuilt/llvmpipe/windows/

Further, it’s important to rename the file to opengl32.dll.

15.12.2015 – Windows/Mitigating_driver_issues_during_Windows_7_installation.md

Mitigating driver issues during Windows 7 installation

Within productive corporate environments Windows 7 is still the preferably used Windows version since its successors come along with quite a few downsides. While Windows 7 is able to operate quite well even on progressive hardware the installation process is generating more and more trouble due to unsupported devices. Issues are mostly caused by unsupported storage devices, making it seem nearly impossible to install Windows 7 on some systems. Loading additional drivers at the beginning of the installation process is also likely to fail in most scenarios. The search for a way to install Windows 7 on a Intel Skylake platform featuring a Samsung SM951 M.2 NVMe as its solely storage device led me to the following solution, that most likely will solve many similar issues.

The basic idea behind this is the utilization of the Windows 10 installer to install a Windows 7. This might sound like a very bulky way, but is actually quite easy and straight forward to achieve. However, you will need both a Windows 7 and a Windows 10 image to get started. Each image actually internally comprises two Windows images, one contains a minimal set of features and acts as the installer (/sources/boot.wim), while the second one is the one being copied to the target device (/sources/install.wim). Since the installation process seemingly did not change much since Vista the possibility of combining different installer and target images should now become obvious. Depending on the source of your Windows image, they might come in different formats. Take a look into the /sources folder of your image to determine whether it already contains the desired /sources/boot.wim and /sources/install.wim files. If you find the image to come along in any other format you will first need to convert it into .wim images. This can simply be done using Rufus [1] to copy the image to a USB flash drive, which is in case of the Windows 7 most likely desired anyway. Rufus will automatically convert the image to the .wim format and the files may then be copied from the USB drive. Now simply take the /sources/boot.wim and /sources/setup.exe from the Windows 10 drive and replace the corresponding files on the Windows 7 USB flash drive. That’s it!

While this approach will solve most driver issues during the installation itself it might be necessary to take further measures in order to obtained a working Windows 7 installation in the end. Booting after the installation might still fail if drivers are not existent. Therefore you need to carefully evaluate which additional drivers you want to include into your Windows 7 image to get a properly booting system. In the specific case that was investigated NVMe support had to be added to the Windows 7 image. Integrating the .msu packages can be done using the free version of ntlite [2]. Microsoft provides NVMe support through KB2990941 [3] and a corresponding bugfix KB3087873 [4]. Additionally it might be advantageous to further include KB2685811 [5] and KB2685813 [6]. This provided a fully working Windows 7 system and a seamless install experience.

[1] https://rufus.akeo.ie/
[2] https://www.ntlite.com/
[3] https://support.microsoft.com/en-us/kb/2990941
[4] https://support.microsoft.com/en-us/kb/3087873
[5] https://www.microsoft.com/en-us/download/details.aspx?id=38423
[6] https://www.microsoft.com/en-us/download/details.aspx?id=38421

This article is licensed under CC BY-NC-SA 4.0