robocopy para o fluxo de arquivos do Drive falha no powershell, mas não na linha de comando Erro 5

0

Quando executo o robocopy em um prompt de comando do administrador, ele é executado com êxito.

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

Quando eu o executo no powershell, recebo um erro:

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"

Eu o executei sem parâmetros no powershell com os mesmos erros

Executando o powershell como administrador em todos os casos

Robocopy C: \ Usuários \ Public \ Documentos \ Intuit \ QuickBooks Ponto de Venda 12.0 \ Data \ Paracept G: \ Meu Drive \ Paracept qbpos1.db

    
por David 09.04.2018 / 16:30

0 respostas