On Wed, Mar 2, 2011 at 8:59 AM, James Rankin <[email protected]> wrote: >> > I tried /c, gave me an error >> >> What was the error? > > It was something like > > A positional parameter cannot be found that accepts argument > "\\server\share\scriptname.cmd"
That's a PowerShell syntax error. It has nothing to do with CMD.EXE or any other external program. Your PowerShell code that attempts to call CMD is not doing so correctly. Post the code and I bet someone can figure it out. :) On Wed, Mar 2, 2011 at 9:00 AM, James Rankin <[email protected]> wrote: > The end goal is to use the enumerated group names to set some environment > variables. These environment variables are then used to help map the user's > printers (after they have logged in) Might be easier to enumerate the groups and set the environment all within PowerShell. Google finds recipes for both. -- Ben ~ 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
