By default, you can't right-click > Pin a network based application to the taskbar. The following is the workaround to make it stick.
- Pin a local application to the taskbar, like Notepad.
- Right-click the taskbar icon and then right click the application in the pop-up menu > Properties
- Change the Target to the appropriate application path.
- Change Start in to the directory the application resides in.
- Click Change Icon and browse out to the application's folder and select the application. Click OK
- On the General tab, Change the name as appropriate.
- Click OK
Explorer may need to restart for the icon to change properly, but your shortcut should now work.