Skip to content

Changing Read Only Task Sequnce Variables

Featured Replies

Hi,

 

Any information on modifying a read only task sequnce varibales while running from Offline TS media. I would like to change the varibale "_SMSTSSiteCode" for mapping our clients to their respective sites.

 

I have read in many articles that "tsenv2.exe" can achive this. Unfortunately, I couldn't find it any where on the web. it seems the "1E", the developer of this tool is not providing it anymore.

 

If some one have this tool, can you passs it on to me along with the supporting files. Is there any other way to change the read only TS varibales??? Is there any other way to chnage the site of the client while the step "Setup Windows and ConfigMgr" is being performed??

 

Thanks for any help in advance...

 

Srinu...

By the way, I have found changing the _smstssitecode variable with the tsenv2.exe, while it works makes the system Unapproved in our mixed-mode environment. It is a simple matter of Approving it, but just a note of warning....

 

1E requires you to register (free) with them to download the file.

  • Author

Have you even tried to google that tool?......

 

Its the second link when i try it, its a free tool from 1e.

 

http://www.google.co...h?&q=tsenv2.exe

 

Thanks Mikey,

 

I have been googling for it almost 4 hours in last two days... My mistake, i didn't observed the tabs in 1E's website and I am just looking at the "Miscellaneous tools" section all the time and couldn't find the tool over there. Just now I observed that there is a "ConfigMgr Tools" tab and found tsenv2.exe under that section. Now downloaded and all set to go...

 

Thanks a lot for the reply...

 

Srinu...

  • Author

By the way, I have found changing the _smstssitecode variable with the tsenv2.exe, while it works makes the system Unapproved in our mixed-mode environment. It is a simple matter of Approving it, but just a note of warning....

 

1E requires you to register (free) with them to download the file.

 

 

Thanks for the information BB24. I will keep that in mind....

  • 2 months later...

I have downloaded tsenv2.exe I created a package with trhe file in it. I am adding a run command task sequence that points to the package, in the command line I am typing tsenv2.exe set _smstssitecode=XXX I have tried to place this task sequence in different locations, before the image applies, after it applies, before the Setup Windows and ConfigMgr, after and I can never get it to assign the site code that I want. I have launched a command prompt durring the install at various poings and hard mapped a to the location where the tsenve file is at and ran tsenv2.exe get _smstssitecode and it is comming back with the correct one I am setting it to. Is there something I am missing?

Thanks, Craig B.

Mine is set to before Setup Windows and ConfigMgr as well.

 

I have the TS setup as a "Run Command Line" but I am calling mine in a .vbs script.

 

cscript.exe //nologo "SetSiteCodeAuto.vbs"

 

The one gotcha may be your XXX value, hopefully you are doing "tsenv2.exe set _smstssitecode=sXXX" 'XXX=sitecode (like "LM1")

 

Note that you need the letter 's' in front of the XXX value.

 

We are also running "tsenv2.exe set _smstssmp=sSERVER.FULLY.QUALIFIED.DOMAIN" value

Thanks BB24 putting the "s" in front of the site code did the trick!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.