| 
 | 
或許大家試試下面的方法. 已用了一段時間.是成功的.  
ChgNtfy.exe 可以不用, 影響似乎只是在 explorer 沒哪個 share 的顯示樣子.  
 
=== SHARE.CMD === 
@Echo off 
setlocal 
 
bartpe.exe -c s -q ms_server 1>nul 2>&1 
if not "%errorlevel%" == "0" ( 
        echo BARTPE: Installing Microsoft Server 
        bartpe.exe -c s -i ms_server 
 
        echo BARTPE: Starting SERVER service 
        net start server 
) 
 
 
echo enable guest account now  
net user guest /active:yes 
 
echo add administrator account 
net user Administrator 123456 
 
echo add admin account 
net user Admin 123456 /add 
 
echo add w2k3 account 
net user w2k3 123456 /add 
 
echo add user account 
net user user /add 
 
Echo -- Visible  Share and Security Menu 
ChgNtfy.exe 
 
echo BARTPE: Creating drive shares 
for %%i in (b c d e f g h i j k l m n o p q r s t u v w x y z) do ( 
        if exist %%i:\nul net share drive-%%i=%%i:\ 
) 
 
 
Echo  1.  Please update Anti Virus . >> %ramdrv%\WINPE2k3_notes.txt 
Echo  2.  to use network share printer.  >> %ramdrv%\WINPE2k3_notes.txt 
Echo      Set Default Printer to HPLJ4 >> %ramdrv%\WINPE2k3_notes.txt 
Echo                  attach network printer to lpt1 or 2 >> %ramdrv%\WINPE2k3_notes.txt 
Echo                          net use lpt1: \\10.200.32.11\HPL5000  /User:administrator >> %ramdrv%\WINPE2k3_notes.txt 
Echo                          net use lpt2: \\10.200.32.12\HPLaser8100  /User:user >> %ramdrv%\WINPE2k3_notes.txt 
Echo                  if we attach 2 printer to each port , change it in Printer's Property >> %ramdrv%\WINPE2k3_notes.txt 
Echo  3.  Share >> %ramdrv%\WINPE2k3_notes.txt 
 
net user >> %ramdrv%\WINPE2k3_notes.txt 
 
 
 
if not exist %windir%\system32\hostname.exe goto _nohost 
echo Getting hostname... 
hostname.exe >> %ramdrv%\WINPE2k3_notes.txt 
 
echo To access the shares on this system you must logon as administrator  >> %ramdrv%\WINPE2k3_notes.txt 
echo with the password 123456 !!! >> %ramdrv%\WINPE2k3_notes.txt 
echo or >> %ramdrv%\WINPE2k3_notes.txt 
echo net use x: \\bartpe-????\drive-c /user:administrator >> %ramdrv%\WINPE2k3_notes.txt 
echo input 123456 while prompt for password. >> %ramdrv%\WINPE2k3_notes.txt 
echo >> %ramdrv%\WINPE2k3_notes.txt 
Echo . >> %ramdrv%\WINPE2k3_notes.txt 
Echo    * use   net share   to check current shares. >> %ramdrv%\WINPE2k3_notes.txt 
Echo    * use   net share [Share name] /delete to remove share. >> %ramdrv%\WINPE2k3_notes.txt 
Echo . 
 
 
start notepad.exe %ramdrv%\winpe2k3_notes.txt 
endlocal 
exit |   
 
 
 
 |