+ Post New Thread
Results 1 to 4 of 4
Windows Thread, Problems with deploying shorcut via login.bat in Technical; in my AD/locked down inheirited school I'm having problems with the login.bat file. I wanted to quickly add a shorcut ...
  1. #1

    SimpleSi's Avatar
    Join Date
    Jun 2005
    Location
    Lancashire
    Posts
    5,829
    Thank Post
    1,476
    Thanked 595 Times in 446 Posts
    Rep Power
    170

    Problems with deploying shorcut via login.bat

    in my AD/locked down inheirited school I'm having problems with the login.bat file.

    I wanted to quickly add a shorcut to a network copy of Audacity to anyones desktop (they are setup with no profiles - so just use local profiles)

    Here is login.bat file
    Code:
    net use u: /delete /y
    NET USE /persistent:yes u: \\stmarysdc01\common
    
    rem added by SW June 2007
    if not exist "%ALLUSERSPROFILE%\Desktop\The Great Fire.lnk" copy "\\stmarysdc01\common\Magic Grandad\The Great Fire\The Great Fire.lnk" "%ALLUSERSPROFILE%\Desktop\The Great Fire.lnk"
    
    rem added by sw Sep 2007
    if not exist "%ALLUSERSPROFILE%\Desktop\Audacity.lnk" copy "U:\radioanywhere\Audacity\Audacity.lnk" "%ALLUSERSPROFILE%\Desktop\Audacity.lnk"
    
    rem removed \\servername\folder
    WScript.exe \\stmarysdc01\NETLOGON\euxton.vbs
    
    rem added by sw for Audacity
    WScript.exe \\stmarysdc01\NETLOGON\setaudacitymp3.vbs
    
    
    @Echo PLEASE PRESS ANY KEY TO CONTINUE
    pause
    I added the pause at the end and noticed that the shorcut copies fail due to permissions (presumably somewhere this is restricted by something????)

    What is the best way to sort this out - try to work out what's restricting permissions or a different way of getting the shortcut on everyones desktop (as I'm typing this - I think - well I could copy it to the currents users desktop but this just seems wrong to me )

    Any ideas/suggestions please

    regards

    Simon

  2. #2


    Join Date
    Oct 2006
    Posts
    3,414
    Thank Post
    184
    Thanked 356 Times in 285 Posts
    Rep Power
    149

    Re: Problems with deploying shorcut via login.bat

    You want it as a startup (computer) script rather than a logon (user) script. Startup scripts run as system therefore have full perrmissions.


    Why do a network install of audacity? Surerly its just as easy to deploy the msi?

  3. #3

    SimpleSi's Avatar
    Join Date
    Jun 2005
    Location
    Lancashire
    Posts
    5,829
    Thank Post
    1,476
    Thanked 595 Times in 446 Posts
    Rep Power
    170

    Re: Problems with deploying shorcut via login.bat

    You want it as a startup (computer) script rather than a logon (user) script. Startup scripts run as system therefore have full perrmissions.
    Will look into how to do that - ta

    Why do a network install of audacity? Surely its just as easy to deploy the msi?
    The school had paid for a firm to come in and show them how to podcast and he said that we could just install in onto a shared drive - I normally install it locally myself but not on a locked down domain (I can't spell MSI ops: )

    regards

    Simon

  4. #4


    Join Date
    Jul 2007
    Location
    Rural heck
    Posts
    2,662
    Thank Post
    120
    Thanked 433 Times in 352 Posts
    Rep Power
    126

    Re: Problems with deploying shorcut via login.bat

    I do shortcuts a bit differently with a two part script that I run once from my workstation.

    net use q: "\\%1\c$\Documents and Settings\All Users\Start Menu\Programs"
    if not exist q:\DT mkdir q:\DT
    copy *.lnk q:\DT\*.lnk
    net use q: /delete

    The script above copies any lnk file in the same folder into Start>Programs>DT (although you can alter that easily). Run it from a comand prompt with the name of the target PC after it. Or use the script below to run it on multiple machines.

    FOR %%A IN ([names of target PCs separated by spaces]) DO call [name of script] %%A



SHARE:
+ Post New Thread

Similar Threads

  1. deploying software
    By projector1 in forum How do you do....it?
    Replies: 17
    Last Post: 11th March 2009, 05:27 PM
  2. Deploying IE7
    By OverWorked in forum Windows
    Replies: 21
    Last Post: 24th May 2007, 08:54 AM
  3. Deploying a XP theme through GPO
    By Kyle in forum Windows
    Replies: 5
    Last Post: 11th March 2007, 09:42 PM
  4. Problems deploying Office 2003 SP2 by WSUS
    By tosca925 in forum Windows
    Replies: 4
    Last Post: 10th November 2005, 02:20 PM
  5. Slow Login Problems
    By british-wave in forum Windows
    Replies: 16
    Last Post: 8th September 2005, 12:45 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •