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 سافٹ ویئر مائیکروسافٹ ونڈوز 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)…”