How to use mklink for OneDrive For Business content sync?

By default, OneDrive will sync only the content inside its main folder. In such cases you need to copy all files and folders in the predefined location on your C partition. In any case, after some period of time, you will forget to copy some important data, and expose your data to the chance of content loss. How to prevent that?

Yes, you can automate all those backups for any folder on your Windows machine! To make OneDrive sync a folder which is not located in your main OneDrive folder, you have to  create a directory junction with mklink. You can simply create a symbolic link on local machine to sync important data from any folder into OneDrive For Business folder.

Correct syntax:  mklink [options] <Link> <Target>

Target is the file/folder that exists, and Link is the created one that links to the target. For Options type /j

Example:

  1. Open Command Prompt (Run as administrator)
  2. Type the following command: mklink /j “%UserProfile%\OneDrive\Folder name” “The full path to your folder”. You have to replace the ‘Folder name’ part with the desired name which will reproduce your folder in the OneDrive storage. Also, provide the correct path to the destination folder that you want to sync. For example:
    mklink /j “%UserProfile%\OneDrive\MyBackup” “c:\Contracts”

Important:

  • mklink can’t transmute directories into junctions, so the folder name (<Link> argument) has to be available before it can create the junction

Windows Server 2012 R2 losing network connection after reboot

Many users around the internet report that Windows Server 2012 R2 loses network connection after reboot. Today I had the same problem. I have basic home network plugged into a wired TP-Link router bridged to a DSL modem. All computers on the local network are accesible, but there no internet connectivity after reboot. To fix it, I tried o disable my NIC then re-enable it and then I get internet connectivity. I’ve tried deleting and re-installing the driver, looking for updates etc.

 

So, what is a solution?

 

Create a Windows Scheduled Task (taskschd.msc or Control Panel\System and Security\Administrative Tools\Task Scheduler) with a Trigger: begin the task At start up and in the Advanced settings delay task for 10 seconds. Then add an Action to Start a program and select your .bat script.

 

.bat script content:

 

@echo on
timeout /t 10
netsh interface set interface “Local Area Connection” DISABLED
timeout /t 10
netsh interface set interface “Local Area Connection” ENABLED

Extreme d.o.o. as Microsoft Country Partner of the Year :)

This year Microsoft received over 3,200 nominations from 112 different countries for the 46 different global award opportunities. There are also 96 different Country Partner of the Year Awards honoring partner achievements across the globe.

It is my pleasure to announce that Extreme d.o.o. has been awarded as Country Partner of the Year in Serbia. This represents an outstanding result for the company and team who worked tirelessly over the pa st 15 years.

Congratulations!