GPO to Run at User Login - String too long

Joel Heideman 136 Reputation points
2021-12-26T17:52:52.65+00:00

Any ideas on an alternate method of creating a browser instance at user login with a HTTP URL parameter?

Here are the details of my solution that almost works:

  1. Set a working WMI filter for the requested subnets provided:
    Select * FROM Win32_IP4RouteTable
    WHERE (Mask='255.255.255.255'
    AND (Destination Like '191.168.4.%' OR Destination Like '191.168.5.%' OR Destination Like '191.168.33.%' OR Destination Like '191.168.38.%'))
  2. Created Computer targeted GPO to execute a program at user logon:

Computer Configuration > Policies > Admin Templates >
System > Logon

In the policy item "Run these programs at user logon"
We specified to run a Chrome instance using the parameter "C:\Program Files\Google\Chrome\Application\chrome.exe" https://apps.powerapps.com/play/06b194ae-27c2- <cut off>

However, the item gets cut off due to a character limit – the URL https://apps.powerapps.com/play/06b194ae-27c2-4c28-9634-a82baa6d8023?tenantId=0141856a-3155-40cc-8e14-
Is too long.

This is unfortunate because the command does work if you test a “Start Run ->>> to Edge or Chrome with the below commands.
"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" https://apps.powerapps.com/play/06b194ae-27c2-4c28-9634-a82baa6d8023?tenantId=0141856a-3155-40cc-8e14-
"C:\Program Files\Google\Chrome\Application\chrome.exe" https://apps.powerapps.com/play/06b194ae-27c2-4c28-9634-a82baa6d8023?tenantId=0141856a-3155-40cc-8e14-

Windows for business Windows Client for IT Pros Directory services Active Directory
Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.