Robocopy zum Drive-Dateistream schlägt in Powershell fehl, aber nicht in der Befehlszeile. Fehler 5

Robocopy zum Drive-Dateistream schlägt in Powershell fehl, aber nicht in der Befehlszeile. Fehler 5

Wenn ich Robocopy in einer Administrator-Eingabeaufforderung ausführe, wird es erfolgreich ausgeführt.

C:\Benutzer\StoreMgr>robocopy "C:\Benutzer\Öffentlich\Dokumente\Intuit\QuickBooks Point of Sale 12.0\Data\Paracept" "G:\Mein Laufwerk\Backup" qbpos1.db

ROBOCOPY :: Robust File Copy für Windows Gestartet: Freitag, 6. April 2018 15:46:37 Quelle: C:\Benutzer\Öffentlich\Dokumente\Intuit\QuickBooks Point of Sale 12.0\Data\Paracept\ Ziel = G:\Mein Laufwerk\Backup\

Dateien: qbpos1.db Optionen: /DCOPY:DA /COPY:DAT /R:1000000 /W:30

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

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

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

Dateien: 1 1 0 0 0 0 Bytes: 215,13 m 215,13 m 0 0 0 0 Zeiten: 0:00:01 0:00:01 0:00:00 0:00:00

Geschwindigkeit: 164779476 Bytes/Sek. Geschwindigkeit: 9428,757 Megabytes/Min. Ende: Freitag, 6. April 2018, 15:46:38 Uhr

Wenn ich es in Powershell ausführe, erhalte ich eine Fehlermeldung:

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"

Ich habe es ohne Parameter in Powershell mit den gleichen Fehlern ausgeführt

Powershell in allen Fällen als Administrator ausführen

Robocopy C:\Benutzer\Öffentlich\Dokumente\Intuit\QuickBooks Point of Sale 12.0\Daten\Paracept G:\Mein Laufwerk\Paracept qbpos1.db

verwandte Informationen