How to create a shortcut for all users in Win 7 and Win 8?

Hi,
I'll trying to make a script that will create a shortcut in every user profile account in a computer. I stumble upon the script below from
http://gallery.technet.microsoft.com/scriptcenter/Create-shortcut-in-your-11cfd3de/view/Discussions#content.
Option Explicit
On Error Resume Next
Dim objShell
Dim objDesktop
Dim  objLink
Dim strAppPath
Dim strWorkDir
Dim strIconPath
strWorkDir ="C:\Program Files\Microsoft Office\Office15"
strAppPath = "C:\Program Files\Microsoft Office\Office15\ORGCHART.EXE"  'you have to use your URL to Interanet site or path to specific program
'strIconPath = "\\server\Xyz.ico"     'specify the path to the icon please change to your valid path
Set objShell = CreateObject("WScript.Shell")
'objDesktop = objShell.SpecialFolders("Desktop")
Set objLink = objShell.CreateShortcut("C:\Users\%userprofile%\Desktop\Org_chart_test.lnk") 'change here To your shortcut name
objLink.Description = "this is a test" 'replaec with your description
'objLink.IconLocation = strIconPath
objLink.TargetPath = strAppPath
objLink.WindowStyle = 3
objLink.WorkingDirectory = strWorkDir
objLink.Save
I did some modifications to cater to my need. Now the question is, how can I make the script create a shortcut for every user profile from the script above?
Any inputs would be greatly appreciated.
Thanks!

You could create the shortcut at one machine, then copy it to the target as part of the logon script. Note also that this line contains an error:
"C:\Users\%userprofile%\Desktop\Org_chart_test.lnk"
It should read:
"%userprofile%\Desktop\Org_chart_test.lnk"

