Export-Excel now resolves unresolved pspaths.

This commit is contained in:
josheinstein
2015-04-08 16:22:34 -04:00
parent 6f1604b33f
commit b6b03cfca4

View File

@@ -62,6 +62,8 @@ function Export-Excel {
Begin {
$Path = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($Path)
if(Test-Path $Path) {
if($Force) {
Remove-Item $Path