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?
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?