Durante l'aggiornamento o la sostituzione di un PC di casa che uso Windows Deployment Services (WDS) reinstallare Windows. Significa che devo solo per mantenere una singola fonte up-to-date per tutte le piccole applicazioni gratuite che uso (Fuoco-fox, 7cerniera lampo, catalogo, eccetera) e fa un nuovo setup molto più indolore. 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, solo per l'account utente. 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.
La notizia buona è che c'è un modo per fare la ridenominazione tramite il Registro, and registry changes can easily be made from the command line. Per mappare e rinominare una quota richiede solo 2 comandi
reg add HKCU Software Microsoft Windows CurrentVersion Explorer MountPoints2 ##server-name#share-name /v _LabelFromReg /t REG_SZ /f /d “Nome da utilizzare per le quote”
uso y net: \\server-name\share-name /utente:server-name\nome utente password /persistente:sì
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
Cosa ne pensi? Mandaci un commento qui sotto! Se si desidera iscriversi si prega di utilizzare il link iscriviti sul menu in alto a destra. È inoltre possibile condividere con i tuoi amici usando i link sottostanti sociali. Saluti.
lascia un commento