T: drive in My Computer.or to* log on* to the domain, in the case of Windows NT/2000/XP
Most commonly, the logon script is used to run a net command, such as net >>use, to connect a network drive letter, like this:
net use T: \\toltec\test
This command will make our [test] share (from Chapter 2) show up as the
the beginning of her session, insteadThis will happen automatically, and T: will be available to the user at
the Map Network Driveof requiring her to run the net use command or connect the T: drive using
function of Windows Explorer.
Hello Arjit,
Am 24.01.2017 um 14:41 schrieb Arjit Gupta via samba:
I am new to this and trying to check how logon script runs.
But not able to do so. Though i am able to execute it later from theshare
itself.
Below is my smb.conf file.
[global]
logon script = %U.bat
...
[netlogon]
comment = The domain logon service
path = /var/opt/samba/netlogon
...
Is the logon script available directly in the root of the "netlogon"
share? You use %U.bat, where %U is replaced with the user name (for
example "agupta.bat"). Can you please check if files for each user exist
in /var/opt/samba/netlogon/ ?
To make sure that it's not a problem of variable substitution, temporarily:
- Change "%U.bat" to "script.bat".
- Reload Samba.
- Create the file "/var/opt/samba/netlogon/script.bat" with some
content. For example:
net use X: \\cifs\tmp
- Verify that you can execute the script by double-clicking.
- Log on and see, if the X: drive is mapped.
Regards,
Marc
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 23:42:00 |
Calls: | 6,646 |
Calls today: | 1 |
Files: | 12,191 |
Messages: | 5,327,626 |