I write a script that uses Get-WindowsFeature cmdlet from Windows Server 2012 R2.
I packaged this script with PrimalScript 2014 and the Engine type is SAPIEN PowerShell V2 Host (Command line)x64 or SAPIEN PowerShell V2 Host (Command line) Any platform.
The the only piece of code I used is:
Code: Select all
Get-WindowsFeature
ERROR: Get-WindowsFeature : The term 'Get-WindowsFeature' is not recognized as the nam
ERROR: e of a cmdlet, function, script file, or operable program. Check the spelling o
ERROR: f the name, or if a path was included, verify that the path is correct and try
ERROR: again.
ERROR:
ERROR: At line:14 char:19
ERROR: + Get-WindowsFeature <<<<
ERROR: + CategoryInfo : ObjectNotFound: (Get-WindowsFeature:String) [],
ERROR: CommandNotFoundException
ERROR: + FullyQualifiedErrorId : CommandNotFoundException
ERROR:
It looks like PrimalScript 2014 does not support the Microsoft Server Manager cmdlets with PowerShell V2 packager at this point.
I would appreciate it if someone can let me know the reason why?
Thank you in advance.