Forum Discussion
shambari
May 03, 2024Copper Contributor
Is there any way to open company portal automatically using powershell or any script
I want a script or a command line to open company portal automatically (i have already company portal installed on my device) so i need to open it using power shell or run a script when i call with with a specific api
Hi shambari! You can try using the commands below depending on what you want:
# Will start the Company portal app
start companyportal:
# Will start the Company portal app and go to a specific application, just switch out the X-X-X-X to an Applicationid in your tenant
start companyportal:Applicationid=<X-X-X-X>
5 Replies
Sort By
- tobiassandbergIron Contributor
Hi shambari! You can try using the commands below depending on what you want:
# Will start the Company portal app
start companyportal:
# Will start the Company portal app and go to a specific application, just switch out the X-X-X-X to an Applicationid in your tenant
start companyportal:Applicationid=<X-X-X-X>- shambariCopper ContributorIt's work thank you so mush tobiassandberg, please is there any way to install this specific application using start companyportal:Applicationid=<X-X-X-X> by adding something to this command line
- tobiassandbergIron Contributor
Thanks shambari! For automatically install, please see the following article: Run an application from the Company Portal without clicking on install | Syst & Deploy (systanddeploy.com)
The command looks like this:start-process companyportal:ApplicationId=YourAppID sleep 10 [void][System.Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms') [System.Windows.Forms.SendKeys]::SendWait("^{i}")