Jump to content

Recommended Posts

Posted

Hello,

 

I'm creating a fresh new image on Windows 10 Enterprise. I'm working on getting user's home directories and folder redirection working. During this I seem to be having issues with mapping users with shares. We're not connected to a domain or a Windows Server(SMT don't want us to). So any solutions need to be in the Local Group Policy Editor.

 

So far, I've tried mapping the drive from the registry, batch script. I'm looking for something I can run at first logon and never have to worry about it again.

 

Thanks for your help in advance.

Posted

Can't you just put a bat file in the start up folder so it will map it at every login?

 

Will mean that if it is disconnected for any reason it will remap

Posted
Tried getting PowerShell to map drives but not working. How would I go about mapping drives with batch?

I did this somewhere that had a Windows server but wasn't on a domain (the clients were all XP Home) - had to have matching user/passwords on the server and all the PCs for it to work.

 

Put a batch file in the startup folder:

 

net use n: \\server\path

to map N: to \\server\path

 

If you have folders named after usernames you could:

net use n: \\server\path\%username%

so that you just need the one script rather than a customised script per user

 

If you want the drive to survive a logoff then:

net use n: \\server\path /persistent:yes

Posted

So a script would look like this?

 

 @echo off
net use h: \\server\share\%username% [color=#333333]/persistent:yes
[/color]net use p: \\server\publicdocs [color=#333333]/persistent:yes
[/color]net use s: \\server\staff [color=#333333]/persistent:yes[/color]

 

When I execute the script, it all works but one of them just doesn't map.

Posted
So a script would look like this?

 

 @echo off
net use h: \\server\share\%username% [color=#333333]/persistent:yes
[/color]net use p: \\server\publicdocs [color=#333333]/persistent:yes
[/color]net use s: \\server\staff [color=#333333]/persistent:yes[/color]

 

When I execute the script, it all works but one of them just doesn't map.

 

Which one?

Posted
If your not on the domain where are you getting the username/password from to map the drive? Unless the local username/password matches the domain account then you will need to pass it using your script.
Posted
So a script would look like this?

 

 @[u][url="http://www.edugeek.net/member.php?u=16971"]echo[/url][/u] off
net use h: \\server\share\%username% [color=#333333]/persistent:yes
[/color]net use p: \\server\publicdocs [color=#333333]/persistent:yes
[/color]net use s: \\server\staff [color=#333333]/persistent:yes[/color]

 

When I execute the script, it all works but one of them just doesn't map.

 

If it's the first one failing, make sure you already have a folder for each username within \\server\share for it to map to

Posted

Windows 10 has a concurrent limit of 20 connections, so bearing in mind a class typically has 30 pupils, this will never work well. Even if permissions are correct, Windows will know how many active sessions are connecting/connected.

 

This is why Windows Server makes sense and will make your life much easier. Even if you just installed it but maintain a Workgroup set up. Of course I would recommend you look at creating a Domain as it makes user authentication straight forward.

Posted
I think I've got it all working. Just need to find a way that it will load up at first logon for a user. GPO startup scripts don't seem to do anything. I'm currently putting it in C:/ProgramData/Microsoft/Windows/Start Menu/Programs/Start-up but it does not seem to work. Any suggestions?

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



×
×
  • Create New...