TS User Permissions for environment variables

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

Guest
We have an application that requires a unique environment variable to be set
for each TS user, the only way I have found to set and keep the environment
variable is to give the user administrator rights.

I tried granting the user admin rights to create the environment variable
and then remove the admin rights but it removes the variable and the
application wont run. I have tried most of the standard permissions but
can't find one that will allow the use of environment variables, except
administrator.

I would appreciate any information of how I can create permissions to use
environment variable without giving the user admin rights.
--
Regards
Chris
 
RE: TS User Permissions for environment variables

Are you trying to create user or system environment variables? System
environment variables would require administrative rights, but user variables
should not. We have this capability built into our product, and it doesn't
require any elevated user permissions or rights.

Can you explain exactly how you're trying to accomplish this?


--
Patrick C. Rouse
Microsoft MVP - Terminal Server
SE, West Coast USA & Canada
Quest Software, Provision Networks Division
Virtual Client Solutions
http://www.provisionnetworks.com


"Chris" wrote:

> We have an application that requires a unique environment variable to be set
> for each TS user, the only way I have found to set and keep the environment
> variable is to give the user administrator rights.
>
> I tried granting the user admin rights to create the environment variable
> and then remove the admin rights but it removes the variable and the
> application wont run. I have tried most of the standard permissions but
> can't find one that will allow the use of environment variables, except
> administrator.
>
> I would appreciate any information of how I can create permissions to use
> environment variable without giving the user admin rights.
> --
> Regards
> Chris
>
>
>
 
Re: TS User Permissions for environment variables

Patrick,

The variable has to be unique for each user, a user environment variable? We
login to a TS session then right click on MY COMPUTER, PROPERTIES, ADVANCED,
ENVIRONMENT VARIBLES and enter a new variable Terminal=XX. If we create this
with only user permissions the next time the user logs in the variable is
not there and they can't run the program. If I then grant then admin rights
and they login again the environment variable is there and they can run the
program.
--
Regards
Chris

"Patrick Rouse" <PatrickRouse@discussions.microsoft.com> wrote in message
news:E4FB3827-3A2E-4DFD-A422-409B4EB664B6@microsoft.com...
> Are you trying to create user or system environment variables? System
> environment variables would require administrative rights, but user
> variables
> should not. We have this capability built into our product, and it
> doesn't
> require any elevated user permissions or rights.
>
> Can you explain exactly how you're trying to accomplish this?
>
>
> --
> Patrick C. Rouse
> Microsoft MVP - Terminal Server
> SE, West Coast USA & Canada
> Quest Software, Provision Networks Division
> Virtual Client Solutions
> http://www.provisionnetworks.com
>
>
> "Chris" wrote:
>
>> We have an application that requires a unique environment variable to be
>> set
>> for each TS user, the only way I have found to set and keep the
>> environment
>> variable is to give the user administrator rights.
>>
>> I tried granting the user admin rights to create the environment variable
>> and then remove the admin rights but it removes the variable and the
>> application wont run. I have tried most of the standard permissions but
>> can't find one that will allow the use of environment variables, except
>> administrator.
>>
>> I would appreciate any information of how I can create permissions to use
>> environment variable without giving the user admin rights.
>> --
>> Regards
>> Chris
>>
>>
>>
 
Re: TS User Permissions for environment variables

If you look at that tab, you'll notice two areas. one is computer, one is
user. If you are simply adding in a new variable, it is most likely being
added as a computer variable. Make sure you are adding it in at the user
level (the lower pane) and see what happens. As well, what sort of profiles
are you using and are they being deleted at logoff or removed in a ny sch
way.

Jeff Pitsch
Microsoft MVP - Terminal Services


