How to fix connect a network drive at login?

Hello. There Is Windows Server 2003. When you logon domain user triggers a script that mounts the network disk. Recently stopped working. What can you suggest? Thanks in advance.
The link to the image: https://yadi.sk/i/sTctWXSkro9pG
July 9th 19 at 13:22
1 answer
July 9th 19 at 13:24
I ordered in scripts:
%systemroot%\system32\net use q: /delete
%systemroot%\system32\net use q: \\servername\folder
net time /DOMAIN:Yourdomain

PS. Windows10 and Windows8(And 8.1) Have problems with performance of these BAT-nikov, because security on the Internet there are articles on this topic.
Tried these commands. At the command prompt work. Added them to a script on the server and what is the reaction on the client machine. - cathrine83 commented on July 9th 19 at 13:27
: This must be done not on the server, and to put that batch file in the startup user so that when he zalogowania on the part of the user was prepollical drives, as well as in comande - anabel_Blick28 commented on July 9th 19 at 13:30
: Why? All this is successfully done via GPO, there are that at one station sit several users, from different groups, tired of everyone throwing "His" sweatshirt. - lawrence.Beier commented on July 9th 19 at 13:33
: Here I am talking about, too. - cathrine83 commented on July 9th 19 at 13:36
In CMD run - gpresult /R
on the machine where is connected the drive - lawrence.Beier commented on July 9th 19 at 13:39
look something like this:
Applied group policy objects
---------------------------------------
XXX
Default Domain Policy

The following GPOs were not applied because they were filtered out
--------------------------------------------------------------------
Local Group Policy
Filtering: Not applied (empty) - lawrence.Beier commented on July 9th 19 at 13:42
I hope the rule to connect the drives nirupam not in the Default Domain Policy? - lawrence.Beier commented on July 9th 19 at 13:45
In StartupScripts. Finished your script and in the end the team works to delete and add no. Tried creating folders takes place. What could be the problem? - cathrine83 commented on July 9th 19 at 13:48
: X what access rights? - lawrence.Beier commented on July 9th 19 at 13:51
: Win Server 2003, server, client, Win 10 - cathrine83 commented on July 9th 19 at 13:54
Although if you run this script.bat from the desktop, the drives should be mounted on behalf of the user.
Try at the end of the script to add the pause command and look in the progress window, what's the system - lawrence.Beier commented on July 9th 19 at 13:57
What is the path to the network resources You have prescribed?
%systemroot%\system32\net use q: \\servername\folder ?
%systemroot%\system32\net use q: \\serverip\folder ? - lawrence.Beier commented on July 9th 19 at 14:00
:
%systemroot%\system32\net use q: \\mydomain.local\storage
net time /DOMAIN:mydomain.local
pause - cathrine83 commented on July 9th 19 at 14:03
If you replace mydomain.local ip ? - lawrence.Beier commented on July 9th 19 at 14:06
No, not rolls. - cathrine83 commented on July 9th 19 at 14:09
Let's deal with the DNS, for example you have the domain firma.ru
Server with shared drives has a name shareserver.firma.ru
From a client machine, which is also entered into the domain we pinguim server by name ping shareserver if all pinged up and running, then c DNS everything is fine, if not, deal first with this issue. But the disks can be connected not only by server name, can IP, then some problemmy DNS can be circumvented, which is not correct, but as a temporary solution.

In the script it will be correct to write here %systemroot%\system32\net use q: \\shareserver\folder1 - lawrence.Beier commented on July 9th 19 at 14:12
: DNS is running. From a client machine, the command works on hurrah. But at the entrance to bat on the server no. - cathrine83 commented on July 9th 19 at 14:15
OK, Klinskoe the car open My computer->In the address bar, enter the server name-> what we see?
for example, \\shareserver - lawrence.Beier commented on July 9th 19 at 14:18
In CMD run - gpresult /R
on the machine where is connected the drive

Did? - lawrence.Beier commented on July 9th 19 at 14:21
: Yes, I did.
Applied group policy objects
---------------------------------------
Default Domain Policy
StartupScripts
The following GPOs were not applied because they were filtered out
--------------------------------------------------------------------
Local Group Policy
Filtering: Not applied (empty) - cathrine83 commented on July 9th 19 at 14:24

Find more questions by tags WindowsWindows Server