powered by simpleCommunicator - 2.0.49     © 2025 Programmizd 02
Форумы / Windows [игнор отключен] [закрыт для гостей] / Очень интересный вопрос
3 сообщений из 3, страница 1 из 1
Очень интересный вопрос
    #32166771
Zlohvost
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Как скриптом или *.bat файлом подключить сетевой ресурс от имени другого пользователя?
Заранее благодарен.
...
Рейтинг: 0 / 0
Очень интересный вопрос
    #32166826
Фотография mahoune
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Участник
Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
C:\>net help use
The syntax of this command is:


NET USE [devicename | *] [\\computername\sharename[\volume] [password | *]]
        [/USER:[domainname\]username]
        [/USER:[dotted domain name\]username]
        [/USER:[username@dotted domain name]
        [[/DELETE] | [/PERSISTENT:{YES | NO}]]

NET USE {devicename | *} [password | *] /HOME

NET USE [/PERSISTENT:{YES | NO}]


NET USE connects a computer to a shared resource or disconnects a
computer from a shared resource. When used without options, it lists
the computer's connections.

devicename       Assigns a name to connect to the resource or specifies
                 the device to be disconnected. There are two kinds of
                 devicenames: disk drives (D: through Z:) and printers
                 (LPT1: through LPT3:). Type an asterisk instead of a
                 specific devicename to assign the next available
                 devicename.
\\computername   Is the name of the computer controlling the shared
                 resource. If the computername contains blank characters,
                 enclose the double backslash (\\) and the computername
                 in quotation marks ( " " ). The computername may be from
                  1  to  15  characters long.
\sharename       Is the network name of the shared resource.
\volume          Specifies a NetWare volume on the server. You must have
                 Client Services for Netware (Windows Workstations)
                 or Gateway Service for Netware (Windows Server)
                 installed and running to connect to NetWare servers.
password         Is the password needed to access the shared resource.
*                Produces a prompt for the password. The password is
                 not displayed when you type it at the password prompt.
/USER            Specifies a different username with which the connection
                 is made.
domainname       Specifies another domain. If domain is omitted,
                 the current logged on domain is used.
username         Specifies the username with which to logon.
/HOME            Connects a user to their home directory.
/DELETE          Cancels a network connection and removes the connection
                 from the list of persistent connections.
/PERSISTENT      Controls the use of persistent network connections.
                 The default is the setting used last.
YES              Saves connections as they are made, and restores
                 them at next logon.
NO               Does not save the connection being made or subsequent
                 connections; existing connections will be restored at
                 next logon. Use the /DELETE switch to remove
                 persistent connections.
NET HELP command | MORE displays Help one screen at a time.
C:\>
...
Рейтинг: 0 / 0
Очень интересный вопрос
    #32166927
Зиппович
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
В вин 2к есть служба репликации файлов. При ее установке создается папка репликаций. В сети она видна как SysVol. Внутри нее есть путь <Имя домена>/scripts.
В ней создаешь файлы <имя пользователя>.bat
В нем пишешь

net use <имя диска> <сетевой ресурс>
......
net use <имя диска> <сетевой ресурс>

Заходишь в свойства пользователя Панель управления -> Администрирование
-> Active Directory: пользователи и компьютеры
Выбираешь пользователя, заходишь в его свойства, заходишь в вкладку профиль, пишешь в строке "Сценарий входа" название файла для этого пользователя <имя пользователя>.bat. Нажимаешь ОК.


При входе клиента в домен у него на компе создаются диски, соответсвующие прописаному в соответствующем файле.
...
Рейтинг: 0 / 0
3 сообщений из 3, страница 1 из 1
Форумы / Windows [игнор отключен] [закрыт для гостей] / Очень интересный вопрос
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]