From 43c4674fd93e42baa50bf4b6cde3b8707a513114 Mon Sep 17 00:00:00 2001 From: Alex Sarafian Date: Wed, 14 Dec 2016 15:12:14 +0100 Subject: [PATCH] Bug fixes (#37) - Bug fixes - Enhancements --- CHANGELOG.Examples.md | 1 + Examples/Copy-ISHCD.NotReleased.ps1 | 8 +++-- .../ISHDeploy/Demo-Test for ISHBootstrap.zip | Bin 0 -> 2321 bytes ...et-ISHCMMenuAndButton.ImplicitRemoting.ps1 | 11 +++--- Examples/ISHDeploy/Set-ISHCMMenuAndButton.ps1 | 12 +++---- .../Grant-ISHUserLogOnAsService.ps1 | 34 +++++++++++------- .../Modules/xISHServer/Initialize-ISHUser.ps1 | 2 +- ...ut CredSSP authentication for PSSession.md | 4 +++ 8 files changed, 44 insertions(+), 28 deletions(-) create mode 100644 Examples/ISHDeploy/Demo-Test for ISHBootstrap.zip diff --git a/CHANGELOG.Examples.md b/CHANGELOG.Examples.md index c6e0437..e2e3c10 100644 --- a/CHANGELOG.Examples.md +++ b/CHANGELOG.Examples.md @@ -9,6 +9,7 @@ - When executing script `Initialize-ISHServer.ps1` locally, all **xISHServer.\*** loaded instances are removed and the correct **xISHServer.Y** is automatically imported. - Enhanced progress indicators in scripts. - Changes in the JSON structure regarding WinRM secure. +- Enhanced script `Set-ISHCMMenuAndButton.ps1` and `Set-ISHCMMenuAndButton.ImplicitRemoting.ps1` to align with the recent changes of ISHDeploy modules. ## pre-release v0.3 diff --git a/Examples/Copy-ISHCD.NotReleased.ps1 b/Examples/Copy-ISHCD.NotReleased.ps1 index 9f416e6..ea2d61f 100644 --- a/Examples/Copy-ISHCD.NotReleased.ps1 +++ b/Examples/Copy-ISHCD.NotReleased.ps1 @@ -26,7 +26,6 @@ $scriptsPaths="$sourcePath\Scripts" $computerName=Get-ISHBootstrapperContextValue -ValuePath "ComputerName" -DefaultValue $null $credential=Get-ISHBootstrapperContextValue -ValuePath "CredentialExpression" -Invoke $ishVersion=Get-ISHBootstrapperContextValue -ValuePath "ISHVersion" -$ishServerVersion=($ishVersion -split "\.")[0] . "$cmdletsPaths\Helpers\Invoke-CommandWrap.ps1" @@ -37,11 +36,11 @@ $copyBlock= { Write-Debug "targetPath=$targetPath" $cdObject=((Get-ChildItem $internalCDFolder |Where-Object{Test-Path $_.FullName -PathType Leaf}| Sort-Object FullName -Descending)[0]) - Write-Debug "cdObject=$($cdObject.FullName)" + Write-Verbose "Found latest release $($cdObject.FullName)" Copy-Item $cdObject.FullName $env:TEMP $cdPath=Join-Path $env:TEMP $cdObject.Name - Write-Debug "Copied file $($cdObject.FullName) to $cdPath" + Write-Verbose "Copied file $($cdObject.FullName) to $cdPath" Write-Debug "targetPath=$targetPath" if(-not (Test-Path $targetPath)) @@ -51,6 +50,8 @@ $copyBlock= { Remove-Item "$targetPath\*" -Force -Recurse Write-Verbose "$targetPath is ready" + $ishServerVersion=($ishVersion -split "\.")[0] + Write-Debug "ishServerVersion=$ishServerVersion" if($ISHServerVersion -eq "12") { $arguments=@("-d$targetPath","-s") @@ -63,6 +64,7 @@ $copyBlock= { "-InstallPath=`"$($targetPath.Replace('\','\\'))`"" ) } + Write-Debug "arguments=$($arguments -join " ")" Write-Debug "Unzipping $cdPath in $targetPath" Start-Process $cdPath -ArgumentList $arguments -Wait diff --git a/Examples/ISHDeploy/Demo-Test for ISHBootstrap.zip b/Examples/ISHDeploy/Demo-Test for ISHBootstrap.zip new file mode 100644 index 0000000000000000000000000000000000000000..aae9891b8d4a1ee13385be8fbd4e818c22d70e60 GIT binary patch literal 2321 zcma);c{CL49>>ShYfLE`Ol6w}nZjgH$Ud@+ZDh$7VK9xE#x|B=XtNZ_l59mNLu9Oj zNtVi9Qw$Mfi%ANh6t5*$@44^2opaB<=RVIl&-XmfdCvKs-yh%4`Px|U@rwcg03e_y zIu0H3nYCTY4**mM0{};MUX4kfUPK>dw4IryKhBO4O!m2W8t;iC`3IBn*kD9JkPjjt z82Q$5k<_muysd{{^oRv9uJbR8o#7|P3h_w1%r_G~tiY`EwU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