"Chris" <microtalk@bigpond.com> wrote in message
news:OQwEQ4z3IHA.2348@TK2MSFTNGP06.phx.gbl...
> Patrick,
>
> The variable has to be unique for each user, a user environment variable?
> We login to a TS session then right click on MY COMPUTER, PROPERTIES,
> ADVANCED, ENVIRONMENT VARIBLES and enter a new variable Terminal=XX. If we
> create this with only user permissions the next time the user logs in the
> variable is not there and they can't run the program. If I then grant then
> admin rights and they login again the environment variable is there and
> they can run the program.
> --
> Regards
> Chris
>
> "Patrick Rouse" <PatrickRouse@discussions.microsoft.com> wrote in message
> news:E4FB3827-3A2E-4DFD-A422-409B4EB664B6@microsoft.com...
>> Are you trying to create user or system environment variables? System
>> environment variables would require administrative rights, but user
>> variables
>> should not. We have this capability built into our product, and it
>> doesn't
>> require any elevated user permissions or rights.
>>
>> Can you explain exactly how you're trying to accomplish this?
>>
>>
>> --
>> Patrick C. Rouse
>> Microsoft MVP - Terminal Server
>> SE, West Coast USA & Canada
>> Quest Software, Provision Networks Division
>> Virtual Client Solutions
>> http://www.provisionnetworks.com
>>
>>
>> "Chris" wrote:
>>
>>> We have an application that requires a unique environment variable to be
>>> set
>>> for each TS user, the only way I have found to set and keep the
>>> environment
>>> variable is to give the user administrator rights.
>>>
>>> I tried granting the user admin rights to create the environment
>>> variable
>>> and then remove the admin rights but it removes the variable and the
>>> application wont run. I have tried most of the standard permissions but
>>> can't find one that will allow the use of environment variables, except
>>> administrator.
>>>
>>> I would appreciate any information of how I can create permissions to
>>> use
>>> environment variable without giving the user admin rights.
>>> --
>>> Regards
>>> Chris
>>>
>>>
>>>

>
>
 
Re: TS User Permissions for environment variables

I googled this (seems there was an easier way or utility but...). How to
create a script to assign varibles:
http://www.microsoft.com/technet/scriptcenter/guide/sas_wsh_kmmj.mspx?mfr=true

Jeff Pitsch
Microsoft MVP - Terminal Services

"Chris" <microtalk@bigpond.com> wrote in message
news:OQwEQ4z3IHA.2348@TK2MSFTNGP06.phx.gbl...
> Patrick,
>
> The variable has to be unique for each user, a user environment variable?
> We login to a TS session then right click on MY COMPUTER, PROPERTIES,
> ADVANCED, ENVIRONMENT VARIBLES and enter a new variable Terminal=XX. If we
> create this with only user permissions the next time the user logs in the
> variable is not there and they can't run the program. If I then grant then
> admin rights and they login again the environment variable is there and
> they can run the program.
> --
> Regards
> Chris
>
> "Patrick Rouse" <PatrickRouse@discussions.microsoft.com> wrote in message
> news:E4FB3827-3A2E-4DFD-A422-409B4EB664B6@microsoft.com...
>> Are you trying to create user or system environment variables? System
>> environment variables would require administrative rights, but user
>> variables
>> should not. We have this capability built into our product, and it
>> doesn't
>> require any elevated user permissions or rights.
>>
>> Can you explain exactly how you're trying to accomplish this?
>>
>>
>> --
>> Patrick C. Rouse
>> Microsoft MVP - Terminal Server
>> SE, West Coast USA & Canada
>> Quest Software, Provision Networks Division
>> Virtual Client Solutions
>> http://www.provisionnetworks.com
>>
>>
>> "Chris" wrote:
>>
>>> We have an application that requires a unique environment variable to be
>>> set
>>> for each TS user, the only way I have found to set and keep the
>>> environment
>>> variable is to give the user administrator rights.
>>>
>>> I tried granting the user admin rights to create the environment
>>> variable
>>> and then remove the admin rights but it removes the variable and the
>>> application wont run. I have tried most of the standard permissions but
>>> can't find one that will allow the use of environment variables, except
>>> administrator.
>>>
>>> I would appreciate any information of how I can create permissions to
>>> use
>>> environment variable without giving the user admin rights.
>>> --
>>> Regards
>>> Chris
>>>
>>>
>>>

>
>
 
Back
Top