Piped directory creation to verbose instead of output
This commit is contained in:
parent
97cd6b84fd
commit
d5821e17a5
|
|
@ -77,7 +77,7 @@
|
|||
Get-Item -Path "$Source\*" -Exclude ('Teams') | ForEach-Object {
|
||||
$tmpDst = Join-Path $Destination $_.Name
|
||||
if( -not ( Test-Path -Path $tmpDst -PathType Container ) ){
|
||||
New-Item "$tmpDst" -ItemType Container
|
||||
New-Item "$tmpDst" -ItemType Container | Write-Verbose
|
||||
}
|
||||
Copy-Directory $_ $tmpDst -ProgressBarIndex 1 | Out-File $log -Append
|
||||
}
|
||||
|
|
@ -108,8 +108,8 @@ function Copy-Directory {
|
|||
Get-ChildItem -Recurse $SourceDir | ForEach-Object { $TotalLength += $_.Length }
|
||||
$ProgressLength = 0
|
||||
Get-ChildItem $SourceDir | ForEach-Object {
|
||||
Write-Progress -Activity "Copying Directory" -Status "$SourceDir to $DestDir" -Id $ProgressBarIndex -PercentComplete $($ProgressLength*100/$TotalLength)
|
||||
$item = $_
|
||||
Write-Progress -Activity "Copying Directory $SourceDir to $DestDir" -Status "$item" -Id $ProgressBarIndex -PercentComplete $($ProgressLength*100/$TotalLength)
|
||||
$DestDirPath = Join-Path $DestDir $item.Name
|
||||
switch -Regex ($item.Mode) {
|
||||
'd-----' {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
Patch
|
||||
-Update Custom SHSApps have more robust detection
|
||||
-Fix SCCM queries return mac address correctly
|
||||
-Update UserProfileBackup has progress bars!
|
||||
-Add UserProfileBackup has progress bars!
|
||||
-Update UserProfileBackup doesn't copy Sticky Notes anymore
|
||||
-Update UserProfileBackup reports fewer non-critical errors
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue