Windows

Juniper VPN client keeps disconnecting

Are you using Juniper VPN Network Connect client but having issues staying connected? Maybe you are getting disconnected every 5-10 mins? I had this issue and it took me sometime to figure out this issue. I decided to write this blog post for anyone else experiencing this issue.

The error is: “The Network Connect session terminated. Do you want to re-connect?” “nc.windows.app.23711”

There is a common reason for this, when you’re on the VPN software running on your computer is trying to re-write the routing table. There are some known software packages that cause this, disable or remove the following to see if it fixes your problem:

Software Package Solution
Bonjour Service (it runs as MDNSResponder.exe), this is located in C:\Program Files\Bonjour\mDNSResponder.exe. Remove it from Add/Remove Programs
HP Software  If you’re hooked up to an HP printer remotely. This software always attempts to re-write the routing table, remove anything related to HP networking, you can keep your HP drivers but the miscellaneous software should be removed.  The only software I have left is “HP Smart”

 

Hope this helps you out, if you’re still having issues, please reach out to me on twitter.

By |September 19th, 2018|Windows|0 Comments

Windows Subsystem for Linux (WSL) – Copy ssh key from windows

I found myself needing to connect to github via bash on windows. But I didn’t want to have to register a new public key with github. I decided to use my existing key from Windows. To do this I simply copy the file from windows to wsl.

Here is the command I used, you might find it useful:

 

cp /mnt/C/Users/gordon/.ssh/{id_rsa,id_rsa.pub} ~/.ssh/ && chmod 600 ~/.ssh/id_rsa

Make sure to use the full path to your ssh folder on windows.

By |April 12th, 2017|Windows|0 Comments

Appending to your PATH variable

If you ever need to append to your PATH variable on your system follow these instructions (Windows 10).

  • In your windows 10 search, type “system variables”, then click “Edit the system environment variables”
  • Click on “Environment Variables…”:
  • In the second list, search for a variable called “Path”:
  • Double click it and then click the “New” button and enter your new path entry and click Ok.
By |March 30th, 2017|Windows|0 Comments

Set default startup directory in Cmder for admin powershell task

To set the default startup directory when executing admin power shell, use the following command (currently I have my directory set to c:\dropbox\dev)

*PowerShell -ExecutionPolicy Bypass -NoLogo -NoProfile -NoExit -Command "Invoke-Expression '. ''%ConEmuDir%\..\profile.ps1''' -new_console:d:"c:\dropbox\dev"

Make sure to make the change on the tasks tab:

2016-04-20_1108

 

Then set that task as your startup

2016-04-20_1109

By |April 20th, 2016|Windows|0 Comments

Windows 10 – Broken start button and missing icons for Edge and Windows Store

I’ve been using Windows 10 for a couple months now. I have one issue and it’s very annoying.  My start button no longer works. Yes, you heard that right. The start button no longer works and some other symptoms appear as well:

  • Windows store, Edge icons disappears from the task bar.
  • The CPU becomes extremely slow, it takes about a min to launch windows explorer.

After some google searches it seems I am not the only one experiencing this issue. What seems to have worked for me is reinstalling all the windows apps (not your personal apps, but the ones come built into windows). This may sound like a daunting tasks. Fortunately all you need to do is run a powershell script:

Let’s get started, obviously the start button doesn’t work so we have to find an alternative way to launch powershell.

  • Right click on your taskbar and hit Task Manager, you might have to wait a couple seconds.
  • In Task manager click File then Run New Task.
  • In the textbox type powershell, before hitting enter make sure to check “Create this task with administrative privileges.”
  • After powershell opens, type the following command:
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}

You might have to wait for a little, don’t worry about all the red error messages, this is normal. After everything finishes, restart your computer, you should now have access to your start menu again.

If you’re still having issues, create a comment with your symptoms and we can try to help.

 

By |February 11th, 2016|Windows|1 Comment