When updating or replacing a home PC I use Windows Deployment Services (WDS) to reinstall Windows. It means I only have to maintain a single up-to-date source for all the little free apps I use (फायर फॉक्स, 7ज़िप, कोड, आदि) and makes a new setup much more painless. One of the few bugs that has irritated me for ages is the network drive map that I create has always had to be renamed manually.
I think the problem stems from the need for admin rights when renaming a drive. Whilst I can run the rename command as an administrator this seems to fail as the share isn’t present for the admin account, केवल उपयोगकर्ता खाते के लिए. What I would need to do is run the command as the user and then elevate it. I don’t know of any scripting way to do this, so the normal rename command seems a dead loss.
अच्छी खबर यह है रजिस्ट्री के माध्यम से नाम बदलने इसके लिए कोई तरीका है कि वहाँ है, and registry changes can easily be made from the command line. नक्शा और नाम बदलने के एक हिस्से सिर्फ आवश्यकता है करने के लिए 2 आदेशों
reg जोड़ने HKCU Software Microsoft Windows CurrentVersion एक्सप्लोरर MountPoints2 ##server-name#शेयर नाम /v _LabelFromReg /t REG_SZ /f /d “शेयर के लिए उपयोग करने के लिए नाम"
शुद्ध उपयोग y: \\server-name\शेयर नाम /उपयोगकर्ता:server-name\username password /दृढ़:हां
This can be put in a simple batch file and duplicate for each share you want to map. Viola — no more ugly names for network shares
“Hi James I realise it has been a long while, but I just checked this on windows 11 (build 23H2)…”