Product: PowerShell Universal
Version: 5.0.0-beta5
Hello,
I was playing around with a test setup of [5.0.0-beta5].
I basically wanted to create a very basic example, get-aduser $user.
Works perfect on v4 but not on v5. I did install it on a different device but one that has the ActiveDirectory module installed.
When i look in PSUD under the Modules, i don’t see ActiveDirectory listed.
When i then look at the output of the script :
+ Import-Module $LocalHost
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : System.IO.FileNotFoundException,Microsoft.PowerShell.Commands.ImportModuleCommand
Exception calling "StartJob" with "4" argument(s): "Could not load file or assembly
'System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its
dependencies. The system cannot find the file specified."
At C:\Program Files (x86)\Universal\UniversalHost.psm1:28 char:13
+ [UniversalHost.AgentService]::StartJob($Port, $ParentProc ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : FileNotFoundException
Import-Module : Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral,
PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
At C:\Program Files (x86)\Universal\UniversalHost.psm1:9 char:5
Why is it doing that and how do i fix it?
Edit:
the v4 version was installed by installing the module, v5 was installed as a server version with the installation through the MSI. Perhaps that’s an important difference?
I assume when i installed v4, it gets installed in the same folder as the ActiveDirectory module. Now, installing it from an MSI, i see it has a separate folder under c:\ program files.