PowerShell Install Documentation

PowerShell Install Documentation

avatar

I just attempted to install the PowerShell add-ins following the documentation and received the following in PowerShell. I made sure that I was running in x86 PowerShell. I changed v2.0.50727 to v4.0.30319 and it seemed to install without an issue.

PS H:\> set-alias installutil $env:windir\Microsoft.NET\Framework\v2.0.50727\installutil;installutil 'C:\Program Files (

x86)\Devolutions\Remote Desktop Manager\RemoteDesktopManager.PowerShell.dll';Get-PSSnapin -Name *Remote.Desktop* -Regist

ered | % { Write-Host "$_..." -NoNewline; if ( (Get-PSSnapin -Name $_ -ErrorAction SilentlyContinue) -eq $null ) { Write

-Host "installing" -ForegroundColor Yellow; Add-PsSnapin $_ } else { Write-Host "already installed" -ForegroundColor Gre

en; } }

Microsoft (R) .NET Framework Installation utility Version 2.0.50727.5420

Copyright (c) Microsoft Corporation. All rights reserved.

Running a transacted installation.

Beginning the Install phase of the installation.

See the contents of the log file for the C:\Program Files (x86)\Devolutions\Remote Desktop Manager\RemoteDesktopManager.

PowerShell.dll assembly's progress.

The file is located at C:\Program Files (x86)\Devolutions\Remote Desktop Manager\RemoteDesktopManager.PowerShell.Install

Log.

Installing assembly 'C:\Program Files (x86)\Devolutions\Remote Desktop Manager\RemoteDesktopManager.PowerShell.dll'.

Affected parameters are:

logtoconsole =

assemblypath = C:\Program Files (x86)\Devolutions\Remote Desktop Manager\RemoteDesktopManager.PowerShell.dll

logfile = C:\Program Files (x86)\Devolutions\Remote Desktop Manager\RemoteDesktopManager.PowerShell.InstallLog

The Install phase completed successfully, and the Commit phase is beginning.

See the contents of the log file for the C:\Program Files (x86)\Devolutions\Remote Desktop Manager\RemoteDesktopManager.

PowerShell.dll assembly's progress.

The file is located at C:\Program Files (x86)\Devolutions\Remote Desktop Manager\RemoteDesktopManager.PowerShell.Install

Log.

Committing assembly 'C:\Program Files (x86)\Devolutions\Remote Desktop Manager\RemoteDesktopManager.PowerShell.dll'.

Affected parameters are:

logtoconsole =

assemblypath = C:\Program Files (x86)\Devolutions\Remote Desktop Manager\RemoteDesktopManager.PowerShell.dll

logfile = C:\Program Files (x86)\Devolutions\Remote Desktop Manager\RemoteDesktopManager.PowerShell.InstallLog

The Commit phase completed successfully.

The transacted install has completed.

Remote.Desktop.Manager.9.0.7...installing

Add-PSSnapin : Cannot load Windows PowerShell snap-in Remote.Desktop.Manager.9.0.7 because of the following error: The

Windows PowerShell snap-in module C:\Program Files (x86)\Devolutions\Remote Desktop Manager\RemoteDesktopManager.PowerS

hell.dll does not have required Windows PowerShell snap-in strong name RemoteDesktopManager.PowerShell, Version=9.0.7.0

, Culture=neutral, PublicKeyToken=null.

At line:1 char:409

+ set-alias installutil $env:windir\Microsoft.NET\Framework\v2.0.50727\installutil;installutil 'C:\Program Files (x86)[/color]

Devolutions\Remote Desktop Manager\RemoteDesktopManager.PowerShell.dll';Get-PSSnapin -Name *Remote.Desktop* -Registered

| % { Write-Host "$_..." -NoNewline; if ( (Get-PSSnapin -Name $_ -ErrorAction SilentlyContinue) -eq $null ) { Write-Ho

st "installing" -ForegroundColor Yellow; Add-PsSnapin <<<< $_ } else { Write-Host "already installed" -ForegroundColor

Green; } }

+ CategoryInfo : InvalidArgument: (Remote.Desktop.Manager.9.0.7:String) [Add-PSSnapin], PSSnapInException

+ FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand

Remote.Desktop.Manager.9.2.6...installing

All Comments (2)

avatar

It's odd that it didn't work with the "v2.0.50727" path. I will investigate.

From what I understand you got it working on your machine by simply changing the for the v4.0.30319 path. Correct?

Regards,

Stéfane Lavergne

avatar

That is correct.