Solving tech problems

Mscorsvw.exe high CPU usage on Windows Server 2012

System Administration

I sometimes really hate Windows. When you do obligatory updates sometimes it takes hours for operating system to settle down and stop using CPU and memory like crazy. One of these processes are mscorsvw.exe and ngen.exe which do some .NET assemblies optimization. I read about a lot of angry posts about these processes and that it takes hours “to optimize” and during these hours your server and services on it are suffering (and you need to be clever when finding explanations to your clients). Follow these steps: Navigate to the…read more

Can not connect to Remote Desktop Connection in Windows Server 2012R2

System Administration

I faced today strange problem that I could not connect to Windows server through Remote Desktop Connection. When I click “Connect” it disconnect me immediately. Restarting the server didn’t helped. Here is the simple trick how you can connect… Open RDC dialog and click on Show Options Go to Advanced tab  and choose under If server authentication fails option Connect and don’t warn me You are now successfully connected after pressing the Connect button Glad to hear if this saved you day. You can Tweet this solution so help someone…read more

How to free space on Disk C

System Administration

There are a lot of system stuff that just eat important space in Windows on disk C (if you have SSD and smaller C partition you don’t want to run out of space). The best way is to create a junction (symbolic link) and to move some big folder to another partition (you need to have one first). By doing this Windows will be fooled because you will get the same path but it will be shortcut (pointer) to another real location. To do this move completely chosen folder to…read more

Remove annoying Get Windows 10 tray icon

System Administration

Control Panel > Windows Update > Installed updates (at bottom left) -> find and remove KB3035583 (under Windows section) -> Restart computer It can come again with next update so be careful and if you see it then right click on it (under Select the updates you want to install) and click Hide this update As final check, see if you have a registry key HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Gwx and delete it.

Creating virtual host aliases under Apache

System Administration

Sometimes you want to create folder alias for your website like this: /images to be mapped to /home/your_account/public_html/images. To do this, you need to edit Apache httpd.conf file which is located at /etc/httpd/conf It is clever to put all aliases in one file in the same directory and name them aliases.conf and then only to reference this file from httpd.conf. You will include aliases.conf in httpd.conf like this: <IfModule mod_alias.c>     Include /Applications/MAMP/conf/apache/alias </IfModule> You define alias in aliases.conf file like this: Alias /images /home/your_account/public_html/images <Directory “/home/your_account/public_html/images”>     Options Indexes…read more

Re-keying and Re-issuing MultiSAN SSL certificate in CPanel

System Administration

I have lost 6 hours of my time when I was trying to add new MultiSAN SSL on server. We already used one and we just added one new SAN placeholder for one subdomain. Server: CentOS Linux + CPanel Entered new SAN, using saved CSR and Re-issued the SSL certificate Went to https://panel.mydomain.com > SSL/TLS Manager and added the new SSL under SSL/TLS Manager > Certificates (CRT) > Generate, view, upload, or delete SSL certificates. Nothing helped because when I visited https://subdomain.mydomain.com it said that it is using old SSL…read more

Cannot resolve %windir%

System Administration

I faced once strange problem that somehow system environment variable %windir% could not be resolved. This means that all shortcuts that are pointing to C:\Windows\System32 will not work. You will not be able to set it directly by clicking with right mouse button on Computer icon and you will get this message To solve this just open this directly from Start > Run… and set this environment variable c:\Windows\System32\systempropertiesadvanced.exe In my case %windir% was pointing to undefined %SystemRoot% so I just added it and make it point to C:\Windows This…read more

Hot to check if your Linux server is vulnerable regarding the BASH bug?

System Administration

Just type this command in your SSH shell $ env x='() { :;}; echo vulnerable’ bash -c ‘echo hello’ If you got this output then you are safe: bash: warning: x: ignoring function definition attempt bash: error importing function definition for `x’ hello If you got this output then you are vulnerable and need to update: vulnerable Here is the tutorial how to do it: https://brew.sh/

Problems with Map Network Drive in Windows Server 2008R2

System Administration

To list all network shares use this command from Command Prompt: net use To delete specific network share net use /delete \\SERVER_IP\YOUR_SHARE If you map “\\SERVER_IP\SHARE1” as drive letter X using “user1” and “password1”, then try to map “\\SERVER_IP\SHARE2” (a different share) as drive letter Y using the same “user1” and “password1”, and you click the “connect using different credentials” checkbox in the Map Network Drive dialog box and specify “user1” and “password1”, you will get this INCORRECT ERROR MESSAGE that says “The network folder specified is currently mapped using…read more