JBY Technologies

Robocopy does not recognize network drives

When running Robocopy in Powershell as administrator, I cannot copy to network shares or mapped network drives.

The problem is due to the different environment you are running in as administrator.

Map the network drive with net use in the Powershell admin session: net use X: \\computer\share

Now run the Robocopy command: Robocopy /S /E C:\sourcedir\target X:\destdir\target

Note in the above Robocopy syntax, the source and target subdirectories are the same name. Robocopy is designed to synchronize the target directory with the source directory.

Note also that the options precede the paths in Robocopy syntax.

All Robocopy options: Robocopy Help Page

Bookmark and Share

Legal Notices