Line 38:
Line 38:
But this error can safely be ignored or, if you run Windows 7, silenced by a hotfix, that was published by [http://support.microsoft.com/kb/2171571 Microsoft: KB2171571: You incorrectly receive an error message when you join a computer that is running Windows 7 or Windows Server 2008 R2 to a Samba 3-based domain].}}
But this error can safely be ignored or, if you run Windows 7, silenced by a hotfix, that was published by [http://support.microsoft.com/kb/2171571 Microsoft: KB2171571: You incorrectly receive an error message when you join a computer that is running Windows 7 or Windows Server 2008 R2 to a Samba 3-based domain].}}
+
+
===Setting up network drives===
+
If you are using SME Server as a domain controller and the workstations have joined the domain
+
you can automate drive mapping and syncronise the PC time with the netlogon.bat file
+
+
Note: [[:SME_Server:Documentation:Administration_Manual:Chapter13#Workgroup |Chapter 13]] has a method for admin to edit the netlogon.bat file without using the command line. You can consider also the [[SME_Server:Documentation:Administration_Manual:Chapter7|chapter 7]] on Configuring the Computers on Your Network
+
+
nano -w /home/e-smith/files/samba/netlogon/netlogon.bat
+
+
REM To set the time when clients logon to the domain:
+
net time \\servername /set /yes
+
REM To map a home directory to drive h:
+
net use h: /home /persistent:no
+
net use j: \\servername\ibay1 /persistent:no
+
net use p: \\servername\ibay2 /persistent:no
+
if exist Z: net use Z: /del /yes
+
+
and reset file to dos format
+
unix2dos /home/e-smith/files/samba/netlogon/netlogon.bat
+
===Slow login with win7 to sme8 domain===
===Slow login with win7 to sme8 domain===