The scriptblock that contains them is inside the script, when you call this script, it uses it in the scriptblock parameter to Invoke-Command.
In this scriptblock, there are several variables, most of which only make sense remotely as some are computed, but there are a few that the user may need to edit. I should have passed these in as args so all of this would have been easy. ________________________________ From: Ken Schaefer [[email protected]] Sent: Sunday, September 16, 2012 8:39 PM To: NT System Admin Issues Subject: RE: Accessing powershell variables from within a scriptblock Where are the user defined variables coming from? Do they only exist on the remote host? ~ 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
