String Expansion in Double-Quotes behaves differently than $ExecutionContext.InvokeCommand.ExpandString - by MyrddinE

Status : 

 


16
0
Sign in
to vote
ID 755270 Comments
Status Active Workarounds
Type Bug Repros 9
Opened 7/24/2012 6:56:06 AM
Access Restriction Public

Description

Inside a quoted string, you can execute code inside the $() construct. This does not work when expanding a string using $ExecutionContext.InvokeCommand.ExpandString().

See http://stackoverflow.com/questions/11605772/why-doesnt-hash-key-syntax-work-inside-the-expandstring-method
Sign in to post a comment.
Posted by MyrddinE on 7/24/2012 at 6:57 AM
Powershell v3.0, Windows 7 Professional 64bit on a W2008r2 Domain.