I was testing V4 in PowerShell Studio (current version with updates) and cant get a script to run without error. I’m using a blank template (output from Master Wrapper)and get the output below. I’m looking into other possible issues on my specific system, but thought i’d post here to see if anyone else has seen this.
Running (Invoke-AppDeployToolkit.ps1) Script…
Platform: V5 64Bit (STA) (Elevated)
Parameters: -DeploymentType Install -DeployMode Interactive
Analyzing Script (Results in Tools Output panel)…
WARNING: The ‘Microsoft.PowerShell.Management’ module was not imported because the ‘Microsoft.PowerShell.Management’ snap-in was already imported.
WARNING: The ‘Microsoft.PowerShell.Security’ module was not imported because the ‘Microsoft.PowerShell.Security’ snap-in was already imported.
WARNING: The ‘Microsoft.PowerShell.Utility’ module was not imported because the ‘Microsoft.PowerShell.Utility’ snap-in was already imported.
ERROR: Import-Module : The expression after ‘&’ in a pipeline element produced an object that was not valid. It must result in a command name, a script block, or a CommandInfo object.
At F:__IP_GLB_TEMPLATE_PSADT4.0.6\Invoke-AppDeployToolkit.ps1:193 char:2
-
Import-Module -FullyQualifiedName @{ ModuleName = $moduleName; Gu ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: (
[Import-Module], CmdletInvocationException
- FullyQualifiedErrorId : BadExpression,Microsoft.PowerShell.Commands.ImportModuleCommand
- CategoryInfo : InvalidOperation: (
*** PowerShell Script finished. ***
Execution time: 00:00:03
Script Ended