From: "Michael Bednarek" <ROT13->
| On Wed, 16 Jun 2010 17:00:19 -0400, "David H. Lipman" wrote in
| microsoft.public.windows.server.scripting:
>>Using SharePoint.
>>It doesn't like '.' in Usernames such as; David.H.Lipman and converts them to '_' so
>>in
>>SharePoint MySites the user name is; David_H_Lipman
>>Need a .CMD script snippet that will take %USERNAME% and convert it to a string with
>>'_'
>>replacing all occurances of '.' within the Active Directory Username.
| This is what I used on a similar occasion:
| SET MyUsername=%@REPLACE[.,_,%USERNAME]
| with 4NT as command processor; I believe 4NT now succeeded by "Take
| Command", which includes the free TCC/LE.
| I guess it's possible to do it with CMD, but less concisely and clearly.
4NT ? Hmmm, that's in the JP Software family of interpreters such as 4DOS which was
OEM'd to Norton and was called NDOS ?
It was great but... It is not a viable option on our Active Directory Domain.
The CMD.EXE, .CMD, batch processor is what I may only be able to use :-(
The objective would be such as I can eventually do...
net use Z: \\myspad.oursite.com@SSL\DavWWWRoot\Firstname_Last name
or
net use Z: \\myspad.oursite.com@SSL\DavWWWRoot\Firstname_MI_L astname
Where aall the Domain Accounts use the naming convention; Firstname.MI.Lastname or
Firstname.MI.Lastname
Personally I'd much rather use the latest version of KiXtart. I have already written, and
tested, a KiXtart script. However our central IS group is in a time warp and is using
KiXtart v3.60 that is (believe it or not) 11 years old! I have to write a letter of
justification of upgrading the KiXtart interpreter on the Login Server to the latest
version and can only "hope" they will do it. If that fails, I need a fall back position
which would be using the .CMD batch interpreter of Vista.
--
Dave
http://www.claymania.com/removal-trojan-adware.html
Multi-AV -
http://www.pctipp.ch/downloads/dl/35905.asp