packaging a powershell script for powershell V.1

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
bn2hunt
Posts: 101
Joined: Tue Oct 06, 2009 12:08 am

packaging a powershell script for powershell V.1

Post by bn2hunt » Thu Jul 26, 2012 6:59 am

How do I package a script so that it will work in Powershell V1? We still have a some pc's that aren't running V2. When I package a script that works in V1, after packaging I get an error "Could not load type 'System.management.automation.runspaces.initialsessionstate from assembly 'system.management.automation, Version=1.0.0.0, Culture=neutral, PublicKeyToaken = 31b...e35". It runs fine on a pc that has V2 installed already. Any ideas?

Thanks

Dan

User avatar
davidc
Posts: 5913
Joined: Thu Aug 18, 2011 4:56 am

packaging a powershell script for powershell V.1

Post by davidc » Thu Jul 26, 2012 7:54 am

Unfortunately the packager does not support PowerShell v1. David
David
SAPIEN Technologies, Inc.