Can't install...

Mar 3, 2014 at 7:55 PM
This looks like the perfect solution for some problems my group is having, but I can't get Install-Module to install the TS module.

I couldn't use the .msi to install the module (it was having difficulty accessing my corporate 'home' dir), so I unzipped and copied the PSTerminalServices dir into the appropriate place.

Get-Modules -ListAvailable lists PSTerminalServices, but when I call Install-Module, I get this error:

Module .\PSTerminalServices.psm1 was not found in central repository

What am I doing wrong?

PS v4 on Win7.
Mar 4, 2014 at 7:32 AM

I'm not familiar with the Install-Module command, can you elaborate on it?

A few things I would check?

Unzip the archived module file into one of the supported modules folders. To get the list ,run the following command:
$env:PSModulePath -split ';'

For example, if you extract the zip file to your personal documents folder, the path to the module should look like:

I would also check that all module files are unblocked. In PowerShell and higher you can use the Unblock-File cmdlet to unblock them.

Get-ChildItem C:\Users\<userName>\Documents\WindowsPowerShell\Modules\PSTerminalServices -File -Recurse |