diff --git a/examples/scripts/upgrade_to_ps3.ps1 b/examples/scripts/upgrade_to_ps3.ps1 index a75b158a34a..794da55bd56 100644 --- a/examples/scripts/upgrade_to_ps3.ps1 +++ b/examples/scripts/upgrade_to_ps3.ps1 @@ -17,6 +17,7 @@ # 6.2 is 2012 # 6.3 is 2012 R2 +Start-Transcript "C:\powershell\scriptlog.txt" if ($PSVersionTable.psversion.Major -ge 3) { @@ -77,5 +78,5 @@ else $FileName = $DownLoadUrl.Split('/')[-1] download-file $downloadurl "$powershellpath\$filename" - -."$powershellpath\$filename" /quiet +Stop-Transcript +."$powershellpath\$filename" /quiet /log "C:\powershell\install.log" diff --git a/library/windows/win_feature.ps1 b/library/windows/win_feature.ps1 index 6b9ecc445ab..bd2b287419e 100644 --- a/library/windows/win_feature.ps1 +++ b/library/windows/win_feature.ps1 @@ -24,7 +24,6 @@ Import-Module Servermanager; $params = Parse-Args $args; $result = New-Object psobject @{ - win_feature = New-Object psobject changed = $false }