04-04-19 03:24 AM
04-04-19 01:12 PM
06-04-19 01:02 AM
06-04-19 02:10 AM
Param( $source, $destination, $level, $confirm, $force, $whatif ) $Params = @{ Path = $source DestinationPath = $destination }; # = " -Path " + $source if($level -ne $Null) { #$paramlist += " -CompressionLevel " + $level $Params.Add("CompressionLevel",$level); } if($confirm -eq "True") { #$paramlist += " -Confirm" $Params.Add("Confirm",''); } if($force -eq "True") { #$paramlist += " -Force" $Params.Add("Force",$force); } if($whatif -eq "True") { #$paramlist += " -WhatIf" $Params.Add("WhatIf",''); } #$paramlist += " -DestinationPath " + $destination Compress-Archive @Params
08-04-19 07:24 AM
10-05-19 02:40 PM