Archive for the ‘Windows’ Category
Posted by jpluimers on 2016/11/22
Everybody surely knows about more and more software trying to smart replace straight double quotes " with opening ” and closing ” ones.
WordPress is no exception and when you forget to embed these quotes in code and/or pre tags, your source code won’t paste as such.
For terminal code (nx or Windows console doesn’t matter much): it’s much worse: you should not copy/paste code directly to the terminal.
I usually did this any way to get quotes corrected, but – via Daniela Osterhagen referring Dorin Duminica – recently came across a reason that’s much more important:
What’s on the clipboard might not be what you saw on the web site.
An elaborate example is at User iteraction based exploitation: WYSINWYC (What you see is not what you copy) but it comes down to:
- The clipboard is getting all text from a selection
- The browser hides some part of that text by cleverly using one more more
style tags.
So basically copy/pasting to the console is just as risky as piping curl through bash or another shell. You can actually detect that server-side (and abuse it)!
–jeroen
Source: Copy-Paste from Website to Terminal
Posted in Console (command prompt window), Development, Power User, Scripting, Software Development, Windows | Leave a Comment »
Posted by jpluimers on 2016/10/27
On a Windows 8.1 system, I’m having trouble installing KB2267602 [Definition Update for Windows Defender – KB2267602 (Definition 1.231.456.0)] as it throws error 8007051A each time even after reboots, shutdowns, re-tries and using different ISPs.
https://www.google.com/search?q=8007051A+KB2267602 didn’t get me any further.
On other Windows 8.1 systems this went fine (this one has Visual Studio 2015 installed) as were the Windows 7 installs of KB2310138 [Definition Update for Microsoft Security Essentials – KB2310138 (Definition 1.231.456.0)].
I’ve not tried manual downloads from https://www.microsoft.com/security/portal/definitions/adl.aspx [WayBack] yet: anyone tried that before?
–jeroen _ _ _
Posted in LifeHacker, Power User, Windows, Windows 8.1 | Leave a Comment »
Posted by jpluimers on 2016/10/27
Slightly updated the answer the /D Y part will recursively accept taking ownership when directory listing is denied in the permissions:
To fix really broken permissions, the best is to run these two commands one after the other:
takeown /F /D Y "C:\path\to\folder" /R
icacls "C:\path\to\folder" /reset /T
The first one will give you ownership of all the files, however that might not be enough, for example if all the files have the read/write/exec permissions set to “deny”. You own the files but still cannot do anything with them.
In that case, run the second command, which will fix the broken permissions.
via: permissions – recursively change owner windows 7 – Super User
–jeroen
Posted in Batch-Files, Development, Power User, Scripting, Software Development, Windows, Windows 10, Windows 7, Windows 8, Windows 8.1, Windows 9, Windows Development, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Vista, Windows XP | Leave a Comment »
Posted by jpluimers on 2016/10/21
display – How can I move spaces between external monitors in Mavericks? – Ask Different [WayBack]
You can only move spaces which are non-active.
For example, lets say you have spaces 1 and 2. If space 1 is active, you can not move it. You first have to select space 2 then you can move space 1 to a different monitor.
This helped me work around version 8.35 of Microsoft Remote Desktop for OS X breaks second monitor usage [WayBack]:
- Double click a connection so it goes to a new space on the primary display
- Make the normal space active (by three finger swiping on the primary display)
- Go to mission control
- Move the non-active RDP space to the secondary monitor
Sometimes the primary monitor doesn’t have a non-active space any more so you have to create a new one in the top right of Mission Control [WayBack].
–jeroen
Posted in Apple, Mac, Mac OS X / OS X / MacOS, MacBook, MacBook Retina, MacBook-Pro, OS X 10.9 Mavericks, Power User, Remote Desktop Protocol/MSTSC/Terminal Services, Windows | Leave a Comment »
Posted by jpluimers on 2016/10/21
Not sure why yet, but on a gigabit network between a Windows 2008 R2 Server and a Proxmox KVM machine, WinSCP gets around 10 megabit/second and FileZilla > 30 megabit/second.
Others seem to agree that filezilla faster than winscp.
–jeroen
Posted in Communications Development, Development, Internet protocol suite, Power User, Proxmox, SSH, TCP, Virtualization, VMware, Windows, Windows Server 2008, Windows Server 2008 R2 | 1 Comment »
Posted by jpluimers on 2016/10/17
(Don’t ask for details; at a site with Microsoft Data Protection Manager an external company monitoring that DPM didn’t notice various backups – including the domain controller – were months old despite daily tape changes; so then the RAID fell out because multiple disks failed within hours, contingency aftermath took weeks)
When you logon to a client machine and get “The trust relationship between this workstation and the primary domain failed”
- do not rejoin your client machine to the domain
- ensure on the client machine:
- you can logon without a domain account (part of any contingency plan should be logging in with a local account or without a domain controller if you have the – potential risky – cached domain logon enabled, otherwise you’ve to do more nasty measures)
- you have PowerShell v3 or later on the client machine
- on the client machine
- Ensure it’s connected to the same network as the domain controller
- Ensure you can ping the domain controller
- Test with
Powershell Test-ComputerSecureChannel to see if the connection is indeed lost:
- if it returns
True then you have a different problem (have not seen this, but just in case: this blog post won’t solve that)
- if it returns
False, then continue with the next step
- Run
Powershell Test-ComputerSecureChannel -Repair and check if the output is True (when False there )
Note there are various posts suggesting to use Powershell Reset-ComputerMachinePassword and netdom.exe resetpwd /s:dc-hostname.domain /ud:domainadminusername /pd:*. Though faster than rejoining the domain, the Powershell Test-ComputerSecureChannel is even faster and easier.
–jeroen
via:
Posted in Power User, Windows | Leave a Comment »
Posted by jpluimers on 2016/10/10

