Launching script as current logged in user

Hi,

I have a script that i wan to launch with the Application Launcher, but i would like to run it as the current logged in user. The script will read the current logged in users mapped printers and remap them to a new print server. These printer mappings where done manually by the user and not using the DA printer mappings. 

When i run the script now it runs using the SLuser of Desktop authority and of course that account has no printers mapped. If i run the script manually after login it works perfect and remaps the printers associated to the current user logged in. I see no option in DA to allow scripts to run as the current logged in user. Only option is "run as Administrator"

Any help would be appreciated.

thanks Michael. 

Parents
  • To launch a script as the current logged-in user, you can utilize the appropriate command or script invocation method within your operating system. For example, on Unix-based systems, you might run a script directly with the current user's permissions by executing it through a terminal drayage solutions Los Angles:

    bash
    Copy code
    ./your-script.sh

    Alternatively, if you're using Windows, you can run a batch or PowerShell script with the current user's credentials by simply double-clicking the script or invoking it through a command prompt without needing additional user permissions.

Reply
  • To launch a script as the current logged-in user, you can utilize the appropriate command or script invocation method within your operating system. For example, on Unix-based systems, you might run a script directly with the current user's permissions by executing it through a terminal drayage solutions Los Angles:

    bash
    Copy code
    ./your-script.sh

    Alternatively, if you're using Windows, you can run a batch or PowerShell script with the current user's credentials by simply double-clicking the script or invoking it through a command prompt without needing additional user permissions.

Children
No Data