Category: Windows Server 2008

How to Fix RDP not Saving Password / Credentials (Windows Remote Desktop Connection)

After upgrading to Windows 10, I have had some issues with a couple of RDP connections that wouldn’t store the username and password (credentials). Despite ticking the box to save the credentials, it would always prompt me to enter the password.

Here’s how to fix the issue with RDP not saving the login information, which should work not just on Windows 10, but also other versions of Windows if you have the same problem Continue reading

How to Fix Alt Gr Key Not Working

If the Alt Gr key stops working, close Remote Desktop Connection if it is open. Try it out now!

There’s an old bug that causes the Alt-Gr button on your keyboard to mysteriously malfunction.

This is an old problem which still persists on Windows 10.

This bug has been plaguing me and others for many, many years. Since we use the AltGr key to produce the @ (at) sign here in Norway,

Even in 2019, I still get this problem all the time.

I just wanted to share the solution in case anyone else has the same issue, so hopefully it helped you out if you’re reading this, if not, please leave a comment!

PS! You can still try to help by voting for this Alt Gr bug to get fixed.

Either search for “Feedback Hub” on Windows 10 and log in if it asks you to.

Then click here.

Or, alternatively, open Edge in Windows 10, and paste this into the URL (address) bar:

feedback-hub:?contextid=937&feedbackid=bbb4ec30-a366-47c0-bc4b-610604517539&form=1&src=1

Thanks to Slingshot in the comments for this initiative!

Script to Re-Map Windows Shares

I had some problems with the Windows Shares becoming unavailable at odd times, just randomly now and then. This meant I could no longer list and open my media files from my LG Home Theater or my Raspberry Pi.

I discovered that restarting a few services associated with Windows Folder Sharing solved the problem without the need to reboot.

This is a quick little script that I use to re-map my shared folders in Windows, including the disk shares (i.e. d$, e$) every night:

net stop LanmanServer /y
net start LanManServer
net start Browser
net start HomeGroupListener

Copy these lines in to a text-file using Notepad and save the file as “Sharemap.bat”, for example.

To set up an automatic scheduled job to run the script, open Task Scheduler (Start -> Run -> taskschd.msc) and set up a basic task: Right-click the folder area on the left and select “Create basic task”.

For the actions pane, select “Start a program” and point to the Sharemap.bat script.

For the triggers, you can set it to run every night at 5 in the morning or something similar.

If you’re using TrueCrypt and need to make disk shares (d$, e$ etc) map up after TrueCrypt mapping has taken place, create a trigger and set it to run “At log on”, with a delay that’s long enough to allow you to mount the TrueCrypt volumes before it runs (5-10 minutes maybe).

Alternatively, you can simply create a shortcut to “sharemap.bat” or save the file directly to your desktop and run it manually as needed.

How it works:
Stopping the LanmanServer service automatically stops the child services Browser and HomeGroupListener as well, automagically – so we only need to start those services, or at least I chose to do it that way to be on the safe side.

These network services are responsible for making Windows Shares available on the network, so it is sometimes necessary to restart them if there are any issues with finding shares, especially disk shares that are not automatically mapped by Windows, caused perhaps by delayed mounting from TrueCrypt or similar applications.

Efficient File Copying With Microsoft Richcopy

Download Richcopy Now

Many are already familiar with the Robocopy command line utility from Microsoft, bundled with all recent versions of Windows. Robocopy basically provides a good level of granular control over folder copy operations. Since Windows 7 and Server 2008, Robocopy even supports multithreaded copying.

Robocopy has its limitations, however, and I would most times prefer to use a tool with a user interface. This has actually existed since 2006, when Microsoft engineer Derk Benisch created “Robocopy GUI”, but there is an even better alternative around these days…

Continue reading

Multithreaded File Copies with Robocopy in Windows 7

Robocopy is included in Windows 7 and features a new multi-threaded copy option. To perform a multi-threaded copy, you use the new /MT[:n] switch, where n indicates the number of threads to be used. By default, n is 8 when you use the /MT option, and can be any value from 1 to 128.
Note that the multi-threaded option is not compatible with the /IPG and /EFSRAW options.

System Crash: Microsoft-Windows-Kernel-Power

“The system has rebooted without cleanly shutting down first. This error could be caused if the system stopped responding, crashed, or lost power unexpectedly.”

This error can be triggered by many different things, but in general they’re all related to something to do with power management.

I just went through three motherboards, different VGA cards and harddisks, basically changing out everything except for the CPU, only to eventually find that the computer crashes were triggered by Windows 7 trying to manage the power state on my Intel Core i5 750 CPU. As soon as I disabled all C-States, it stopped crashing.

I found out about this workaround from the Technet forum threads “Periodic server core BSOD/Reboot, need help with bugcheck report” and “Iam having Microsoft-Windows-Kernel-Power crashes“.

The problem with this workaround, is that the new CPUs are supposed to save you energy by enabling the latest operating systems such as Windows 7 and Server 2008 R2 to manage them more effeciently. By disabling all of the C-States, you’re basically forcing the CPU to run at full steam. This is most severe if you’ve invested in the latest Xeon processors mainly because of these features, as mentioned somewhere further down in the first forum thread I linked to.

If this is a fault with the new Windows core, I really hope Microsoft comes out with a hotfix soon. It cost me a lot of time and frustration to find the source of – and workaround to – the problem.