Jump to content
Greg Candido

Executing MSI installer from Network Location

Recommended Posts

I created a script to install an MSI installer.  However is I point to a Mapped Drive such as Z:\Working Directory\Installer.MSI it does not execute.

If I execute the script from the C:\Temp\Installer.MSI it installs successfully.  I've even tried using a UNC Path \\SERVERNAMER\Working Directory\Installer.MSI and it does not execute.

Why is this?  Does Pulseway not have permission to see the network share?  Is there an area when creating the task that I need to enter network credentials.  I don't see this.


Please advise what I am doing wrong or overlooking

 

Greg

Share this post


Link to post
Share on other sites

Your UNC path may contain a space. Did you put quotes ( " ) around the UNC path? If not, try it like this

"\\SERVERNAMER\Working Directory\Installer.MSI"

Edited by Forcys

Share this post


Link to post
Share on other sites

Hi @Greg Candido,

Pulseway is running on your system using Systems account, therefore if computer accounts doesn't have access to that shared storage, then Pulseway will not be able to access it.

Share this post


Link to post
Share on other sites

@Greg Candido

It's possible to run Pulseway with User Impersonation, and by doing so you should be able to access network resources because it's essentially running as a user instead of system.

 

I did the following in our setup: 

  • Create an account for the Pulseway service in active directory.
  • Give the new account share permissions and file permissions on the directory where the MSI-file resides.
  • Open Pulseway Manager on one of the clients.
  • Open Settings -> Runtime and check the "Enable Powershell User Impersonation".
  • Enter the credentials created in the first step above, including the domain.
  • Apply the settings and exit the Pulseway Manager.
  • Open registry editor on the same client and navigate to HKEY_LOCAL_MACHINE\SOFTWARE\MMSOFT Design\PC Monitor
  • Copy the data of each of the following keys for later use:
    • PowerShellUserImpersonation
    • PowerShellUserImpersonationDomain
    • PowerShellUserImpersonationPassword
    • PowerShellUserImpersonationPasswordCtrl
    • PowerShellUserImpersonationUsername
  • Open the group policy manager on a domain controller and create a new group policy object.
  • Expand Computer Configuration -> Preferences -> Windows Settings > Registry and create the following keys:
    • PowerShellUserImpersonation
      • Action: Update
      • Hive: HKEY_LOCAL_MACHINE
      • Key path: SOFTWARE\MMSOFT Design\PC Monitor
      • Value name: PowerShellUserImpersonation
      • Value type: REG_SZ
      • Value data: 1
    • PowerShellUserImpersonationDomain
      • Action: Update
      • Hive: HKEY_LOCAL_MACHINE
      • Key path: SOFTWARE\MMSOFT Design\PC Monitor
      • Value name: PowerShellUserImpersonationDomain
      • Value type: REG_SZ
      • Value data: %the domain name copied from previous steps%
    • PowerShellUserImpersonationPassword
      • Action: Update
      • Hive: HKEY_LOCAL_MACHINE
      • Key path: SOFTWARE\MMSOFT Design\PC Monitor
      • Value name: PowerShellUserImpersonationPassword
      • Value type: REG_SZ
      • Value data: %the password data copied from previous steps%
    • PowerShellUserImpersonationPasswordCtrl
      • Action: Update
      • Hive: HKEY_LOCAL_MACHINE
      • Key path: SOFTWARE\MMSOFT Design\PC Monitor
      • Value name: PowerShellUserImpersonationPasswordCtrl
      • Value type: REG_SZ
      • Value data: %the password ctrl data copied from previous steps%
    • PowerShellUserImpersonationUsername
      • Action: Update
      • Hive: HKEY_LOCAL_MACHINE
      • Key path: SOFTWARE\MMSOFT Design\PC Monitor
      • Value name: PowerShellUserImpersonationUsername
      • Value type: REG_SZ
      • Value data: %the username data copied from previous steps%
  • Link the newly created GPO to an OU with one or more test-clients and verify that the user impersonation is working, and then enable it on all the clients in the domain where you want to enable the functionality.
Edited by AC_Martin_J

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...