I have a series of files I source that contain scriptblocks assigned to a variable. In my script I am referencing these vars as the argument to -ScriptBlocks and as I have not found a way to used named arguments my scriptblock param set uses positional references.
Now the issue is several scriptblocks share some code, so I am at a loss as to pass in args if I use which ever technique to combine them before passing it into Invoke-Command how do you handle the args now? Anyone know how to pass named args into Invoke-Command? Thanks! jlc ~ 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 listmana...@lyris.sunbeltsoftware.com with the body: unsubscribe ntsysadmin