Link to home
Create AccountLog in
Avatar of aviator21114
aviator21114

asked on

Windows 8 client will not map drives to SBS2003 server

I have a couple of Windows 8 client machines that I need to be mapped to a SBS2003 server drive.   The bat file contains a single statement "net use F: \\server1\accounting$"

I've inherited this server.   I've rebooted the client machine after including the bat file in the AD profile.   No luck.

Any thoughts?   On the fast track for this one...
Avatar of Gary Dewrell
Gary Dewrell
Flag of United States of America image

if you do it manually what error message do you get?
Can the clients ping the server in question.?
Avatar of aviator21114
aviator21114

ASKER

Yes I can manually map to the drive without issue.  Ping is fine..
The $ is probably presenting a UAC / Permission issue in Windows 8 and you may not have the authority to use it.

Try a different folder and different batch file  net use F: \\server1\folder  (no $) and see if it works.

I have a Windows 8 Pro computer and map to clients' SBS2003 without issue.

... Thinkpads_User
Nope that didn't work.   Placed a test folder (called test) and it didn't map.  arrgh!
Avatar of McKnife
Hi.

Could very well be this: http://technet.microsoft.com/de-de/library/ee844140(v=ws.10).aspx
Applies to Vista/Win7/Win8 with UAC enabled. Are your test users local admins? Then read on.
Well that didn't work either.. I even disabled UAC to no avail.
Please have your batch pipe its output to a logfile by adding
>> \\server\share\logfile.txt
at the end of each line in question.

By the way - was the user in question a local admin or not?
You would also first need to make sure the batch file is even touched by auditing the file access (just if you cannot be sure).
Are these Windows 8 computers Windows 8 Pro?

In Network and Sharing Center, Advanced Sharing options, have you turned ON Network Discovery and File and Print Sharing?

Make sure the computers are set onto the Private Network and not Public.

... Thinkpads_User
Does it work with a VB Script?

Set objNetwork = CreateObject("WScript.Network")
objNetwork.MapNetworkDrive "F:" , "\\server1\accounting$"
well I've added \logfile.txt to the end of the net use statement... Silly question... Where does the log file go?

Also I've verified Network discovery and File Print Sharing, Private Network all set appropriately...  

Lastly I'm using my Windows 8 machine of which I am admin..
Vb script.. I don't know how to implement this...  I can do so with assistance...
If Network and Sharing options are all correct, then Windows 8 should map. It does for me in a variety of different client situations.

Try a NET USE command of the following form:

NET USE Z: \\Server\folder /user:DOMAIN\username password

.... Thinkpads_User
Where is the output of the bat file stored?  I'd like to see if this bat file is being executed...
ASKER CERTIFIED SOLUTION
Avatar of David Atkin
David Atkin
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Also,

Using the network drive F: may not be a good idea.  Normally its best to use a letter at the end of the alphabet because of USB drives and SD Cards etc.
Strangely enough the VB script worked.  I would however like to know why the bat file couldn't get the job done....  Thank you all for your input..
To get to the root of the batch problem: you turned off UAC - did you restart afterwards or did you just logoff for the next test? You would need to restart, so you could try it again.
good point... failed to reboot.   I will give that a whirl...   Also, where do the bat commands get logged when adding a txt file to the end of the command.. which specific folder?   Is it the script file on the server?
You will need to specify a folder, as per McKnifes comment:

> \\server\share\logfile.txt
As advised, you define the path yourself: \\someserver\someshare\logfile.txt is the target.
@scorpeo: >> is preferred to >
:)