Script

  • 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

    🙂

  • 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

  • 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.

  • 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

  • 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.

  • 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

  • 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

  • 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

  • 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

  • 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