File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 111
111
Write-PSFMessage - Message " Started removing database images" - Level Verbose
112
112
113
113
# Get all the items
114
- $items = Get-PSDCImage - PSDCSqlCredential $pdcCredential
114
+ $items = Get-PSDCImage
115
115
116
116
if ($ImageID ) {
117
117
Write-PSFMessage - Message " Filtering image ids" - Level Verbose
216
216
Stop-PSFFunction - Message " Couldn't retrieve clone records for host $ ( $result.HostName ) " - ErrorRecord $_ - Target $hst - Continue
217
217
}
218
218
219
- if ($PSCmdlet.ShouldProcess ($item.ImageLocation , " Removing image ' $ ( $item .ImageLocation ) ' from system" )) {
219
+ if ($PSCmdlet.ShouldProcess ($item.ImageLocation , " Removing image from system" )) {
220
220
# Remove the image from the file system
221
221
try {
222
222
if ($computer.IsLocalhost ) {
247
247
}
248
248
}
249
249
250
- if ($PSCmdlet.ShouldProcess ($item.ImageLocation , " Removing image from system database" )) {
250
+ if ($PSCmdlet.ShouldProcess ($item.ImageLocation , " Removing image from database" )) {
251
251
# Remove the image from the database
252
252
try {
253
253
$query = " DELETE FROM dbo.Image WHERE ImageID = $ ( $item.ImageID ) "
You can’t perform that action at this time.
0 commit comments