Dynamically assigned environmental variables
Posted: 07 Jun 2010 13:18
The remote part is not the issue it is testing the variables that were just created.
As an example when I run the batch file you created above I get:
userVar1=Administrator
userVar4=All Users
userVar5=Default User
userVar6=LocalService
userVar7=NetworkService
userVar8=setup
userVar9=mainuser1
userVar10=mainuser2
userVar11=mainuser3
Press any key to continue . . .
What I would like to do is test these variables to weed out everything except "userVar9" or "mainuser1" ; "userVar10" or "mainuser2" ; "userVar11" or "mainuser3".
I could have three users as in this example or 100. I want to run a specific task for each user but not the admin and setup users.
As an example when I run the batch file you created above I get:
userVar1=Administrator
userVar4=All Users
userVar5=Default User
userVar6=LocalService
userVar7=NetworkService
userVar8=setup
userVar9=mainuser1
userVar10=mainuser2
userVar11=mainuser3
Press any key to continue . . .
What I would like to do is test these variables to weed out everything except "userVar9" or "mainuser1" ; "userVar10" or "mainuser2" ; "userVar11" or "mainuser3".
I could have three users as in this example or 100. I want to run a specific task for each user but not the admin and setup users.