Checking for Updates until the first of never…
I already re-installed a few of the VMs from scratch (re-licensing and such) but to no avail.
So I’m wondering: does Microsoft hate Windows 7 users this much?
Microsoft keeps refreshing KB3172605 (July 2016 update rollup for Windows 7 SP1 and Windows Server 2008 R2 SP1).
I’ve seen at least 3 different versions that I needed in the same number of occasions of updating Windows 7 x64 VMs that usually are off-line (I use them every few weeks to do some testing).
Each and every time the situation is the same:
- Windows Update will be stuck in “Checking for Updates” for hours (even overnight)
- When stuck, Windows Update still uses 1 CPU core at 100%
- Warm reboot won’t help
- Shutdown and cold boot won’t help
The only thing that consistently solves this is reliably:
- Reboot and logon
- Stop Windows Update service (
wuauserv in Task Manager)
- Wait until CPU usage drops
- Install the latest Windows Update client
- currently this is KB3172605 which – though named July 2016 – has been refreshed quite a few times as late as September 2016
- older versions (including KB3102810, KB3138612 and KB3161647) are described at Windows 7 SP1 Windows Update stuck checking for updates – Super User
- the installation of the .MSU file with the Windows Update client usually seems to “hang” on
"checking for installed updates" for like 30 minutes, but if you forget to stop the Windows Update service, the .MSU install will be stuck on "checking for installed updates" forever
- Reboot
- Try Windows Update again and wait for at least 30 minutes
You need to re-apply to a more recent Windows Update client each and every time this happens taking a few hours of your time.
Windows 8
After a fresh boot, I tried https://download.microsoft.com/download/A/A/8/AA842D3A-D5B0-4307-89F1-3485D88A1853/Windows8-RT-KB2937636-x64.msu via How to update the Windows Update Agent to the latest version but it shows [WayBack] “The update is not applicable to your computer”
–jeroen
via: Windows 7 SP1 Windows Update stuck checking for updates – Super User [WayBack]
See also:
Posted in Power User, Windows, Windows 7 | 1 Comment »
Posted by jpluimers on 2016/10/07
I’m a fan of sdelete, but the most recent v2.0 update seems – released alongside SysInternals support for nano server – to be a lot slower than the v1.61 version:
I have the same problem with Sdelete on my SSD.The resource monitor showed v.2 writing the disk at approx 40Mb p/swhile v.1.61 at 1,300 Mb p/s SDelete v.2.0 is faulty (shows 100% all the time) and dead slow, don’t use it.Google v.1.61 , it works just fine.
Source: SDelete hangs at 100% – Sysinternals Forums [WayBack]
–jeroen
Posted in Power User, sdelete, SysInternals, Windows | Leave a Comment »
Posted by jpluimers on 2016/09/30
There are odd things with the InitialKeyboardIndicators registry setting. Technet only documents bitflag value 2.
According to the docs it should be a bitflag, but sometimes you encounter InitialKeyboardIndicators value 2147483648 (0x80000000) especially as part of the .DEFAULT profile at HKEY_USERS\.DEFAULT\Control Panel\Keyboard.
The problem I had was having these symptoms:
- while logging in locally, I manually turned of the NumLock (as I have a 46W6740 UltraNav keyboard without a numeric keypad)
- after logging in locally, it magically turned itself on even with
InitialKeyboardIndicators=0 in my local profile at HKEY_CURRENT_USER\Control Panel\Keyboard.
- after logging in locally and turning it off, future local logons would keep it off
- after logging in remotely, it would magically turn itself on while logged in
- after having logged in remotely, the local logon console would have it turned on again
After reading Num Lock problem: Strange number in InitialKeyboardIndicators in Registry, I set both values to 0.
Now that it is 0 in both at HKEY_USERS\.DEFAULT\Control Panel\Keyboard and HKEY_CURRENT_USER\Control Panel\Keyboard, symptoms 4-5 still hold. Strange.
It is not the same problem as Num Lock state not retained after resume from Hybrid Shutdown in Windows 8 and Windows Server 2012.
If it persist, I might just put a script in: [Partially Solved: re-wired keyboard lol] Registry key “InitialKeyboardIndicators” NEVER keeps NumLock ON + ScrollLock ON (6) at startup and reverts back to NumLock ON (2).
–jeroen
Read the rest of this entry »
Posted in Conference Topics, Conferences, Event, Keyboards and Keyboard Shortcuts, KVM keyboard/video/mouse, Power User, ThinkPad, UltraNav keyboards, Windows | Leave a Comment »
Posted by jpluimers on 2016/09/21
These NirSoft tools helped me finding out about some crashes that never made it to the event log:
At first I thought my own software development caused them, but In the end they were caused by buggy video drivers.
–jeroen
Posted in Development, Power User, Software Development, Windows | Leave a Comment »