1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| New-PSDrive : Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous
connections to the server or shared resource and try again
At line:20 char:1
+ New-PSDrive -Name destination -PSProvider FileSystem -Root $destination -Credent ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (destination:PSDriveInfo) [New-PSDrive], Win32Exception
+ FullyQualifiedErrorId : CouldNotMapNetworkDrive,Microsoft.PowerShell.Commands.NewPSDriveCommand
New-Item : Cannot find drive. A drive with the name 'destination' does not exist.
At line:31 char:1
+ New-Item -Path ($sauvegarde, $destination) -ItemType "directory" | Out-Null
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (destination:String) [New-Item], DriveNotFoundException
+ FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.NewItemCommand
Remove-PSDrive : Cannot find drive. A drive with the name 'destination' does not exist.
At line:40 char:1
+ Remove-PSDrive -Name destination -Force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (destination:String) [Remove-PSDrive], DriveNotFoundException
+ FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.RemovePSDriveCommand |
Partager