GPO to Run at User Login - String too long

JH 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 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,617 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,746 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,854 questions
0 comments No comments
{count} votes