robocopy to Drive File Stream Fails in powershell but not at command line Error 5

0

When I run the robocopy at an admin command prompt it runs successfully.

C:\Users\StoreMgr>robocopy "C:\Users\Public\Documents\Intuit\QuickBooks Point of Sale 12.0\Data\Paracept" "G:\My Drive\Backup" qbpos1.db

ROBOCOPY :: Robust File Copy for Windows Started : Friday, April 6, 2018 3:46:37 PM Source : C:\Users\Public\Documents\Intuit\QuickBooks Point of Sale 12.0\Data\Paracept\ Dest = G:\My Drive\Backup\

Files : qbpos1.db Options : /DCOPY:DA /COPY:DAT /R:1000000 /W:30

                   1    C:\Users\Public\Documents\Intuit\QuickBooks Point of Sale

12.0\Data\Paracept\ 100% Newer 215.1 m qbpos1.db

       Total    Copied   Skipped  Mismatch    FAILED    Extras Dirs :         1         0         1         0         0         0

Files : 1 1 0 0 0 0 Bytes : 215.13 m 215.13 m 0 0 0 0 Times : 0:00:01 0:00:01 0:00:00 0:00:00

Speed : 164779476 Bytes/sec. Speed : 9428.757 MegaBytes/min. Ended : Friday, April 6, 2018 3:46:38 PM

When I run it in powershell I get an error:

ROBOCOPY :: Robust File Copy for Windows
Started : Friday, April 6, 2018 4:47:58 PM 2018/04/06 16:47:58 ERROR 5 (0x00000005) Getting File System Type of Destination G:\My Drive\QBBackups\ Access is denied.

Source : C:\Users\Public\Documents\Intuit\QuickBooks Point of Sale 12.0\Data\Paracept\ Dest - G:\My Drive\QBBackups\

Files : qbpos1.db
Options : /V /DCOPY:D /COPY:DT /B /R:1000000 /W:30

2018/04/06 16:47:58 ERROR 5 (0x00000005) Creating Destination Directory G:\My Drive\QBBackups\ Access is denied.

Bat file: powershell.exe -executionpolicy Bypass .\QBScheduledBackup.ps1 -GDrivePath 'G:\My Drive\QBBackups' -Version 12.0 -CompanyName Paracept

robocopy Command: Robocopy $DBSPath $GDrivePath qbpos1.db /COPY:DT /B /V /LOG:"C:\RobocopyLog1.txt"

I have run it without parameters in powershell with the same errors

Running powershell as admin in all cases

Robocopy C:\Users\Public\Documents\Intuit\QuickBooks Point of Sale 12.0\Data\Paracept G:\My Drive\Paracept qbpos1.db

powershell
google-drive
robocopy
asked on Super User Apr 9, 2018 by David • edited Apr 10, 2018 by David

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0