Hi,@SAKHO Mohamed (Externe)
Dear user, thank you for posting in our forum.
Seeing that you have consulted this question on the forum before, we can add multiple URLs through GPO, but the method is the same as yours, and you can only add them one by one.
If you want to add in batches, you can try to use the method of deploying a boot script, but our ADDS forum does not provide a script method, you can go to the script forum to follow the help
Links are scripted:https://social.technet.microsoft.com/Forums/Windows/en-US/home?forum=winserverpowershell
Hope this information can help you
Best wishes
Vicky
How to multiple url to a GPO setting listbox

SAKHO Mohamed (Externe)
1
Reputation point
Hello,
I created a GPO which I have to set more than 1000 urls in order to allow cookies.
I found the policy but I don't know how toadd all my 1000 urls. From the window of the policy (attached file) I can add one url at time.
Does somebody can helpme please. It's may possible by powershell or other things?
Thank you by advance.
3 answers
Sort by: Newest
-
Vicky Wang 2,591 Reputation points
2020-09-29T06:48:14.19+00:00 SAKHO Mohamed (Externe) 1 Reputation point2020-09-25T10:30:08.643+00:00 I already saw this answer, but what I need is for Microsoft Edge, I already launch the LGPO.exe to know which registry to set for this setting, but on the client the key doesn't exist.
Also, note that you may find it easier to use Group Policy Preferences (Registry) to create/populate/manage these registry values, rather than the classic Admin Templates.
e.g., you could populate the registry keys/names/values in a PC (via script or whatever), and then use GPP-Registry to "import" those keys/names/values into a GPP GPO, and use that GPO to deploy the settings in your environment.
Hi @DonPick ,
Thank you for your answer.
I created the key and I I followed the post below, but it doesn't work...
https://techcommunity.microsoft.com/t5/itops-talk-blog/tough-questions-answered-how-to-add-multiple-values-to-a-gpo/ba-p/375750
There is no any content on the listbox... :(
examine the registry key directly, by using regedit, to confirm if your script has executed correctly?
Or, consider using the GPP-Registry instead (use GPP-Registry don't use the AdminTemplate)
The blog you have linked, seems to be the source of the advice presented previously from VickyWang. You can choose either of these methods, but they deliver the same result to the registry.
Hello,
I examined the registry key directly by using regedit but I mean the script has not executed correctly, there is no any urls in the key:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Edge\CookiesAllowedForUrls.
And the listbox in the GPO settings the urls are not added...
However I followed the steps of the blogs and it doesn't work. How can I do by using GPP?
By advance thank you very much.
Mohamed
Sign in to comment