Arquivos mensais: abril 2016

Script logon para AD no samba4

1
2
3
4
5
6
7
8
9
10
11
12
@echo off
set servername=servidor.lan
set status=%SystemDrive%/status_scriptlogon.txt
 
net use M: \\%servername%\pasta1
net use N: \\%servername%\pasta2
net use O: \\%servername%\pasta3
 
REM echo "Tudo ok por aqui" > %HoMePath%\Desktop\status.txt
ECHO "ÚLTIMO LOGIN:" username% %date% %time% > %status%
 
echo %username% %computername% %date% %time% >> N:\status_login.txt