diff --git a/test/powershell/Language/Scripting/Debugging/DebuggerScriptTests.Tests.ps1 b/test/powershell/Language/Scripting/Debugging/DebuggerScriptTests.Tests.ps1 index b50473b151..08b94bb997 100644 --- a/test/powershell/Language/Scripting/Debugging/DebuggerScriptTests.Tests.ps1 +++ b/test/powershell/Language/Scripting/Debugging/DebuggerScriptTests.Tests.ps1 @@ -46,7 +46,7 @@ Describe "Breakpoints set on custom FileSystem provider files should work" -Tags if ($null -ne $breakpoint) { $breakpoint | remove-psbreakpoint } if (Test-Path $scriptFullName) { Remove-Item $scriptFullName -Force } - if ($null -ne (Get-PSDrive -Name tmpTestA1 2>$null)) { Remove-PSDrive -Name tmpTestA1 -Force } + if ($null -ne (Get-PSDrive -Name tmpTestA1 2> $null)) { Remove-PSDrive -Name tmpTestA1 -Force } } } diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/FileSystem.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/FileSystem.Tests.ps1 index f921d77453..f974e370eb 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/FileSystem.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/FileSystem.Tests.ps1 @@ -99,7 +99,7 @@ Describe "Basic FileSystem Provider Tests" -Tags "CI" { It "Verify Move-Item for directory" { $destDir = "DestinationDirectory" - New-Item -Path $destDir -ItemType Directory -ErrorAction Stop >$null + New-Item -Path $destDir -ItemType Directory -ErrorAction Stop > $null Move-Item -Path $testFile -Destination $testDir Move-Item -Path $testDir -Destination $destDir $testDir | Should -Not -Exist @@ -444,8 +444,8 @@ Describe "Hard link and symbolic link tests" -Tags "CI", "RequireAdminOnWindows" $dirSymLinkToDir = Join-Path $TestPath "symd-link-to-dir" $junctionToDir = Join-Path $TestPath "junction-to-dir" - New-Item -ItemType File -Path $realFile -Value $fileContent >$null - New-Item -ItemType Directory -Path $realDir >$null + New-Item -ItemType File -Path $realFile -Value $fileContent > $null + New-Item -ItemType Directory -Path $realDir > $null } Context "New-Item and hard/symbolic links" { @@ -608,7 +608,7 @@ Describe "Hard link and symbolic link tests" -Tags "CI", "RequireAdminOnWindows" [string]$Target ) - Remove-Item -Path $Link -ErrorAction SilentlyContinue >$null + Remove-Item -Path $Link -ErrorAction SilentlyContinue > $null Test-Path -Path $Link | Should -BeFalse Test-Path -Path $Target | Should -BeTrue } @@ -648,9 +648,9 @@ Describe "Hard link and symbolic link tests" -Tags "CI", "RequireAdminOnWindows" $folder = Join-Path $TestDrive "folder" $file = Join-Path $TestDrive "folder" "file" $link = Join-Path $TestDrive "sym-to-folder" - New-Item -ItemType Directory -Path $folder >$null - New-Item -ItemType File -Path $file -Value "some content" >$null - New-Item -ItemType SymbolicLink -Path $link -value $folder >$null + New-Item -ItemType Directory -Path $folder > $null + New-Item -ItemType File -Path $file -Value "some content" > $null + New-Item -ItemType SymbolicLink -Path $link -value $folder > $null $childA = Get-Childitem $folder Remove-Item -Path $link -Recurse $childB = Get-ChildItem $folder @@ -686,20 +686,20 @@ Describe "Copy-Item can avoid copying an item onto itself" -Tags "CI", "RequireA $symdToOther = "$subDir/symd-to-other" $junctionToOther = "$subDir/junction-to-other" - New-Item -ItemType File $filePath -Value "stuff" >$null - New-Item -ItemType Directory $subDir >$null - New-Item -ItemType Directory $otherSubDir >$null - New-Item -ItemType File $otherFile -Value "some text" >$null - New-Item -ItemType SymbolicLink $symToOther -Value $otherSubDir >$null - New-Item -ItemType SymbolicLink $secondSymToOther -Value $otherSubDir >$null - New-Item -ItemType SymbolicLink $symToSym -Value $symToOther >$null - New-Item -ItemType SymbolicLink $symToOtherFile -Value $otherFile >$null - New-Item -ItemType HardLink $hardToOtherFile -Value $otherFile >$null + New-Item -ItemType File $filePath -Value "stuff" > $null + New-Item -ItemType Directory $subDir > $null + New-Item -ItemType Directory $otherSubDir > $null + New-Item -ItemType File $otherFile -Value "some text" > $null + New-Item -ItemType SymbolicLink $symToOther -Value $otherSubDir > $null + New-Item -ItemType SymbolicLink $secondSymToOther -Value $otherSubDir > $null + New-Item -ItemType SymbolicLink $symToSym -Value $symToOther > $null + New-Item -ItemType SymbolicLink $symToOtherFile -Value $otherFile > $null + New-Item -ItemType HardLink $hardToOtherFile -Value $otherFile > $null if ($IsWindows) { - New-Item -ItemType Junction $junctionToOther -Value $otherSubDir >$null - New-Item -ItemType SymbolicLink $symdToOther -Value $otherSubDir >$null + New-Item -ItemType Junction $junctionToOther -Value $otherSubDir > $null + New-Item -ItemType SymbolicLink $symdToOther -Value $otherSubDir > $null } } diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Content.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Content.Tests.ps1 index eac53dd780..4c4e9337f3 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Content.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Get-Content.Tests.ps1 @@ -343,7 +343,7 @@ baz Compare-Object -ReferenceObject $expected -DifferenceObject $result | Should -BeNullOrEmpty } It "A warning should be emitted if both -AsByteStream and -Encoding are used together" { - [byte[]][char[]]"test" | Set-Content -Encoding Unicode -AsByteStream "${TESTDRIVE}\bfile.txt" -WarningVariable contentWarning *>$null + [byte[]][char[]]"test" | Set-Content -Encoding Unicode -AsByteStream "${TESTDRIVE}\bfile.txt" -WarningVariable contentWarning *> $null $contentWarning.Message | Should -Match "-AsByteStream" } } diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Restart-Computer.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Restart-Computer.Tests.ps1 index 6bb32d48e3..6d7121c335 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Restart-Computer.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Restart-Computer.Tests.ps1 @@ -73,7 +73,7 @@ try Context "Restart-Computer Error Conditions" { It "Should return the proper error when it occurs" { Set-TesthookResult -testhookName $restartTesthookResultName -value 0x300000 - Restart-Computer -ErrorVariable RestartError 2>$null + Restart-Computer -ErrorVariable RestartError 2> $null $RestartError.Exception.Message | Should -Match 0x300000 } diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Set-Content.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Set-Content.Tests.ps1 index f8406f4247..9df39a443a 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Set-Content.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Set-Content.Tests.ps1 @@ -11,7 +11,7 @@ Describe "Set-Content cmdlet tests" -Tags "CI" { It "A warning should be emitted if both -AsByteStream and -Encoding are used together" { $testfile = "${TESTDRIVE}\bfile.txt" "test" | Set-Content $testfile - $result = Get-Content -AsByteStream -Encoding Unicode -Path $testfile -WarningVariable contentWarning *>$null + $result = Get-Content -AsByteStream -Encoding Unicode -Path $testfile -WarningVariable contentWarning *> $null $contentWarning.Message | Should -Match "-AsByteStream" } diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Stop-Computer.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Stop-Computer.Tests.ps1 index 5ada11ada0..7b69f8c719 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Stop-Computer.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Stop-Computer.Tests.ps1 @@ -46,7 +46,7 @@ try Context "Stop-Computer Error Conditions" { It "Should return the proper error when it occurs" { Set-TesthookResult -testhookName $stopTesthookResultName -Value 0x300000 - Stop-Computer -ErrorVariable StopError 2>$null + Stop-Computer -ErrorVariable StopError 2> $null $StopError.Exception.Message | Should -Match 0x300000 } } diff --git a/test/powershell/Modules/Microsoft.PowerShell.Management/Test-Connection.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Management/Test-Connection.Tests.ps1 index d5347790c1..8eb6801249 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Management/Test-Connection.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Management/Test-Connection.Tests.ps1 @@ -252,7 +252,7 @@ Describe "Test-Connection" -tags "CI" { } It "Quiet works" { - $result = Test-Connection $hostName -TraceRoute -Quiet 6>$null + $result = Test-Connection $hostName -TraceRoute -Quiet 6> $null $result | Should -BeTrue } diff --git a/test/powershell/Modules/Microsoft.PowerShell.Security/ConstrainedLanguageModules.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Security/ConstrainedLanguageModules.Tests.ps1 index 664ee154f0..c9a7bfa575 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Security/ConstrainedLanguageModules.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Security/ConstrainedLanguageModules.Tests.ps1 @@ -79,7 +79,7 @@ try $expectedError.FullyQualifiedErrorId | Should -BeExactly "Modules_CannotExportMembersAccrossLanguageBoundaries,Microsoft.PowerShell.Commands.ExportModuleMemberCommand" # PrivateAddTypeAndRun private function should not be exposed - $result = Get-Command -Name T1TestModule_System32\PrivateAddTypeAndRun 2>$null + $result = Get-Command -Name T1TestModule_System32\PrivateAddTypeAndRun 2> $null $result | Should -BeNullOrEmpty } } @@ -175,7 +175,7 @@ try function PublicFnE {{ "PublicFnE"; PublicDSFnE }} function PrivateFnE {{ "PrivateFnE"; PrivateDSFnE }} '@ -f $dotSourceFilePathE | Out-File -FilePath $moduleFilePathE - + # Module with dot source ps1 file and nested modules that do use Export-ModuleMember $scriptModuleNameF = "ModuleDotSourceNestedExport_System32" $moduleFilePathF = Join-Path $TestModulePath ($scriptModuleNameF + ".psm1") @@ -254,7 +254,7 @@ try Invoke-LanguageModeTestingSupportCmdlet -SetLockdownMode $ExecutionContext.SessionState.LanguageMode = "ConstrainedLanguage" - Import-Module -Name $moduleFilePathA -Force 2>$null + Import-Module -Name $moduleFilePathA -Force 2> $null throw "No Exception!" } catch @@ -276,7 +276,7 @@ try Invoke-LanguageModeTestingSupportCmdlet -SetLockdownMode $ExecutionContext.SessionState.LanguageMode = "ConstrainedLanguage" - Import-Module -Name $moduleFilePathB -Force 2>$null + Import-Module -Name $moduleFilePathB -Force 2> $null throw "No Exception!" } catch @@ -384,7 +384,7 @@ try Invoke-LanguageModeTestingSupportCmdlet -SetLockdownMode $ExecutionContext.SessionState.LanguageMode = "ConstrainedLanguage" - $module = Import-Module -Name $moduleFilePathG -Force -PassThru -ErrorVariable expectedError 2>$null + $module = Import-Module -Name $moduleFilePathG -Force -PassThru -ErrorVariable expectedError 2> $null } finally { @@ -401,7 +401,7 @@ try Invoke-LanguageModeTestingSupportCmdlet -SetLockdownMode $ExecutionContext.SessionState.LanguageMode = "ConstrainedLanguage" - $module = Import-Module -Name $moduleFilePathH -Force -PassThru 2>$null + $module = Import-Module -Name $moduleFilePathH -Force -PassThru 2> $null throw "No Exception!" } catch @@ -467,7 +467,7 @@ try $module = Import-Module -Name $manifestFileName -Force -PassThru & $module PrivateFn - + throw "No Exception!" } catch @@ -492,7 +492,7 @@ try $modulePath = Join-Path $TestDrive $moduleName New-Item -ItemType Directory -Path $modulePath - # Parent module directory + # Parent module directory $scriptModuleName = "TrustedParentModule_System32" $scriptModulePath = Join-Path $modulePath $scriptModuleName $moduleFileName = Join-Path $scriptModulePath ($scriptModuleName + ".psm1") @@ -550,13 +550,13 @@ try Import-Module -Name $scriptModuleName -Force # Public functions should be available in the session - $GetCommandPublicFnCmdInfo = Get-Command -Name "PublicFn" 2>$null + $GetCommandPublicFnCmdInfo = Get-Command -Name "PublicFn" 2> $null # Private functions should not be available in the session # Get-Command will import the TrustedImportModule_System32 module from the PSModulePath to find PrivateFn1 - # However, it should not get TrustedImportModule_System32 from the module cache because it was loaded in a + # However, it should not get TrustedImportModule_System32 from the module cache because it was loaded in a # different language mode, and should instead re-load it (equivalent to Import-Module -Force) - $GetCommandPrivateFnCmdInfo = Get-Command -Name "PrivateFn1" 2>$null + $GetCommandPrivateFnCmdInfo = Get-Command -Name "PrivateFn1" 2> $null } finally { @@ -581,16 +581,16 @@ try Import-Module -Name $scriptModuleName -Force # Directly import nested TrustedImportModule_System32 module. - # This makes TrustedImportModule_System32 functions visible but should not use the existing loaded module + # This makes TrustedImportModule_System32 functions visible but should not use the existing loaded module # since all functions are visible, but instead should re-load the module with the correct language context, # ensuring only explictly exported functions are visible. Import-Module -Name $scriptModuleImportName # Public functions should be available in the session - $ReImportPublicFnCmdInfo = Get-Command -Name "PublicFn" 2>$null + $ReImportPublicFnCmdInfo = Get-Command -Name "PublicFn" 2> $null # Private functions should not be available in the session - $ReImportPrivateFnCmdInfo = Get-Command -Name "PrivateFn1" 2>$null + $ReImportPrivateFnCmdInfo = Get-Command -Name "PrivateFn1" 2> $null } finally { @@ -631,8 +631,8 @@ try Import-Module -Name $manifestFileName -Force -ErrorAction Stop throw "No Exception!" } - catch - { + catch + { $expectedError = $_ } finally diff --git a/test/powershell/Modules/Microsoft.PowerShell.Security/ConstrainedLanguageRestriction.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Security/ConstrainedLanguageRestriction.Tests.ps1 index 1c3e66a08e..d042c8528f 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Security/ConstrainedLanguageRestriction.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Security/ConstrainedLanguageRestriction.Tests.ps1 @@ -79,8 +79,8 @@ try Import-Module -Name $trustedModuleName1 -Force -ErrorAction Stop; "@ $command += @' - $null = help NestedFn1 2>$null; - $result = Get-Command NestedFn1 2>$null; + $null = help NestedFn1 2> $null; + $result = Get-Command NestedFn1 2> $null; return ($result -ne $null) '@ $isCommandAccessible = powershell.exe -noprofile -nologo -c $command diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Add-Type.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Add-Type.Tests.ps1 index b1a431b9e5..20ed4b0afa 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Add-Type.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Add-Type.Tests.ps1 @@ -213,7 +213,7 @@ public class AttributeTest$guid : PSCmdlet } It "By default Add-Type treats 'warnings as errors'." { - { Add-Type -TypeDefinition $codeWarning -WarningAction SilentlyContinue 2>$null } | Should -Throw -ErrorId "COMPILER_ERRORS,Microsoft.PowerShell.Commands.AddTypeCommand" + { Add-Type -TypeDefinition $codeWarning -WarningAction SilentlyContinue 2> $null } | Should -Throw -ErrorId "COMPILER_ERRORS,Microsoft.PowerShell.Commands.AddTypeCommand" } It "IgnoreWarnings suppress 'warnings as errors'." { diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Implicit.Remoting.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Implicit.Remoting.Tests.ps1 index 5ae35a8bba..a6c1d7f8c3 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Implicit.Remoting.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Implicit.Remoting.Tests.ps1 @@ -230,7 +230,7 @@ try $icmErr = $($icmOut = Invoke-Command $session { foo1 }) 2>&1 $proxiedErr = $($proxiedOut = foo1) 2>&1 - $proxiedOut2 = foo1 2>$null + $proxiedOut2 = foo1 2> $null $icmOut = "$icmOut" $icmErr = "$icmErr" diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/clixml.tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/clixml.tests.ps1 index 570aa1181a..6cdcd4f3b5 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/clixml.tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/clixml.tests.ps1 @@ -218,14 +218,14 @@ Describe "Deserializing corrupted Cim classes should not instantiate non-Cim typ $skipNotWindows = ! $shouldRunTest if ( $shouldRunTest ) { - (Get-Process -Name 'win32calc','calculator' 2>$null) | Stop-Process -Force -ErrorAction SilentlyContinue + (Get-Process -Name 'win32calc','calculator' 2> $null) | Stop-Process -Force -ErrorAction SilentlyContinue } } AfterAll { if ( $shouldRunTest ) { - (Get-Process -Name 'win32calc','calculator' 2>$null) | Stop-Process -Force -ErrorAction SilentlyContinue + (Get-Process -Name 'win32calc','calculator' 2> $null) | Stop-Process -Force -ErrorAction SilentlyContinue } } @@ -238,7 +238,7 @@ Describe "Deserializing corrupted Cim classes should not instantiate non-Cim typ $count = 0 while (!$calcProc -and ($count++ -lt 20)) { - $calcProc = Get-Process -Name 'win32calc','calculator' 2>$null + $calcProc = Get-Process -Name 'win32calc','calculator' 2> $null Start-Sleep -Milliseconds 500 } diff --git a/test/powershell/Modules/ThreadJob/ThreadJob.Tests.ps1 b/test/powershell/Modules/ThreadJob/ThreadJob.Tests.ps1 index fcded8ee1b..987c2be13c 100644 --- a/test/powershell/Modules/ThreadJob/ThreadJob.Tests.ps1 +++ b/test/powershell/Modules/ThreadJob/ThreadJob.Tests.ps1 @@ -391,23 +391,23 @@ Describe 'Job2 class API tests' -Tags 'CI' { $job = Start-ThreadJob -ScriptBlock { "Hello" } | Wait-Job - $getJob = Get-Job -InstanceId $job.InstanceId 2>$null + $getJob = Get-Job -InstanceId $job.InstanceId 2> $null $getJob | Should -Be $job - $getJob = Get-Job -Name $job.Name 2>$null + $getJob = Get-Job -Name $job.Name 2> $null $getJob | Should -Be $job - $getJob = Get-Job -Command ' "hello" ' 2>$null + $getJob = Get-Job -Command ' "hello" ' 2> $null $getJob | Should -Be $job - $getJob = Get-Job -State $job.JobStateInfo.State 2>$null + $getJob = Get-Job -State $job.JobStateInfo.State 2> $null $getJob | Should -Be $job - $getJob = Get-Job -Id $job.Id 2>$null + $getJob = Get-Job -Id $job.Id 2> $null $getJob | Should -Be $job # Get-Job -Filter is not supported - $result = Get-Job -Filter @{Id = ($job.Id)} 3>$null + $result = Get-Job -Filter @{Id = ($job.Id)} 3> $null $result | Should -BeNullOrEmpty } diff --git a/test/tools/Modules/PSSysLog/PSSysLog.psm1 b/test/tools/Modules/PSSysLog/PSSysLog.psm1 index 1b62e4d2c5..b667534a01 100644 --- a/test/tools/Modules/PSSysLog/PSSysLog.psm1 +++ b/test/tools/Modules/PSSysLog/PSSysLog.psm1 @@ -1038,7 +1038,7 @@ function Clear-PSEventLog { param([Parameter(Mandatory=$true)][string]$Name) - wevtutil cl $Name 2>$null + wevtutil cl $Name 2> $null } # Waits on a windows event with a property with a particular value @@ -1077,7 +1077,7 @@ function Wait-PSWinEvent $recordsToReturn = @() -        foreach ($thisRecord in (get-winevent -FilterHashtable $filterHashtable -Oldest 2>$null)) +        foreach ($thisRecord in (get-winevent -FilterHashtable $filterHashtable -Oldest 2> $null))         { if($PsCmdlet.ParameterSetName -eq "ByPropertyName") { diff --git a/tools/packaging/packaging.psm1 b/tools/packaging/packaging.psm1 index da00bcedb5..3e4d46c338 100644 --- a/tools/packaging/packaging.psm1 +++ b/tools/packaging/packaging.psm1 @@ -759,7 +759,7 @@ function New-UnixPackage { if ($pscmdlet.ShouldProcess("Create package file system")) { # refers to executable, does not vary by channel - New-Item -Force -ItemType SymbolicLink -Path $linkSource -Target "$Destination/pwsh" >$null + New-Item -Force -ItemType SymbolicLink -Path $linkSource -Target "$Destination/pwsh" > $null # Generate After Install and After Remove scripts $AfterScriptInfo = New-AfterScripts -Link $Link @@ -1186,8 +1186,8 @@ function New-AfterScripts # platform specific changes. This is the only set of platforms needed for this currently # as Ubuntu has these specific library files in the platform and macOS builds for itself # against the correct versions. - New-Item -Force -ItemType SymbolicLink -Target "/lib64/libssl.so.10" -Path "$Staging/libssl.so.1.0.0" >$null - New-Item -Force -ItemType SymbolicLink -Target "/lib64/libcrypto.so.10" -Path "$Staging/libcrypto.so.1.0.0" >$null + New-Item -Force -ItemType SymbolicLink -Target "/lib64/libssl.so.10" -Path "$Staging/libssl.so.1.0.0" > $null + New-Item -Force -ItemType SymbolicLink -Target "/lib64/libcrypto.so.10" -Path "$Staging/libcrypto.so.1.0.0" > $null $AfterInstallScript = [io.path]::GetTempFileName() $AfterRemoveScript = [io.path]::GetTempFileName() @@ -1204,8 +1204,8 @@ function New-AfterScripts # add two symbolic links to system shared libraries that libmi.so is dependent on to handle # platform specific changes. This appears to be a change in Debian 9; Debian 8 did not need these # symlinks. - New-Item -Force -ItemType SymbolicLink -Target "/usr/lib/x86_64-linux-gnu/libssl.so.1.0.2" -Path "$Staging/libssl.so.1.0.0" >$null - New-Item -Force -ItemType SymbolicLink -Target "/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2" -Path "$Staging/libcrypto.so.1.0.0" >$null + New-Item -Force -ItemType SymbolicLink -Target "/usr/lib/x86_64-linux-gnu/libssl.so.1.0.2" -Path "$Staging/libssl.so.1.0.0" > $null + New-Item -Force -ItemType SymbolicLink -Target "/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2" -Path "$Staging/libcrypto.so.1.0.0" > $null } }