This article will describe how to Install Endpoint Manager Communication Client on a Windows system using a user account with windows standard(limited) privileges.
An application can be installed under a windows standard user if the administrative privileges are provided.
Considering this ability, the process can be automated using a script and the command RUNAS:
The inconvenience with this solution is that if we use this command in a script, we will have to provide the administrative password in clear text. A solution to overcome this trouble is to encrypt the password, meaning we can use PowerShell Get-Credential cmdlet, create an AES encryption key and encrypt the password with this key. Therefore when all this is integrated into a script the administrative password is no longer in used in plain text.
To make the solution even easier to use we can go one step further and use iexpress or winrar or any other application to create from all files an .exe file and uploaded to a cloud location like google drive.
The user can receive an email with the google drive link download the .exe file and install the Endpoint Manager Communication Client on his endpoint under his standard user account.
Requirements:
Recommendations:
At the end of the deployment change the password for the used user account with administrative privileges (local or domain).
Remove the install package from the public link.
Summary of the steps to generate the .exe install package:
Step 1: Create a device group in EM for the deployment
Step 4: Update and test the VBS script
Step 5: Concatenate all the files and generate an .exe file – our example using iexpress
To create this article all the tests were done on Windows 10 and Windows 7.
Step 1: Create a device group in EM portal for the deployment
Open Endpoint Manager > Create a device group for the clone machines > Associate a profile with the device group:
Next, associate the profile you want to use on the clones with your new group:
Step 2: Create an Endpoint Manager Communication Client install msi file that will be used for this project
Create a CC installation package:
Do NOT rename the .msi in any way. Doing so will mean the endpoints won’t get enrolled/added to the correct device group. You may ignore/close the ‘Auto Discovery and Deployment Tool’ pop-up. |
Step 3: Encrypt the password for the Administrator account that you want to use using the PowerShell script
You will have something similar to this:
Start running the EncryptKey.ps1 script
If the PowerShell execution policies are on the default value, you will be asked to change it in order to be able to run a PowerShell script. |
Once the script will run you will be asked to provide credential
AD credential example:
Or if you use Local account; example:
After you provide the credentials a new folder will be created on the same folder level with the name passwords
Inside this folder, you will have two files:
If you look inside of these files you will see that everything is encrypted:
Please copy paste these two files on your working directory:
Step 4: Update and test the VBS script
Why we use a vbs script and not a PowerShell script to trigger the install? By default in Windows Powershell scripts are disabled on the operating systems: To overcome this, the following vbs script will send multiple PowerShell commands, therefore we do not use a script. |
Please edit the InstallFileEncryptKey.vbs file and the first two lines with your information
Now you are ready to make the first test.
You can copy the 4 files to a test endpoint
For this test first please use a windows standard user, to confirm the limited privileges. Please try to install the Endpoint Manager Communication Client using the .msi file.
You will receive the following pop-up:
After you have confirmed that using your current user, you don’t have the right to install an application, please run the InstallFileEncryptKey.vbs file.
A PowerShell window will pop-up and at the end, the Endpoint Manager Communication Client will be installed.
Step 5: Concatenate all the files and generate an .exe install file – our example using iexpress
You need to use the iexpress on a windows 10 machine. If you create the .exe file using the iexpress from a windows 7 machine, the final exe package will not work on Windows 10 systems. |
To start, open iexpress on your machine:
Choose “Create new Self Extraction Directive file” and click Next.
Select “Extract files and run an installation command” and click Next.
Please provide a Package Title and click Next.
Select “No prompt” and click Next.
Select “Do not display a license” and click Next.
Please add the 4 files from your working directory and click next.
On the Install Program section please use this command:
c:\windows\system32\cscript.exe InstallFileEncryptKey.vbs
Select “Hidden” and click Next.
Select “No message“ and click Next.
Browse and select where to save the .exe file.
Check the boxes for “Hide File Extracting Progress Animation from User” and “Store files using Long File Name inside Package”.
Please continue by clicking Next.
Select “No restart” and click Next.
Select “Don’t save” and click Next.
Click Next.
At the end click Finish.
Now please test the .exe file as you have done on Step 4
Once your test is a success, you can share the generated .exe file with your users and they can use it to install Endpoint Manager Communication Client under their windows standard account.
At the end of the deployment change the password for the used user account with administrative privileges (local or domain). Remove the install package from the public link. |
CLOUD BASED IT MANAGEMENT SOFTWARE FOR
MSPs and ENTERPRISE
Remote Monitoring and Management | Service Desk | Patch Management
Now Add Up To 50 Devices for Free