Mapping drives from server core


hi,

is mapping drives drives server core not supported? see 2 commands below. 1 on server gui works fine , 1 on server core not.

ps c:\users\administrator.wbad> new-psdrive –name w –psprovider filesystem -root \\192.168.1.101\hvbackup

name           used (gb)     free (gb) provider      root                                                                                                         currentlocation
----           ---------     --------- --------      ----                                                                                                         ---------------
w                                      filesystem    \\192.168.1.101\hvbackup                                                                                          
ps c:\users\administrator.wbad> enter-pssession hv1
[hv1]: ps c:\users\administrator.wbad\documents> new-psdrive –name w –psprovider filesystem -root \\192.168.1.101\hvbackup
new-psdrive : specified drive root "\\192.168.1.101\hvbackup" either not exist, or not folder.
    + categoryinfo          : readerror: (w:psdriveinfo) [new-psdrive], ioexception
    + fullyqualifiederrorid : driverooterror,microsoft.powershell.commands.newpsdrivecommand


in advance

will

 

will b

hi will,

you can use command prompt command map network drive. please use below command.

net use <drivename>: \\<remotepath>\<shared_drive_name> /persistent:yes /user:<username> *

let me know whether works or not.


regards, alan.



Windows Server  >  Windows Server 2012 General



Comments

Popular posts from this blog

2008 Windows Deployment Server Properties Error

Can no longer user MS Update - Files required to use Microsoft Update are no longer registered

How do a find data in one file, search for it in another file and if not found, write a custom message to another file