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 a95c81a commit 907f0b2Copy full SHA for 907f0b2
1 file changed
functions/New-PSDCImage.ps1
@@ -164,6 +164,15 @@
164
$computer = [PsfComputer]$uriHost
165
166
if (-not $computer.IsLocalhost) {
167
+ $command = [ScriptBlock]::Create("Import-Module dbatools")
168
+ Invoke-PSFCommand -ComputerName $computer -ScriptBlock $command -Credential $DestinationCredential
169
+
170
+ $command = [ScriptBlock]::Create("Import-Module PSFramework")
171
172
173
+ $command = [ScriptBlock]::Create("Import-Module PSDatabaseClone")
174
175
176
$command = "Convert-PSDCLocalUncPathToLocalPath -UncPath '$ImageNetworkPath'"
177
$commandGetLocalPath = [ScriptBlock]::Create($command)
178
}
0 commit comments