All my new Windows 8 machines Pro/Ent are not running LogonScripts. All XP and 7 are OK. Im not using GP preferences, im using Logon Script in a Policies GPO.
My Batch creates a logfile and the log file shows the successfull mapping of the drive letters but.. no available drive letters.
I tried to "delay" the logon script putting a "timeout 15" command, but didnt worked too.
==============================
@echo off
cls
echo.
echo.
echo Set Env. Vars
set VERSAO=1.6
set FILESERVER=srv-013
set LOGFOLDER=c:\windows\temp
set LOGFILE=\LS_%VERSAO%.LOG
echo.
echo.
echo Create Temp Folder > %LOGFOLDER%%LOGFILE%
if not exist %LOGFOLDER% MKDIR %LOGFOLDER% >> %LOGFOLDER%%LOGFILE%
echo.
echo.
echo Map G: - ARQUIVOS >> %LOGFOLDER%%LOGFILE%
net use g: /d >> %LOGFOLDER%%LOGFILE%
net use g: \\%FILESERVER%\arquivos >> %LOGFOLDER%%LOGFILE%
echo.
echo.
echo Map J: - SETOR >> %LOGFOLDER%%LOGFILE%
net use j: /d >> %LOGFOLDER%%LOGFILE%
net use j: \\%FILESERVER%\setor >> %LOGFOLDER%%LOGFILE%
echo.
echo.
echo Map P: - ARQUIVOS >> %LOGFOLDER%%LOGFILE%
net use p: /d >> %LOGFOLDER%%LOGFILE%
net use p: \\%FILESERVER%\arquivos >> %LOGFOLDER%%LOGFILE%
echo.
echo.
echo Map S: - QSMS_CORP >> %LOGFOLDER%%LOGFILE%
net use s: /d >> %LOGFOLDER%%LOGFILE%
net use s: \\%FILESERVER%\QSMS_CORP >> %LOGFOLDER%%LOGFILE%
==============================