#33061 - 2002-11-22 04:28 AM
Re: I got Error code : 1208 when I run my script to map drive
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Kent made an error using MapDrive, there should not be any "\\"'s with the server name.
Should be like:
MapDrive("k:", "bstl_svr3", "users$") [ 22. November 2002, 04:43: Message edited by: Howard Bullock ]
|
Top
|
|
|
|
#33062 - 2002-11-22 04:29 AM
Re: I got Error code : 1208 when I run my script to map drive
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Pech,
To be honest, we should look at what Howard asks in the Microsoft Article. I think he is 100% correct in the sense that: You can connect to the drive, even though delayed. If you couldn't, it would be a permissions issue.
HTH,
Kent
|
Top
|
|
|
|
#33063 - 2002-11-22 04:50 AM
Re: I got Error code : 1208 when I run my script to map drive
|
Pech
Getting the hang of it
Registered: 2002-10-16
Posts: 61
Loc: Thailand
|
To Kent
I just change mapdrive command line as follow;
MapDrive("k:", "bstl_svr3", "users$")
MapDrive("i:", "bstl_svr3", "DocEDP$") ? "mapping i: to groupshare: " MapDrive("j:", "bstl_svr3", "dept$") ? "mapping j: to groupshare: " MapDrive("k:", "bstl_svr3", "users$") ? "mapping i: to groupshare: " MapDrive("l:", "bstl_svr3", "Software$") ? "mapping i: to groupshare: " SHELL "\\bstl_svr1\ofcscan\autopcc.exe"
BUT I still got an error in Map drive line command Failed Error 1208 Not found logon.log on %temp%
Pech
|
Top
|
|
|
|
#33064 - 2002-11-22 04:53 AM
Re: I got Error code : 1208 when I run my script to map drive
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Pech,
Please go back to Howard's Message.
>> We need to start at square one.
And review - 267309
Kent
|
Top
|
|
|
|
#33065 - 2002-11-22 11:28 AM
Re: I got Error code : 1208 when I run my script to map drive
|
Pech
Getting the hang of it
Registered: 2002-10-16
Posts: 61
Loc: Thailand
|
How I can config my server for give user sync clock with my PDC...
I don't know why If I wait a few a minute and run script by manual It works. But At first time failed!
PEch
|
Top
|
|
|
|
#33066 - 2002-11-23 12:54 AM
Re: I got Error code : 1208 when I run my script to map drive
|
Howard Bullock
KiX Supporter
Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
|
Yes we know that: quote: I don't know why If I wait a few a minute and run script by manual It works. But At first time failed!
You have to start displaying that you understand the basics of troubleshooting a problem for us to assist you. Restating the symptom of your problem is of no value at this time.
I, along with others, have spent a great deal of time attempting to assist you, but you appear to be very uncooperative in that you do not answer our questions or provide any detailed information about your environment. Trying to get anything of value from you is like pulling teeth.
You have a problem with the interaction of your clients and server(s). You need to learn more about the operating systems and network configuration. We can not begin to understand the problem without your help.
The KiXtart code you executed to good there is no problem there.
Again, I have asked specific questions above for which you have not provided answers. If you do not want to help yourself, please don't waste our time.
You can research the configuration of time on the Microsoft web site by starting with a search for 'w32time', 'time', or just reading the KB article I posted above and then following the links. [ 22. November 2002, 12:57: Message edited by: Howard Bullock ]
|
Top
|
|
|
|
#33068 - 2002-11-23 08:55 AM
Re: I got Error code : 1208 when I run my script to map drive
|
Pech
Getting the hang of it
Registered: 2002-10-16
Posts: 61
Loc: Thailand
|
To: Kent
rem ::SETLOCAL VER | find "NT" > nul IF not errorlevel 1 GOTO Win_NT
VER | find "2000" > nul IF not errorlevel 1 GOTO Win_NT
VER | find "XP" > nul IF not errorlevel 1 GOTO Win_NT
VER | find "98" > nul IF not errorlevel 1 GOTO Win_9X
VER | find "95" > nul IF not errorlevel 1 GOTO Win_9X
GOTO unknown_os
:win_NT @TITLE Company A / Company B NT Logon Script ECHO HELLO %USERNAME%! Echo Welcome to %USERDOMAIN%, Inc. NT Domain Environment
%LOGONSERVER%\NETLOGON\kix32.exe %LOGONSERVER%\NETLOGON\PLogonNT.kix
goto end
:win_9X
%WINDIR%\PUTINENV.EXE L %WINDIR%\winset computername=%COMPUTERNAME% %WINDIR%\winset username=%USERNAME% %WINDIR%\winset LANGROUP=%LANGROUP% %WINDIR%\winset LOGONSERVER=%LOGONSERVER%
:: --- DISPLAY THE USER NAME/DOMAIN ECHO HELLO %USERNAME%! ECHO Welcome to %LANGROUP%, Inc. Windows 9x Domain Environment
%LOGONSERVER%\NETLOGON\kix32.exe %LOGONSERVER%\NETLOGON\PLogon9X.kix <<<<<< Cannot run >>>>>>
goto end
:unknown_os :end exit
-------------------- Now I found and fixed the problem with W32Time but I have some question about those command line ...
Why That command cannot run.. %LogonServer% cannot find? What happen on Window9X parameter.
But In Windows2000 no error.
Thanks Pech
|
Top
|
|
|
|
#33069 - 2002-11-23 09:49 AM
Re: I got Error code : 1208 when I run my script to map drive
|
Pech
Getting the hang of it
Registered: 2002-10-16
Posts: 61
Loc: Thailand
|
Why, the command windows doesn't disappear when script run finished? When use click and enter the windows will be disappear!
PEch
|
Top
|
|
|
|
#33070 - 2002-11-23 11:09 AM
Re: I got Error code : 1208 when I run my script to map drive
|
Pech
Getting the hang of it
Registered: 2002-10-16
Posts: 61
Loc: Thailand
|
How to set automatic close windows command run script when run script finished.
I use : EXIT but windows has still untill press enter. Why?
Pech
|
Top
|
|
|
|
#33073 - 2002-11-24 06:56 AM
Re: I got Error code : 1208 when I run my script to map drive
|
Pech
Getting the hang of it
Registered: 2002-10-16
Posts: 61
Loc: Thailand
|
Ok I'll follow as your advice. One Script for any OS. But I don't know why script running windows is not automatic close when script run finished. It still open , user must press enter to close it! why not?
Pech
|
Top
|
|
|
|
#33075 - 2002-11-24 09:44 AM
Re: I got Error code : 1208 when I run my script to map drive
|
Pech
Getting the hang of it
Registered: 2002-10-16
Posts: 61
Loc: Thailand
|
OK I understand. I think ... $ is wait for reply from user to press any key.
Pech
|
Top
|
|
|
|
#33076 - 2002-11-24 09:48 AM
Re: I got Error code : 1208 when I run my script to map drive
|
Pech
Getting the hang of it
Registered: 2002-10-16
Posts: 61
Loc: Thailand
|
OK I understood. I delete Press any key but I forgot to delelet line.. $ <--is wait for reply from user to press any key. Right? Pech
|
Top
|
|
|
|
#33078 - 2002-11-24 09:49 AM
Re: I got Error code : 1208 when I run my script to map drive
|
Pech
Getting the hang of it
Registered: 2002-10-16
Posts: 61
Loc: Thailand
|
OK I understood. I delete "Press any key to close" but I forgot to delelet line.. get $ <--is wait for reply from user to press any key. Right? Pech
|
Top
|
|
|
|
#33080 - 2002-11-25 03:08 AM
Re: I got Error code : 1208 when I run my script to map drive
|
Pech
Getting the hang of it
Registered: 2002-10-16
Posts: 61
Loc: Thailand
|
PLogon.bat -------------------------------------------------- echo off rem ::SETLOCAL VER | find "NT" > nul IF not errorlevel 1 GOTO Win_NT
VER | find "2000" > nul IF not errorlevel 1 GOTO Win_NT
VER | find "XP" > nul IF not errorlevel 1 GOTO Win_NT
VER | find "98" > nul IF not errorlevel 1 GOTO Win_9X
VER | find "95" > nul IF not errorlevel 1 GOTO Win_9X
GOTO unknown_os
echo on
:win_NT @TITLE BRIDGESTONE SALES (THAILAND) CO.,LTD. Logon Script ECHO HELLO %USERNAME%! Echo Welcome to %USERDOMAIN%, Inc. NT Domain Environment
%LOGONSERVER%\NETLOGON\kix32.exe %LOGONSERVER%\NETLOGON\PLogonNT.kix
goto end
:win_9X
echo ON
REM %WINDIR%\PUTINENV.EXE L \\BSTL_SVR1\NETLOGON\winset.exe computername=%COMPUTERNAME% \\BSTL_SVR1\NETLOGON\winset.exe username=%USERNAME% \\BSTL_SVR1\NETLOGON\winset.exe LANGROUP=%LANGROUP% \\BSTL_SVR1\NETLOGON\winset.exe LOGONSERVER=%LOGONSERVER%
ECHO OFF REM %WINDIR%\winset computername=%COMPUTERNAME% REM %WINDIR%\winset username=%USERNAME% REM %WINDIR%\winset LANGROUP=%LANGROUP% REM %WINDIR%\winset LOGONSERVER=%LOGONSERVER%
echo on :: --- DISPLAY THE USER NAME/DOMAIN ECHO HELLO %USERNAME%! ECHO Welcome to %LANGROUP%, Windows 9x Domain Environment
rem %LOGONSERVER%\NETLOGON\kix32.exe %LOGONSERVER%\NETLOGON\PLogon9X.kix
\\BSTL_SVR1\NETLOGON\kix32.exe \\BSTL_SVR1\NETLOGON\PLogonNT.kix
goto end
:unknown_os :end exit --------------------------------------------
PLogonNT.kix -------------------------------------------------
? @kix ? @dos ? @ldrive ;;USE "*" /delete ;-- commented this out as the MapDrive function takes this into account ;;? "delete persistent mappings: " MapDrive("h:", "bstl_svr3", "%username%$") ? "mapping h: to homeshare: " -------------------------------------------------
I can not map drive H: on Windows 9x.. Error code : 67 In Windows NT,2000 and XP no problem...
Pech
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 329 anonymous users online.
|
|
|