This file is indexed.

/usr/share/zentyal/stubs/samba/logon.bat.mas is in zentyal-samba 2.3.3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
<%args>
$drive
$netbios
</%args>
echo off

set Win7=
set Win7.Major=6
set Win7.Minor=1

set Version=
for /f "skip=1" %%v in ('wmic os get version') do if not defined Version set Version=%%v
for /f "delims=. tokens=1-3" %%a in ("%Version%") do (
  set Version.Major=%%a
  set Version.Minor=%%b
  set Version.Build=%%c
)

set GEQ_W7=
if %Version.Major%==%Win7.Major% (
	if %Version.Minor% geq %Win7.Minor% set GEQ_W7=1
) else if %Version.Major% gtr %Win7.Major% set GEQ_W7=1

if defined GEQ_W7 (
  net use <% $drive %> \\<% $netbios %>\%USERNAME%
)