Place a script on client desktops

We are looking to see if there is anyway way to push a script down to client desktops after a user logs in, we use a script to allow all of our clients to connect to a Windows shared location, but would like to know a way to put it on their desktops besides using the English.lproj folder, or if there was anyway that we could have the computer actually mount the drive and show it on the desktop that would be wonderful. We have looked around a bit but cannot seem to find anyway to do this.

If you are trying to get an volume to automount, why not just use MCX and manage a login item? You said the computers are bound, so the assumption is the users and groups and computers are on the OD system. If this is the case, select a group or a user and go to Preferences in WGM. When the pane comes up choose Login. Click on the Items tab and set it to manage always. Then, drag the share to the list box and check the "authenticate selected share point with user's login name and password." If you run WGM from a managed workstation this is easier. But you can do this from the server. You just need to hand edit the key from the all records inspector.
Now, if you really want to update stuff on the server, you need a little scripting work. First you need to deliver the payload to all stations and then execute a local script to place the content were you want. This is because all home folder paths are unique and it is possible to have more than one user per machine. Follow these steps as a framework.
1: Gather the payload and use the Copy Items part of ARD to send the files over to a generic location on all workstations. /tmp is a good location and I've used /tmp/ARDpush as the example.
2: Once the files are copied, use the script example below and send it to /tmp and then execute the script using the send unix command. Basically, you path it as /tmp/script.sh and set the user to root so you can get into the user home folders.
And that should do it. Items in tmp should be deleted on reboot so this is self cleaning. Here is a simple framework script. It is a simple script that identifies non-system users. If you have a default admin on the machine (and we all should), then the value is > 501 so we exclude the initial admin. If you need the changes on the admin account, then set > to 500. This works for OD and AD users since their UIDs are either > 1025 or > 1000000000.
I also used dscl as this should work on everything since 10.4. I have NOT tested this on 10.4 so keep that in mind. If you are still supporting 10.3, then dscl will need to be replaced with niutil.
---Create this script in a plain text editor and chmod 755 before sending it to the clients---
#!/bin/sh
# Define the path to the source files
filesToCopy=/tmp/ARDPush/
# Define the partial path for relative destination
whereToPlaceFiles=/Desktop/
# Get a list of user names that are above 500 or 501 if you want to exclude the admin
users=$(dscl . -list /Users uid | awk '$2 > 501 {print $1}' | sort)
for user in $users; do
# Iterate through all the users and get their home folder path
homePath=$(dscl . -read /Users/$user NFSHomeDirectory | awk '{print $2}')
# Perform the copy process
cp -R $filesToCopy $homePath$whereToPlaceFiles
done
# end of script
Hope this helps.

