We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9783a87 commit 8e6c4bfCopy full SHA for 8e6c4bf
internal/scripts/postimport.ps1
@@ -35,9 +35,10 @@ if([bool](Get-PSFConfigValue -FullName psdatabaseclone.informationstore.mode) -e
35
$jsonCred = Get-PSFConfigValue -FullName psdatabaseclone.informationstore.credential
36
37
# Create a PS Drive
38
- if (-not [bool](Get-PSDrive -Name PSDCJSONFolder -Scope Global)) {
+ if (-not [bool](Get-PSDrive -Name PSDCJSONFolder -Scope Global -ErrorAction SilentlyContinue)) {
39
try {
40
$null = New-PSDrive -Name PSDCJSONFolder -Root $jsonFolder -Credential $jsonCred -PSProvider FileSystem -Scope Global
41
+ Start-Sleep -Seconds 1
42
}
43
catch {
44
Stop-PSFFunction -Message "Couldn't create PS Drive" -Target $jsonFolder -ErrorRecord $_
0 commit comments