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 ...
-
26th September 2007, 02:43 PM #1 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
-
-
IDG Tech News
-
26th September 2007, 03:17 PM #2 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?
-
-
26th September 2007, 07:06 PM #3 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
-
-
27th September 2007, 09:32 AM #4 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: 
Similar Threads
-
By projector1 in forum How do you do....it?
Replies: 17
Last Post: 11th March 2009, 04:27 PM
-
By OverWorked in forum Windows
Replies: 21
Last Post: 24th May 2007, 07:54 AM
-
Replies: 5
Last Post: 11th March 2007, 08:42 PM
-
By tosca925 in forum Windows
Replies: 4
Last Post: 10th November 2005, 01:20 PM
-
By british-wave in forum Windows
Replies: 16
Last Post: 8th September 2005, 11:45 AM
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
-
Forum Rules