Similar Messages

  • I am looking for a map app that will allow me to place pins where my clients offices are on a map and keep them save every time I open the app. Does anyone out there know of an app that will do this?

    I am looking for a map app that will allow me to place pins where my clients offices are on a map and keep them save every time I open the app. Does anyone out there know of an app that will do this?

    "Motion 5" is your friend.
    Michael Wohl has a nice 15 video series (free) about Motion 5 at http://www.macprovideo.com/tutorial/motion5101-overview-and-workflow-guide (right side)
    This is a "teaser" series to sell his tutorials but it is really good. Just saw it yesterday for the first time.
    While all you want is just to place pins, realize that Motion has so much more. All kinds of effects and they can be really customized. Maybe put their street address, contact name, and phone number by the pin?
    Motion 5: cheap at $49.99 (just got my download two days ago)
    Motion 5: Support Community athttps://discussions.apple.com/community/professional_applications/motion_5
    If you're using the map for, say, deliveries, and use an iPad, what you could do is have a general map of the area imported into Motion, create the pins and whatever, then save (share?) it to the iPad.
    Disclaimer: I have virtually no relationship with anything connected with this tutorial product, developer, or anything.

  • Why can't I place disk icons on my desktop?

    Why can't I place disk icons on my desktop?
    I installed OSX Lion, version 10.7.1 from the App Store onto the internal disk of my MacBookPro which was cloned to an external FW800 GoFlexDesk drive. I booted from that external drive, ran the disk utility to erase and then repartition my internal drive so that I would have a "clean" installation of Lion. My disk icon (for the internal drive) does not even show in Finder windows. In Snow Leopard I showed my internal drive, my Time Capsule drives, and any external drives on my desktop as icons. Now these do not even show in Finder. I know they are there, because if I choose the path view option, they are shown when I pick "All My Files" under favorites. I can navigate backwards in the path bar, but still they do not actually allow me to select them or drag them to the desktop. In Snow Leopard, it was an option to show disks on desktop in general system preferences, but I find that option no where in Lion! What simple little thing am I missing?

    PilotShawn wrote:
    What simple little thing am I missing?
    Finder > Preferences > General > Show these items on the Desktop?

  • I am using Photoshop CC2014 15.00.  In the pop-up menu for the Fill command there is a place for Scripted patterns.  Within that part, the tree and the picture frame are grayed. Why?   I've seen demonstrations on how to use the feature but mine doesn't wo

    I am using Photoshop CC2014 15.00.  In the pop-up menu for the Fill command there is a place for Scripted patterns.  Within that part, the tree and the picture frame are grayed.
    Why?   I've seen demonstrations on how to use the feature but mine doesn't work.  I checked the updates and I have the current version.
    Thanks.      LM

    I am running CC 2014.2.1 and I've updated to Yosemite. Not seeing tree or frame as an option in the menu. Coworker still on Mavericks has it.

  • SCOM Console Monitoring on Client Desktops

    Hi,
    Has anyone configured SCOM console monitoring on client desktops?
    The SCOM console goes to Not Responding state or takes time to load Monitoring View.I want to set monitoring for the same.

    For generic client desktop monitoring, you may import windows 7 or windows 8 client MP, can download from
    http://www.microsoft.com/en-us/download/details.aspx?id=15700 for windows 7 and
    http://www.microsoft.com/en-us/download/details.aspx?id=38434 fro windows 8
    Moreover, for troubleshoot poor operations console performance you may
    Firstly, please try clearing cache and see how it works:
    How and When to Clear the Cache
    http://technet.microsoft.com/en-us/library/hh212884.aspx
    If the issue persists, please check it referring to the following posts:
    OpsMgr 2007: Troubleshooting Console Performance in large environments
    http://blogs.technet.com/b/operationsmgr/archive/2009/09/17/opsmgr-2007-troubleshooting-console-performance-in-large-environments.aspx
    Speeding up the SCOM Console
    http://thoughtsonopsmgr.blogspot.com/2009/03/speeding-up-console.html
    Meanwhile, please also check the Event Log on the management server.
    Roger

  • Why  SAP script is client dependent ?

    why  SAP script is client dependent ?

    Hi,
    By design, SAP script is a word processing tool which displays data on the form with the help of text elements where the logic of those is written in the print program and Forms were designed to be driven from print program, hence are often termed as client dependent. Smart forms are client independent. Bcoz it doesnu2019t use any text elements. It will be executed through a function module. When a print program calls a Smart Form, the form itself takes over to produce output, without any further direction from print program.
    Pelase reward if useful.
    Bye

  • Send sap script to client through mail

    hi gurus,
    here it goes..
    i have made a sap script and when i execute the driver program a screen pops up showing print parameters like 'print',printpreview , spool request etc.
    i assign a local printer lp01 to it and slect new spool request and click on print .
    but after that nothing happens . actually i want to view the spool number i go to transaction sp01 where i cannot find any spool numbers under my id.
    secondly,
    if i get the spool number (if i get) how to send the sap script to client's email id directly .also the sap script delivered to client should be in a printable form
    do help .points will be awarded.

    HI
    Use FM:
    Read the Spool:
        call function 'RSPO_RETURN_SPOOLJOB'
             exporting
                  rqident              = w_spoolid
                  desired_type         = c_raw  "'RAW'
             tables
                  buffer               = x_buffer
             exceptions
                  no_such_job          = 1
                  job_contains_no_data = 2
                  selection_empty      = 3
                  no_permission        = 4
                  can_not_access       = 5
                  read_error           = 6
                  type_no_match        = 7
                  others               = 8.
    Then move it ,
       loop at  x_buffer.
          x_contents = x_buffer.
          append x_contents.
          clear  x_contents.
        endloop.
    , where x_contents like solisti1 occurs 0 with header line.
    Then, fill the desired parameters and call,
    call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
               exporting
                    document_data              = wa_document_data
               tables
                    packing_list               = x_packing_list
                    object_header              = x_object_header
                    contents_bin               = x_contents_bin
                    contents_txt               = x_contents_txt
                    receivers                  = x_receivers
               exceptions
                    too_many_receivers         = 1
                    document_not_sent          = 2
                    document_type_not_exist    = 3
                    operation_no_authorization = 4
                    parameter_error            = 5
                    x_error                    = 6
                    enqueue_error              = 7
                    others                     = 8.
    Take help of this FM documentation.
    Regards
    Subramanian

  • Why SAP Script are Client Dependent, Smartforms are client-independent.

    why  SAP Script are Client Dependent,Smartforms are client-independent.
    Edited by: Srinivasa Reddy Ariga on Oct 27, 2008 12:28 PM
    Edited by: Srinivasa Reddy Ariga on Oct 27, 2008 12:49 PM

    Before you do anything else, read this: Welcome and Rules of Engagement
    Google is your friend.  Try keywords smartforms client dependent   Next time - search first and ask second.
    oh, and it helps to get the correct forum...

  • Issues with running permission scripts on Hoted desktop via Citrix and when deploying via SCCM

    I am running a permissioning VBScript which runs when I do a standalone insallation manually running the power shell commands to add and publish the application.
    This only runs vis SCCM when a machine installation is acrried out but not a per user installation. Any ideas?
    The same script seems to run sometimes & sometimes does not on a hosted desktop with aps publish via citrix from the appv server. Any ideas?. A coppy of my Deploymentconfig.xml file userscript section that calls the script is below
    <UserScripts>
          <StartProcess RunInVirtualEnvironment="true">
            <ApplicationId>[{AppVPackageRoot}]\Adobe Photoshop CS6 (64 Bit)\Photoshop.exe</ApplicationId>
            <Path>[{AppVPackageRoot}]\..\Scripts\AdobeSerialization.exe</Path>
            <Arguments>adobe_prtk --tool=VolumeSerialize --provfile=[{AppVPackageRoot}]\..\Scripts\prov.xml</Arguments>
            <Wait RollbackOnError="false" />
          </StartProcess>
          <StartVirtualEnvironment>
            <Path>WSCRIPT.EXE</Path>
            <Arguments>[{AppVPackageRoot}]\..\Scripts\VFSCACLS.vbs -guid 6d0756af-b755-493b-8cee-4299e8666978 -error -name "Adobe Photoshop CS6"</Arguments>
            <Wait RollbackOnError="false" />
          </StartVirtualEnvironment>
        </UserScripts>
    The guys in the build team reckon this is an application issues but I can't see how it can be if the applications runs when manually calling the powersehell commands. Also like I said on the Hosted desktop one minutes the script runs and one minute it does
    not.
    Can someone help please?

    Hello,
    If deploying the application to the user, and the configuration file is updated as part of the content and distributed to the DPs, and then downloaded to the client and the client is enabled to run scripts - no I never had that issue.
    If I had something which didn't work I would usually verify what is on the Distribution Point?
    You can download the SCCM 2012 R2 toolkit to verify what is on the DPs;
    http://www.microsoft.com/en-us/download/details.aspx?id=36213
    If it is deployed to the client - it means you can read the client log-file from SCCM. See the AppEnforce.log as a potential candidate;
    http://technet.microsoft.com/en-us/library/hh427342.aspx#BKMK_AppManageLog
    If it gets properly parsed by the App-V Client you can check the App-V event logs, see Tim Mangans blog post about enabling further debug-logs;
    http://www.tmurgent.com/TMBlog/?p=1247
    As I can't see what is happening within your Environment I would redo all the steps and verify what the results were of each step. If one step fails, I would then post what step I had performed up until that point, what the result were of each step and what
    was happening within the final step that I would consider a failure.
    Nicke Källén | The Knack| Twitter:
    @Znackattack

  • Codedui - sendkeys for ALT does not function when replaying scripts in remote desktop

    using remote desktop to access server that executes codedui.  the script contains sendkeys steps.  the first step is to click the ALT key.  watching the replay, the alt key never gets 'sent/clicked'.  script executes successfully if
    executed directly on the server machine (not using remote desktop for replay).  how to get sendkeys to execute replaying codedui on server accessed by remote desktop?

    Hi cemav,
    According to your description, it seems that the coded UI test script is created in VS IDE on the server machine.
    Could you please tell me detail steps about how you use the remote desktop to access server that execute the coded UI test script?
    Please share me the error log about executing the coded UI test script fail.
    From this issue, I suggest you try to check if you can access the server machine successfully without executing the coded UI test script from the remote desktop?
    In addition, I suggest you could use DrawHighlight Method /SetFocus()
    to check if the correct control is found before you perform actions on the target control.
    Or you can also refer the following blog to check your issue.
    http://blogs.msdn.com/b/tapas_sahoos_blog/archive/2011/11/07/troubleshooting-record-and-playback-issues-in-coded-ui-test.aspx
    If the above suggestion still could not help you, I suggest you can share me the latest message about your issue.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • External clients desktop sharing fails

    After reading through various articles and forum posts I am desperate enough to contribute my first post...
    The Problem:
    We have successfully implemented a Lync 2010 infrastructure.
    Internal to Internal works perfect 
    Internal to external (or vice versa) works perfect except for desktop sharing (Audio /Video works perfect)
    (with external being an internal user in an external network)
    I tried to narrow down the problem and found the following issues:
    23; reason="Call failed to establish due to a media connectivity failure when one endpoint is internal and the other is remote";CallerMediaDebug="application-sharing:ICEWarn=0x800029,LocalSite=192.168.18.105:5388,LocalMR=xxx.xxx.xxx.xxx:3478(public
    IP Adress from AV.xxx.de) ,RemoteSite=192.168.10.73:5378,RemoteMR=xxx.xxx.xxx.xxx:56119
    (public IP Adress from AV.xxx.de)
    ,PortRange=5350:5389,RemoteMRTCPPort=56119,LocalLocation=1,RemoteLocation=2,FederationType=0"
    So basically a client connects from behind a NAT device to the external IP of the edge av interface and the internal client tries to connect to the same external ip?
    Is that meant to be that way?
    Second issue (or same issue but different perspective) same scenario(but network Sniffer on the firewall):
    request reaches FW:
    50.436292 port2 in Guest IP:35962 -> external AV Edge IP:59676: syn 2844552579
    request routed through FW to the internal DMZ IP:
    50.436857 Lync-extern out Guest IP:35962 -> 172.16.13.204:59676: syn 2844552579
    session gets resetted:
    50.437046 Lync-extern in 172.16.13.204:59676 -> Guest IP:35962: rst 0 ack 2844552580
    This repeats very often till both clients get a notice about "Network issuses.
    On the Edge Server I did an netstat -oa and found Port 59676 to be listening (TCP)
    I read so much in the last days that I am totally confused by now and I think the documentation on tech net is faulty somehow.
    (at least regarding port 50.000 ->59.999)
    Maybe the issue is DNS related (we got split DNS in place)?
    Any thoughts helping me out would be appreciated!
    Thanks Gunni
    Who needs a signature?

    Hello Gunni,
    please can you tell what is the vendor, model and firmware of your firewall? Are there any kind of "deep inspection" features enabled in the configuration of the firewall.
    I am asking, as we have seen similar issues with an RST that seemed to come from the Lync Edge Server, but in fact the connection reset was done by the firewall. In the mentioned case the firewall is a Juniper, model SSG-5.
    Two flow related settings activated in the configuration caused the issue, leading exactly to the ms-client-diagnostic: reason="Call failed to establish due to a media connectivity failure when one endpoint is internal and the other is remote"
    “flow tcp-seq-check” -                  (TCP Sequence Check)
    “flow tcp-syn-check” -                  (TCP SYNCRO Check)
    Please check if your firewall has some similar or identical settings activated!
    A lot of time, we investigated the Edge Server for any issues, - we even replaced it with a new one built from the scratch. Nothing helped, till we start looking closer at the firewall and disabled the settings mentioned above. I remember that we thought
    the RST comes from the Lync Edge on the first look in NetworkMonitor and Wireshark. But when we started watching the Juniper reports, and comparing the time-stamps we realized that the connection was closed first by the firewall, not the Lync Server.
    If your firewall offers a reporting feature (via webinterface, or SNMP, etc.) I recommend you to take a close look to check if the connection is closed here first.
    Thanks and greetings from Berlin,
    Jan
    Jan Boguslawski | Technical Product Manager - snom OCS / UC Edition | MCITP: EA, MCTS OCS, MCTS EXCHANGE | snom technology AG, Berlin | www.snom.com | http://ocsphoneguy.blogspot.com

  • Test in business client, Desktop client disabled

    Hi all,
    I'm starting with NWBC 4.0,
    I try to access some repository objects (se80) and when I try to test in business client the "Desktop Client" option is disabled.
    How can I enable it? I have reviewed the services in SICF, but I'm not sure which has to be activated.
    Thanks in advanced

    Hi Eduardo,
    I have the same problem. However using the test in business client option isn't very helpful as you won't start the dynpro application with a configuration if you need that.
    What i normally do is creating a test role that i assign to my user in PFCG. Then you can just reload the navigation tree to see the newly added entries.

  • How can I run a Unix script from a desktop icon?

    I have a Unix script I've created in vi and would like to run it by double clicking on an icon on my desktop. I would like to do this without the additional application layer of Applescript, Automator or Terminal. Is this possible?
    Thanks in advance.
    Howard

    Sounds like a job for platypus.

  • Running Shell scripts from the desktop

    Hi,
    I'm from the UNIX world rather than the mac one so have written a number of shell scripts. Lets call them foo.sh and bar.bash for the sake of argument.
    These are sitting in a folder on my desktop
    I can happily open a terminal session and run the scripts - and they work as I expect them to.
    If I open a Finder window and double click on the icons for the scripts what happens is that it opens TextEdit.
    Theres two things I'd like to change
    A. I'd like to change the behaviour so that the scripts run when I double clike them rather than opening an editor (possibly in a terminal window )
    B. I'd like to be able to change the editor from TextEdit to one I'm more used to...(I've installed Vim/Gvim which I quite like).
    A. - Haven't managed to get anywhere trying to solve this....
    B. - So far my attempts have got as far as...
    1...
    right-click -> open with -> Other -> select vim.app
    tick Always open as
    click open
    The file then opens in a vim window.
    however if I now close the vim application and double clike the file icon then the file opens in TextEdit again
    2...
    Right Click -> Get Info -> Open with VIM -> add -> Change all
    message appears
    'Are you sure you want to change all your Vimm.app documents to open with the application "vim.app"
    This change will apply to all Vim.app documents with extension ".sh" '
    click continue
    In the Info pane the 'Open with' selection widget immediately changes to say 'Open with: TextEdit.app'
    So I'm a bit stumped, can you help!
    Regards
    Mark
    Mac Mini   Mac OS X (10.4.3)  

    Thanks to both people who answered.
    You both gave me useful workarounds to my problem.
    Renaming the scripts to be 'foo.command' was very hepful and useful to know. I tried this and it does indeed work. I may use this in the future.
    I also had a play around with applescript and the automator to achieve similar results.
    I agree that double clicking to run the file and also edit it is mutually exlcusive - I'm sort of trying to work out how I could make it do 'either/or' as I choose. In the Windows world i'd have the option of setting 'open' to run the script (assuming I'd got cygwin installed and had assiciated it) OR 'Edit with vim' if I wanted to edit the file (assuming vim was installed!).
    Unresolved issue is that I'm still unable to get VIM to be associated with a .sh file.
    The way I would envisage it working in Mac world would be to be able to right click on foo.sh -> Open with... and have a list to select from immediately there like..
    Text Edit
    Vim
    Terminal (default)
    and be able to somehow add and remove apps from the list and change which is the default.
    My issue is that I don't seem to know how to get other apps than TextEdit to appear in the list - I suspect I need a better understanding of how these file/application associations work and are configured.
    Regards
    Mark

  • How do I place a link on my desktop to Reader in Windows 8?

    I need to place a shortcut to Reader on my Guest account. I have tried right click, pin to start, drag and drop, download from store. Not working. I am new to Windows 8 and really need a step by step. Literally step by step on how this can be done. Thanks everyone in advance.

    I assume it is actually installed and works for other people (not guests)?
    At a guess, then, it is designed not to work for guest.
    Still, you can try this. Go down through folders (names are approximate)
    C:
    Program files  or  Program files (X86)
    Adobe
    Adobe Reader 11.0
    Look for the file ACRORD32.EXE
    Right drag to desktop, choose Create Shortcut.
    But if it's designed not to work for guest, you may be out of luck.

Maybe you are looking for

  • Is swing does not work in jdk1.4?

    Sirs, I've tried to compile the following code, import javax.swing.*; public class HelloWorldSwing { * Create the GUI and show it. For thread safety, * this method should be invoked from the * event-dispatching thread. private static void createAndSh

  • Listener does not start in Mutli-node install & concurrent p. manager

    Hello everyone! I have been using Oracle Apps 11.5.10.2 on Linux OS for some time now and it was working fine. Recently I decided to separate it into 2 tiers (DB and AS) and so I started the installation from scratch. I have two questions regarding r

  • JANZ  User Properties in SOA Suite 11G

    Hi All, I am trying to configure users in Oracle SOA Suite 11G to JANZ Realm . I am able to add user. In documentation i see user property file present in this location "SOA_Oracle_Home\bpel\system\services\config\demo-users-properties.xml " , I don'

  • Why Is the top staff of score not shown?

    Hi and sorry, more wierdness in Logic. No matterr how many times I move this project to a new template something gets screwed. And it was just working perfectly, now i have exported the top staff of the score from an old backup and keep a copy in the

  • Flip clock widget for symbian belle FP2

    Hi, I tired install flip clock widget in symbian but I get error message: Can not install! Built-in components. What's the problem?