PowerShell hosting and $MyInvocation

Many PowerShell users utilize code as shown below to determine where the running script resides: function get-scriptdirectory{  $invocation=(get-variable MyInvocation -Scope 1).Value  Split-Path $invocation.myinvocation.path} Unfortunately, if the script runs inside a custom host, such as PrimalScript’s internal host, for a good…
Read More

RSS SAPIEN Info Center

Search

Enter any query and press enter
Advanced search operators:
+ ⟶ Term must appear
- ⟶ Term must not appear
"" ⟶ Exact string must appear
How do I use these?

Join our mailing list

Enter your email address to subscribe to our mailing lists for Monthly Blog Digests, Product Announcements and more (you can choose which you receive once you sign-up!)

Tags

Categories

Archives

Dashboard