Skip to content
This repository has been archived by the owner on Feb 4, 2019. It is now read-only.

$MyInvocation is not supported #415

Open
ForNeVeR opened this issue Mar 26, 2016 · 0 comments
Open

$MyInvocation is not supported #415

ForNeVeR opened this issue Mar 26, 2016 · 0 comments

Comments

@ForNeVeR
Copy link
Contributor

User has reported in our maillist that $MyInvocation throws NotImplementedException.

I've tried to reproduce but just getting empty output instead. Here's my example script I'm testing:

echo 1 # To check if output works at all
echo $MyInvocation.MyCommand.Path # Should write current script name
echo $PSScriptRoot # Should write script directory
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant