- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- Server Management - Remote Server Management
- >
- HPE Scripting Tools for Windows PowerShell - Bug o...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-09-2016 09:04 AM
тАО03-09-2016 09:04 AM
Hi,
Is anyone else experiencing dificulties with the Feb 2016 release of iLO cmdlets (v. 1.3.0.0)?
I installed, logged on as an admin, which atleast populates $env:PSModulesPath correctly (runas admin doesn't).
When I run the cmdlet "Find-HPiLO 192.168.5.38", I get:
Find-HPiLO 192.168.5.38 WARNING: It might take a while to search for all the HP iLOs if the input is a very large range. Use Verbose for more information. New-Object : Cannot find type [AsyncPipeline]: verify that the assembly containing this type is loaded. At C:\Program Files\Hewlett-Packard\PowerShell\Modules\HPiLOCmdlets\HPiLOCmdlets.psm1:1687 char:12 + $Output = New-Object AsyncPipeline + ~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidType: (:) [New-Object], PSArgumentException + FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand The property 'Pipeline' cannot be found on this object. Verify that the property exists and can be set. At C:\Program Files\Hewlett-Packard\PowerShell\Modules\HPiLOCmdlets\HPiLOCmdlets.psm1:1689 char:2 + $Output.Pipeline = $Pipeline + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : PropertyNotFound The property 'AsyncResult' cannot be found on this object. Verify that the property exists and can be set. At C:\Program Files\Hewlett-Packard\PowerShell\Modules\HPiLOCmdlets\HPiLOCmdlets.psm1:1690 char:2 + $Output.AsyncResult = $AsyncResult + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : PropertyNotFound Get-ThreadPipelines : Unable to find type [AsyncPipeline]. Make sure that the assembly that contains this type is loaded. At C:\Program Files\Hewlett-Packard\PowerShell\Modules\HPiLOCmdlets\HPiLOCmdlets.psm1:9823 char:15 + $iLOList = Get-ThreadPipelines -Pipelines $ThreadPipes + ~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (AsyncPipeline:TypeName) [], RuntimeException + FullyQualifiedErrorId : TypeNotFound
It appears the problem is in HPiLOCmdlets.psm1, line 27 - 33:
Add-Type @' public class AsyncPipeline { public System.Management.Automation.PowerShell Pipeline ; public System.IAsyncResult AsyncResult ; } '@
I'm affraid the .NET stuff is beyond me.
Any pointers or help would be apreciated...
Thanks, W.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-10-2016 04:09 AM - edited тАО03-10-2016 04:11 AM
тАО03-10-2016 04:09 AM - edited тАО03-10-2016 04:11 AM
SolutionUAC - grrrrr,
Although my Powershell session is running as my Domain Admin account and my Domain Admin account is added to local administrators, it doesn't "elevate" to local Admin.
I HATE UAC!!!
The toublesome bit of code in the HP module:
Add-Type @' public class AsyncPipeline { public System.Management.Automation.PowerShell Pipeline ; public System.IAsyncResult AsyncResult ; } '@
Running it on its own results in:
Add-Type : Cannot execute a program. The command being executed was "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe" /noconfig /fullpaths @"C:\Users\aDomainAdminUser\AppData\Local\Temp\dyf2ldne.cmdline". At line:1 char:1 + Add-Type @' + ~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Add-Type], ExternalException + FullyQualifiedErrorId : System.Runtime.InteropServices.ExternalException,Microsoft.PowerShell.Commands.AddTypeCommand
The file:
C:\Users\aDomainAdminUser\AppData\Local\Temp\dyf2ldne.cmdline
is never created - because UAC prevents it.
Hope that helps anyone else in a similar boat.
T, W.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2016 09:24 AM
тАО04-14-2016 09:24 AM
Re: HPE Scripting Tools for Windows PowerShell - Bug or me?
Thanks for the post. Our HPE PowerShell development team is looking at this to see if there is a better way to work around the issue and whether a fix can be added to improve this.
Thanks,
HPE PowerShell Team
jlg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-24-2016 11:07 PM
тАО04-24-2016 11:07 PM
Re: HPE Scripting Tools for Windows PowerShell - Bug or me?
We could reproduce the issue after following below steps to remove write permission on "Temp" folder of logged in windows user. It looks like logged in user does not have sufficient permissions on "TEMP" folder which is making the Find cmdlet to behavior like this.
Some temp files like *.cmdline get created by PowerShell engine when it executes our Find-HPiLO cmdlet and due to insufficient permission cmdlet is unable to create those temp files under TEMP folder which is causing for this behavior.
Below are the steps to reproduce the issue :
Remove the write permissions from the Temp folder of the user profile for example -C:\Users\user_name\AppData\Local\Temp. The AppData is usually a hidden folder.
- Right click on the Temp folder of the user profile, Go to properties-> Security
- Select the admin account and click on Edit.
- A popup тАЬPermission for TempтАЭ appears.
- Select the admin account/ account with which the user is logged in.
- Select check option in the deny list of the тАЬPermissions for the UsersтАЭ box.
- Click apply.
Hope this answers your question.
Thanks,
Gokul
HPE PowerShell Team