angrycomputingteacher Posted February 25, 2017 Posted February 25, 2017 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.
snagrat Posted February 25, 2017 Posted February 25, 2017 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
angrycomputingteacher Posted February 25, 2017 Author Posted February 25, 2017 I have tried that. It did not work. I think I'll try doing something similar in PowerShell.
angrycomputingteacher Posted February 25, 2017 Author Posted February 25, 2017 Tried getting PowerShell to map drives but not working. How would I go about mapping drives with batch?
Katy Posted February 25, 2017 Posted February 25, 2017 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
angrycomputingteacher Posted February 25, 2017 Author Posted February 25, 2017 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.
snagrat Posted February 25, 2017 Posted February 25, 2017 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?
Cache Posted February 25, 2017 Posted February 25, 2017 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.
snagrat Posted February 25, 2017 Posted February 25, 2017 Being as two are mapping it would appear that the user is already authenticating correctly.
Katy Posted February 25, 2017 Posted February 25, 2017 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
Michael Posted February 25, 2017 Posted February 25, 2017 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.
angrycomputingteacher Posted February 26, 2017 Author Posted February 26, 2017 My public docs one is not mapping. The folder has items in it, just not working correctly. The NAS I am connecting to has Guest Permissions so everyone can access it. I know it's a bad setup.
angrycomputingteacher Posted February 26, 2017 Author Posted February 26, 2017 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?
angrycomputingteacher Posted February 26, 2017 Author Posted February 26, 2017 Currently it's working smoothly however it comes up with the Open File security warning. I've tried registry edits to disable it. I've tried white listing the file-type and disabling them altogether. Not sure what to do now.
snagrat Posted February 26, 2017 Posted February 26, 2017 Can you go onto the properties of the batch file and unblock it?? I doubt it is that, probably UAC blocking it, but worth checking
angrycomputingteacher Posted February 28, 2017 Author Posted February 28, 2017 Nothing I can see in the batch properties. How would I go about unblocking it through UAC? I've tried through local GPOs but had no luck.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now