The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,862 other subscribers

Links to various Visual C++ Redistributable Packages for Visual Studio downloads (arm/x64/x86 when available)

Posted by jpluimers on 2018/01/17

Link archive so I know how to get the 64-bit ARM, 32-bit Win32/x86 and 64-bit Win64/x64 downloads for the Visual C++ Redistributable files.

Note the various names of pages and files Microsoft uses.

–jeroen

Posted in C++, Development, Software Development, Visual Studio C++ | Leave a Comment »

Provisioning Windows 7 test VMs with know users/passwords

Posted by jpluimers on 2018/01/16

The proxmox side

In Proxmox, ensure you have a named backup of your machine that starts with vzdump-qemu like this:

vzdump-qemu-Win7Sp1UK.vma.lzo

That way, Proxmox knows that it can restore from it.

Don’t forget to assign a new MAC address to the network adapter so it’s unique on the network.

The Windows side

I wanted to provision this with two test accounts: one regular and one with administrator access.

The latter needs to be added to the Administrators group using [WayBacknet localgroup.

Both need passwords that (for now) never expire. This is where [WayBacknet user add fails: even if you set the correct flag, it won’t be reflected, so you need WMIC UserAccount for that.

These two posts helped me a lot with the below batch file fragment:

After restoring, run a batch file like this with an UAC token:

  call :addUser regularTestUser regularTestPassword
  net localgroup "Remote Desktop Users" "regularTestUser" /add
  call :addUser administratorTestUser administratorTestPassword
  :: https://superuser.com/questions/515175/create-admin-user-from-command-line
  net localgroup administrators administratorTestUser /add
  goto :eof
:addUser
  :: https://superuser.com/questions/515175/create-admin-user-from-command-line
  net user /expires:never /add %1 %2 /expires:never
  :: https://serverfault.com/questions/710964/accounts-suddenly-expiring-when-created-with-net-user-add-expiresnever
  WMIC UserAccount where "Name='%1'" set PasswordExpires=FALSE
  goto :eof

The Remote Desktop Users tip is from [WayBackEnable remote desktop from command line (CMD) but that post has “beautified” double quotes in them, so net localgroup by default complains it cannot find the group. The code above should have regular quotes.

Finally the computer needs a new name. Again WMIC to the rescue here as Windows 7 only comes with PowerShell 2.0 which cannot rename a computer.

Again with a UAC token, execute something like this:

WMIC ComputerSystem where Name="%COMPUTERNAME%" call Rename Name=INNOSETUPTEST
%windir%\System32\shutdown.exe -r

This last tip was via [WayBackwindows 7 – Renaming computers via command prompt – Super User.

–jeroen

Posted in Power User, Proxmox, Virtualization, Windows, Windows 7 | Leave a Comment »

Changing component class at run-time on demand for older Delphi versions need a bit more magic than you’d expect

Posted by jpluimers on 2018/01/16

Just in case I ever need to do heavy Delphi 2007 magic to change the component class of an object instance:

[WayBack] Quite unusual compiler behaviour (for older compilers) as seen here:http://stackoverflow.com/questions/41181767/patching-instance-class-requires-base-… – David Heffernan – Google+

References:

–jeroen

Source: Quite unusual compiler behaviour (for older compilers) as seen here: http://…

Posted in Delphi, Delphi 2007, Development | Leave a Comment »

Potential wifi drop problem caused by Google devices – Google Product Forums

Posted by jpluimers on 2018/01/15

Sometimes the same problem here on an Asus RT-N66U: Potential wifi drop problem caused by Google devices – Google Product Forums [Archive.is].

Related:

Via [WayBack] Google Cast-apparaten veroorzaken wifi-drop-outs bij verschillende routers – Computer – Nieuws – Tweakers

–jeroen

 

Posted in Power User, WiFi | Leave a Comment »

Best SSDs: Holiday 2017

Posted by jpluimers on 2018/01/15

Not just a great overview for the season, but also a good overview on what the state of the art in various SSD products is: [WayBackBest SSDs: Holiday 2017.

Recommended reading when you are looking for SSDs

–jeroen

Posted in Hardware, Power User, SSD | Leave a Comment »

Intel Sightings in ESXi Bundled Microcode Patches for VMSA-2018-0004 (52345)

Posted by jpluimers on 2018/01/15

If you’ve installed this patch [WayBack] Intel Sightings in ESXi Bundled Microcode Patches for VMSA-2018-0004 (52345), then please read the article if your processor is affected by microcode updates in it.

To inspect which processor is in your machine, please see:

On my system, this was enough:

vim-cmd hostsvc/hostsummary | grep cpuModel
vim-cmd hostsvc/hosthardware | grep -w -A7 "cpuPkg\|cpuFeature" | grep "description\|eax\|ebx\|ecx\|edx\|vendor"

The above statements are based on:

I was lucky, but for now, ESXi has retracted it.

So please disregard my previous post VMware ESXi 6.5.0 Patch History.

–jeroen

Posted in ESXi6, ESXi6.5, Power User, Virtualization, VMware, VMware ESXi | Leave a Comment »

It’s Crash-Along Cymbals! Can you keep up with the bonkers finale of Tchaikovsky 4? – London Philharmonic Orchestra

Posted by jpluimers on 2018/01/15

This is so cool!

And yes: I can. Even with the big cymbals (:

–jeroen

 

There is another one with timpani:

And of course there is the live version (9 minutes!)

Posted in About, Adest Musica, Fun, Personal | Leave a Comment »

SexiLog – better insight in VMware vSphere/ESXi logs

Posted by jpluimers on 2018/01/15

On my watch list. Hopefully by now they have more recent Kibana support:

[WayBackAny plans for Kibana 5 support? · Issue #43 · sexibytes/sexilog · GitHub

–jeroen

via: Matthijs ter Woord

Posted in Power User, VMware, VMware ESXi | Leave a Comment »

Ubuntu – changing hostname without rebooting

Posted by jpluimers on 2018/01/15

Assembled from various bits in [WayBackHow do I change the hostname without a restart? – Ask Ubuntu.

Assume your new host name is newHostName.

  1. edit /etc/hosts and replace the old hostname with newHostName
  2. Perform these commands:
    hostnamectl set-hostname newHostName
    exec bash
    hostname -f

Both the command prompt and the hostname output should show newHostName.

Note: if you get this when performing hostname -f then you forgot to edit /etc/hosts as per [WayBack] Just so everyone knows, the edit of /etc/hosts did the trick the 12.04 – Why I get hostname: Name or service not known error? – Ask Ubuntu:

hostname: Name or service not known

–jeroen

Posted in *nix, Linux, Power User, Ubuntu | Leave a Comment »

du -h -c -s *  — shows human readable total sizes of all subdirectories and a overall total

Posted by jpluimers on 2018/01/15

Inspired by [WayBacklinux command line: du — how to make it show only total for each directories – Stack Overflow

du -h -s -c *

This displays the human readable (-h) total (-s) with a grand total (-c) of all subdirectories (*).

–jeroen

Posted in *nix, *nix-tools, Power User | Leave a Comment »