Similar Messages

  • Creating an shortcut for all users on the desktop

    I want to create a shortcut for all users on the desktop that will appear for all users that login to the computer.  How is this done in Windows 7?  In Widows XP this was done at the "All Users" profile, but I cannot find such a profile  in Windows 7. 

    the users have windows vista , 7 or 8 have a chortcut i created and the users have windows xp isn't created on them desktop
    Do you have a question? If so then your best bet is to create a new post (this one is 5 years old and marked as "answered"!) and spell it out there.

  • How to create delivery device for all users ?

    hi
    help needed ...
    i activated delivery tool
    but i dont know how to create email devices for all users
    is there any api / manual action
    obiee version : Oracle Business Intelligence 10.1.3.4.1
    thanks
    yuval

    Yuval..u need to setup SA System in RPD..
    refer http://oraclebizint.wordpress.com/2008/04/25/oracle-bi-ee-101332-sa-system-subject-area-autoloading-profiles-and-bursting/

  • How to create a shortcut for desktop as with IE?

    I've switched my browser to "Firefox" from 'Internet Explorer and would like to know how to create a shortcut for my desktop.

    You can drag the favicon on the left end of the location bar onto the desktop to create a shortcut.
    You can also use an extension.
    * SaveLink: https://addons.mozilla.org/en-US/firefox/addon/savelink/
    * Deskcut: https://addons.mozilla.org/en-US/firefox/addon/deskcut/

  • SNR License Issue. How Can I Disable SNR for all Users?

    Hi,
    I Have an issue with SNR on CUCM 10.5 and with assignement of license type
    I have a cluster with 400 users.
    200 users use ip phone 3905 and should be use an Essential License.
    When system check for assignement of license type , itassign a Basic License instead of an Essential License, because it see that users have SNR Enabled.
    All users in my system have SNR enabled, and I can not disable it. All my user have Enable Mobility unchecked, and all my phone have Device Mobility Off, but system however see SNR enable.
    How can i disable SNR for all users? This is a feature that client don't need.
    I dont' have a sufficent number of licenses for support all 3905 in Basic License.
    thanks for help.
    Andrea

    Well actually, Mobile Identity wouldn't apply to a 3905 unless those phones had another line on a Dual-Mode device like an iPhone or Android phone.  So unless you have either of those in your system you can scratch that idea.  Someone else may chime in here and try to help a bit more as RD/RDP are the main SNR culprits.

  • How to install plugin globaly (for all users) in Firefox13?

    How to install plugin globaly (for all users) in Firefox13?

    See also:
    *https://developer.mozilla.org/en/Gecko_Plugin_API_Reference/Plug-in_Development_Overview#Installing_Plug-ins

  • Is there an easy way to add a desktop shortcut for all users?

    Looking for an easy way to add a shortcut to an app for all users.

    William is correct. There are global system settings, and then there are personal user settings. Adding a shortcut to the desktop, or more commonly the Dock is a personal setting.
    Unless its in some kind of mass deployment scenario where you can create a pre programed image for large amounts of computers which has it already has your app shortcut setup, its easier to just do it one user at a time.

  • How to create global groups for end users

    Just started deployment of Lync 2013.  We do not host our exchange / mail internally.  It is a hosted solution (not exchange).  We do use outlook though.
    It has been a long time since I set up Lync (Since OCS 2007 / 2007 R2)
    Can someone please tell me how to create groups for all users on the Lync Client and populate them from groups in AD.Right now we are using Spark and we have decided to use Lync.  In Spark it queries AD every day and populates the groups from AD
    groups that we have defined.
    I know that users can create there own groups, but we prefer to have every client have every group (department) and those in department listed below rather than them have to manually add them individually.
    Thanks for your direction.
    John

    Hello john,
    Lync Client can't use AD group or Exchange mail group. You can't create Lync client group with AD GPO. each Lync user can create their own group in Lync client and of course can delete.
    You can not manage Lync client within the
    group as the centeral. There is no such
    feature in Lync. you can examine 3rd party applications. for example ;
    http://www.vytru.com/contacts-manager-for-microsoft-lync.html
    Regards
    Zulfikar CAGLAR
    The statement is incorrect. You CAN use Distribution Groups from Active Directory in Lync Client:
    http://support.sherweb.com/Faqs/Show/how-to-add-contacts-from-distribution-lists-in-lync-2013
    Please “Vote As Helpful” and/or “Mark As Answer” if this post helped you.

  • How to set permissions like "For all users" with Sandbox

    Hello!
    Hello!
    I am using Sandbox for Mac OS X Leopard and I've got a question to you:
    How can I set up a folder to behave like the For all users folder in the users directory?
    Greetings

    Well, sandbox sets ACL's not posix permissions. The sticky bit is a posix permission. Sand box will allow you to do something similar to the sticky bit using ACL's, but the exact duplication of the sticky bit is not possible, but something just as useful or more useful can be easily implemented.
    To set the sticky bit you will need an app called FileXaminer or the Terminal.app command line.
    to set the sticky bit simply put "1" in front of the the permissions number when you run chmod on the command line, here is an example:
    chmod 1775 /users/data/shared #assigns permissions 775 and the sticky bit#
    chmod 775 /users/data/shared #assigns permissions 775 without the sticky bit#
    note: note actual use of the chmod and chown commands will, in most cases require the sudo (super user do) command to be used with them. example:
    sudo chmod 1775 /users/data/shared #assigns temporary super user priviledge#
    The way I set my shared user's directories with ACL's is this:
    first I created folder /users/data -permissions=777 (everyone).
    I had three users so I created folders for each in /users/data:
    /users/data/user1 #this is just example-substitute real user name#
    /users/data/user2
    /users/data/user3 #etc,etc,#
    set the posix permission on each user folder 700 (owner:read,write,execute)
    set the owner and group on each one accordingly:
    chown user1:staff /users/data/user1 #substitute real user name#
    chown user2:staff /users/data/user2
    chown user3:staff /users/data/user3 #(etc,etc)#
    Now each user has their own data folder they can read and write to at will (when they are logged in to their user account).
    They can safely create and maintain their data and no one can delete it.
    Since these are shared data accounts. other users will need to read the data, this is where the ACL's come in.
    You will need to use Sandbox to place ACL's for each allowed user, on each of the user directories:
    0: user:joe inherited allow list,addfile,search,add_subdirectory,readattr,writeattr,readextattr,writeextattr,readsec urity,file_inherit,directoryinherit
    1: user:mary inherited allow list,addfile,search,add_subdirectory,readattr,writeattr,readextattr,writeextattr,readsec urity,file_inherit,directoryinherit
    2: user:sue inherited allow list,addfile,search,add_subdirectory,readattr,writeattr,readextattr,writeextattr,readsec urity,file_inherit,directoryinherit
    Basically with the above ACL's the only thing the allowed user can't do is delete files. They can copy files, they can add files, etc. This behavior is somewhat similar to what can be accomplished with the sticky bit, but much more controlled and structured. That is the beauty of using ACL's.
    Using SandBox you can taylor the permissions as you see fit for each every user. You can set permissions for an administrator to delete files as well. You can take away or add permissions for each user as you see fit. let your imagination be your guide.
    ACL's weren't meant to replace posix permissions, but rather to allow administrators to fine tune user permissions.
    Kj

  • New self signed certificate, how to mark as trusted for all users on clients

    We have a new 10.8 server that we are currently using for iChat/Messages service.  We have created a self signed certificate to encrypt the traffic to the Messages service since we have the service accessible for internet and phone users.  We use network accounts and users need to log in on several different machines when in the office.
    Can anyone suggest how to tell a client machine to trust the certificate for all users?
    Currently, each user is asked to trust the certificate on each client they log into.
    I have imported the server certificate into the client's system keychain in Kechain Access and asked it to trust the certificate for all items manually.  This does not appear to allow all users to trust the certificate since subsequent users who have not yet trusted the certificate on the test client are still asked to confirm trust.  When opening the iChat.app the users are still propmpted to verify the certificate which now indicates that it is trusted for all users.

    Resolved.
    - Drag certificate from verification dialog.
    - Import into System Keychain
    - Select certificate in System Keychain and select "i" button at bottom of window.
    - Set all items to always trust.

  • How to provision an app for all users with all dependencies?

    I have created an app package with VS that I want to provision for all users of a target system using
    DISM /Online /Add-ProvisionedAppxPackage /FolderPath:".\%package%" /SkipLicense
    The path contains the content of the *Test folders VS creates when creating store packages. However DISM expects a ".main" file in this folder to work (0xc1570102).
    What's the correct way to provision an app with all its dependency packages? (Using the PackagePath option?)

    After some further testing in Profile Manager I found that adding the applescript to items that open at logon seems to work. No need for the plist, unless of course I decide not to use Profile Manager at all.

  • How to set toolbar options for all users in Reader

    Hi to everybody
    I have istalled adobe acrobat reader on a PC and i'd like to hide the toolbar for all user (old and new users) of thes PC.
    I'm using windows xp and acrobat reader 7.
    I have try to chek the user's folder and system registry but i don't find anything usefull
    How can I do that?
    Thanks
    Andrea

    Hi to everybody
    I have istalled adobe acrobat reader on a PC and i'd like to hide the toolbar for all user (old and new users) of thes PC.
    I'm using windows xp and acrobat reader 7.
    I have try to chek the user's folder and system registry but i don't find anything usefull
    How can I do that?
    Thanks
    Andrea

  • How to create a shortcut for specific words?

    Hi
    I need to create a shortcut for a number of long expressions. Example:
    - "BE" => "business ecosystem"
    - "OB" => "organizational behavior"
    - etc.

    It's really funny to see users wasting their time when the answer to their problem is available in delivered resources.
    Here is a subset of Pages User Guide :
    You may also look at :
    https://discussions.apple.com/message/17331879
    Yvan KOENIG (VALLAURIS, France) jeudi 19 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k
    My iDisk is : http://public.me.com/koenigyvan

  • How do you configure Firefox for all users on a machine?

    I want to
    1. Take my existing set-up of Firefox
    a. with all bookmarks
    b. with all my chosen options
    c. with my default start-up home page
    d. bypass all the initial Firefox startup screen and "make this your default screen"
    2. Have it be the base set-up for all users that log into a machine on our domain.
    Is there a config file? Where do I place this config file so when all open their firefox it takes the above settings. I am creating a base image using VMware and will want this set-up so when a user log in with their logon credentials and open Firefox, it already has the above mentioned settings in place.

    See CCK Wizard: https://addons.mozilla.org/firefox/addon/cck/
    You can use a mozilla.cfg file in the Firefox program folder to lock prefs or specify new (default) values.
    Place a file local-settings.js in the defaults\pref folder where you also find the file channel-prefs.js to specify using mozilla.cfg.
    pref("general.config.filename", "mozilla.cfg");
    pref("general.config.obscure_value", 0); // use this to disable the byte-shift
    See:
    *http://kb.mozillazine.org/Locking_preferences
    These functions can be used in the mozilla.cfg file:
    defaultPref(); // set new default value
    pref(); // set pref, but allow changes in current session
    lockPref(); // lock pref, disallow changes

  • SharePoint 2013- on-Prem - Create OneDrive Site for all users automatically

    I want to create OneDrive for all users automatically by running some PowerShell code
    Can somebody provide me link to the reference of creating that PS script

    Hi,
    here you are the code as stated in this link
    http://matthewyarlett.blogspot.com/2014/06/script-creating-sharepoint-user-mysites.html
    Function Create-MySite
    [CmdletBinding()]
    Param
    [Parameter(Mandatory = $True,Position=2,valueFromPipeline=$true)][String]$Username,
    [Parameter(Mandatory = $True,Position=1)][String]$MySiteRootURL
    [void][reflection.assembly]::Loadwithpartialname("Microsoft.Office.Server");
    $site=new-object Microsoft.SharePoint.SPSite($MySiteRootURL);
    try
    $serviceContext = Get-SPServiceContext $site;
    $upm = new-object Microsoft.Office.Server.UserProfiles.UserProfileManager($serviceContext);
    if($upm.UserExists($Username) -eq $false)
    Write-Host "User $Username was not found in the profile store." -f yellow;
    return;
    $userProfile = $upm.GetUserProfile($Username);
    if($userProfile.PersonalSite -eq $Null)
    Write-Host "Creating MySite for user $Username" -f darkyellow;
    $userProfile.CreatePersonalSite();
    Write-host "Successfully created MySite for user $Username" -f green;
    else
    Write-Host "User $Username already has a MySite." -f darkgreen;
    catch
    Write-Host "Encountered an error creating a MySite for user $Username. Error:"$_.Exception -f Red;
    finally
    $site.Dispose();
    to call the function:
    #Example - Create a MySite for user "tonyj"
    Create-MySite -MySiteRootURL "http://mysite.bigintranet.com.au" -Username "tonyj"
    #To Create for an array of users
    $users = @('tonyj','bobh','markf','billd')
    $users | Foreach {Create-MySite -MySiteRootURL "http://mysite.bigintranet.com.au" -username $_}
    Kind Regards,
    John Naguib
    Technical Consultant/Architect
    MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation
    Please remember to mark your question as answered if this solves your problem

Maybe you are looking for