更新や自宅のPCを交換する場合、私は、Windows展開サービスを使用します (WDS) Windowsの再インストールするには. それは私が唯一私が使用するすべての小さな無料アプリのための単一の最新のソースを維持しなければならないことを意味します (火狐, 7ZIP, カタログ, 等) そして新しいセットアップはるかに無痛になります. 何年もの間私を苛立たせてきた数少ないバグの1つは、私が作成したネットワークドライブマップを常に手動で名前変更しなければならなかったことです。.
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の Explorerの MountPoints2 ##server-name#共有名 /v _LabelFromReg /t REG_SZ /f /d “共有に使用する名前」
ネット利用のy: \\server-name\共有名 /ユーザー:server-name\ユーザ名 パスワード /持続的:はい
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
下記のコメントで私達にあなたの考えを送ってください! あなたが購読したい場合は、右上のメニューで購読リンクをご利用ください. また、下記の社会的なリンクを使用してお友達とこれを共有することができます. 乾杯.
返信を残す