Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Manipulating GPO variables

Status
Not open for further replies.

Geto

IS-IT--Management
Nov 12, 2002
5
US
Hi folks,
Long time ago, I had a need to manipulate the text of a variable for a GPO registry key using the first two digits from the %LogonUser% variable, and I found out that by doing %LogonUser:~0,2% I got the results I was looking for.

Today, I'm faced with a similar problem. I need to create a Mapped Drive to a WebDav server by using the same variable, only this time, I need to turn the resulting text into lowercase since all user's folders on the servers are in lowercase.

How did I find out about trimming a group policy variable, I can't remember. I now that I'm looking around for it, Google was not even close to an answer, so now I'm looking again for more text manipulations options in hope to find a way to change the case of the variable's resulting text.

Help?
 
folks,
So, a little bit more details about this issue.

Apparently, %LogonUser% variable is not even translating on the target computer. I checked the Group policy result report, and the path to the my WebDav server still shows as
I also tried %username% and get the same result. So I guess that variables does not work at all with the Mapped Drives paths? The help documentation it still says "This field accepts preference processing variables"

I'm at a loss, is no longer about uppercase or lowercase, is about mapping drives to a WebDav server.
 
I think you need to create the share using \\server\johns and then you can map the drive using net use x: \\server\%username% when the username = johns

-------------------------------

If it doesn't leak oil it must be empty!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top