Jump to content

so this is the script i pasted in the sysvol folder:

 

Dim net
dim shel
On Error Resume Next
set net=CreateObject("WScript.Network")
set shel=createobject("Shell.Application")
net.MapNetworkDrive "W:"," \\WISDOMMASTER\papers"
net.MapNetworkDrive "Y:"," \\WISDOMMASTER\Common"

shel.namespace("Z:").self.name= net.UserName & " Home"

 

and the only drive that shows up at the client computer is a drive called Z. i still have not been able to find what i have doing wrong here.it would be very helpful if someone could spot the mistake

Link to post
Share on other sites

Are you trying to create a network drive and map it on a pc?you can use the friendly share thing by right clicking and share

   

PC Specs:Custom Built PC

CPU:AMD Ryzen 3 1200 GPU:Zotac GeForce GTX 1050 TI Mini RAM:Corsair Vengence 2400 MHz DDR4 Motherboard:ASUS Prime B350M-A AM4 Motherboard Case:Corsair 100R PSU:Corsair VS450 

Laptop Specs:Acer TravelMate 8472

CPU:Intel Core i5 560M Memory:2GB DDR3 CPU:Intel HD Graphics Case:Its a Laptop Motherboard:Laptop Motherboard

 

Link to post
Share on other sites

Powershell: 

 

$netwk = New-Object -ComObject WScript.Network
$remshr1 = '\\WISDOMMASTER\papers'

$remshr2 = '\\WISDOMMASTER\common'
$netwk.MapNetworkDrive('W:', $remshr2, $true)

$netwk.MapNetworkDrive('Y:', $remshr1, $true)

 

Try that. $true/$false determines if the share is kept persistently in user profile, set that as you will

 

idk

Link to post
Share on other sites

6 hours ago, Gaurav S Rao said:

Are you trying to create a network drive and map it on a pc?you can use the friendly share thing by right clicking and share

yes i have given permission to the selected user from share options.but when i log onto the client i can see only 1 drive when i try to assign them like two.i think something needs to be typed into to that connect path im not sure what it is.i have put a folder path and i think this is what is shown as the drive in the host

1.PNG

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×