August 24, 2010 at 12:54 pm
Sorry guys please help this runs locally but not via script/Batch file:
%LOGONSERVER%\NETLOGON\UTLiteNT.bat
cscript \\uftwfadrootcnt\NETLOGON\ListMycomputer.vbs >> \\UFTwfnas2\Dr\San\%username%.%Computername%--DriveMappings.txt
🙂
August 24, 2010 at 1:03 pm
Where are you trying to run that? Are you trying to run that from SQL server or from your desktop?
What OS version?
What SQL Version?
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
August 24, 2010 at 1:06 pm
Hi Bud it runs ok from XP than I try to run it within a batch file (The users domain account is configured to run this script on a domain controller during the authentication process.
August 24, 2010 at 1:12 pm
Error messages?
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
August 24, 2010 at 1:16 pm
No messages at all when running from XP it puts the text files at (UFTWFNAS2) with no problems but inside the script it throws no messages and puts no text files in (uftwfnas2).
Thanks.
August 24, 2010 at 2:38 pm
without knowing how your bat file is written, it would be difficult to try to figure it out.
Have you tried posting this to a user group specific to networking or server administration rather than sql server?
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
August 24, 2010 at 2:40 pm
rem ***************** UFT Accounting dept. Logon script*********
NET TIME /SET \\UFTWFPDCSVR /YES
NET USE F: \\UFTWFNAS2\ACCT_COMMON /YES
NET USE H: \\UFTWFNAS2\Acct_Home /YES
%LOGONSERVER%\NETLOGON\LOGONAPP.EXE http://10.52.11.9:15880 /NOPERSIST /COPY
%LOGONSERVER%\NETLOGON\UTLiteNT.bat
cscript \\uftwfadrootcnt\NETLOGON\ListMycomputer.vbs >> \\UFTwfnas2\Dr\San\%username%.%Computername%--DriveMappings.txt
August 24, 2010 at 2:42 pm
rem ***************** UFT Accounting dept. Logon script*********
NET TIME /SET \\UFTWFPDCSVR /YES
NET USE F: \\UFTWFNAS2\ACCT_COMMON /YES
NET USE H: \\UFTWFNAS2\Acct_Home /YES
%LOGONSERVER%\NETLOGON\LOGONAPP.EXE http://10.52.11.9:15880 /NOPERSIST /COPY
%LOGONSERVER%\NETLOGON\UTLiteNT.bat
cscript \\uftwfadrootcnt\NETLOGON\ListMycomputer.vbs >> \\UFTwfnas2\Dr\San\%username%.%Computername%--DriveMappings.txt
August 24, 2010 at 2:43 pm
rem ***************** UFT Accounting dept. Logon script*********
NET TIME /SET \\UFTWFPDCSVR /YES
NET USE F: \\UFTWFNAS2\ACCT_COMMON /YES
NET USE H: \\UFTWFNAS2\Acct_Home /YES
%LOGONSERVER%\NETLOGON\LOGONAPP.EXE http://10.52.11.9:15880 /NOPERSIST /COPY
%LOGONSERVER%\NETLOGON\UTLiteNT.bat
cscript \\uftwfadrootcnt\NETLOGON\ListMycomputer.vbs >> \\UFTwfnas2\Dr\San\%username%.%Computername%--DriveMappings.txt
August 25, 2010 at 1:16 pm
I can run this script in the commnd prompt but not in batch file:
%LOGONSERVER%\NETLOGON\UTLiteNT.bat
cscript \\uftwfadrootcnt\NETLOGON\ListMycomputer.vbs >> \\UFTwfnas2\Dr\San\%username%.%Computername%--DriveMappings.txt
Viewing 10 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic. Login to reply