From f0a2d076e374ba8aad9a0a613ce08530ea50eaa2 Mon Sep 17 00:00:00 2001 From: dfinke Date: Fri, 17 Jun 2022 11:38:19 -0400 Subject: [PATCH] Update Import-Html with better defaults --- Public/Import-Html.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Public/Import-Html.ps1 b/Public/Import-Html.ps1 index 5c0b020..6a22df4 100644 --- a/Public/Import-Html.ps1 +++ b/Public/Import-Html.ps1 @@ -3,13 +3,13 @@ function Import-Html { [CmdletBinding()] param( $Url, - $Index, + [int]$Index = 0, $Header, - [int]$FirstDataRow=0, + [int]$FirstDataRow = 0, [Switch]$UseDefaultCredentials ) - $xlFile = [System.IO.Path]::GetTempFileName() -replace "tmp","xlsx" + $xlFile = [System.IO.Path]::GetTempFileName() -replace "tmp", "xlsx" Remove-Item $xlFile -ErrorAction Ignore Write-Verbose "Exporting to Excel file $($xlFile)"