Hey Michael,
[ScriptBlock]$MySB = `
{
$Common = @{
VarA = 'something'
VarB = 'something_else'
}
...
}
Problem is that there is actual code that follows so invoking it would break
the script that contains it and later sends it out as a job.
I was hoping to perform some validation on the various variables without some
arcane string processing and regexing.
Thanks!
jlc
________________________________
From: Michael B. Smith [[email protected]]
Sent: Saturday, September 15, 2012 6:59 PM
To: NT System Admin Issues
Subject: RE: Accessing powershell variables from within a scriptblock
Give me an example.
Sent from my Windows Phone
~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
---
To manage subscriptions click here:
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin