<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments for Erjen Rijnders	</title>
	<atom:link href="https://erjenrijnders.nl/comments/feed/" rel="self" type="application/rss+xml" />
	<link>https://erjenrijnders.nl/</link>
	<description>Microsoft Azure/EMS blog</description>
	<lastBuildDate>Sun, 01 Oct 2023 10:55:22 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
	<item>
		<title>
		Comment on Set desktop background with Intune, but allow modification by stefan		</title>
		<link>https://erjenrijnders.nl/2021/02/04/set-desktop-background-with-intune-but-allow-modification/#comment-4716</link>

		<dc:creator><![CDATA[stefan]]></dc:creator>
		<pubDate>Sun, 01 Oct 2023 10:55:22 +0000</pubDate>
		<guid isPermaLink="false">https://erjenrijnders.nl/?p=76047#comment-4716</guid>

					<description><![CDATA[Hi,
Thanks! This works almost 100%. The only issue is that the wallpaper sets to Black-collor after the user change the wallpaper AND restarts the computer. I want to ceep the users cahnges. Whats should i do and why dose it not ceep theusers changes?

Best Regards]]></description>
			<content:encoded><![CDATA[<p>Hi,<br />
Thanks! This works almost 100%. The only issue is that the wallpaper sets to Black-collor after the user change the wallpaper AND restarts the computer. I want to ceep the users cahnges. Whats should i do and why dose it not ceep theusers changes?</p>
<p>Best Regards</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Azure AD login without credentials (unattended) by Scott Gene Carr		</title>
		<link>https://erjenrijnders.nl/2018/08/30/azuread-login-without-credentials-unattended/#comment-4656</link>

		<dc:creator><![CDATA[Scott Gene Carr]]></dc:creator>
		<pubDate>Fri, 01 Sep 2023 19:51:48 +0000</pubDate>
		<guid isPermaLink="false">http://erjenrijnders.nl/?p=75660#comment-4656</guid>

					<description><![CDATA[Had to change:

$application = New-AzureADApplication -DisplayName &quot;unattendedlogin-azuread&quot; -IdentifierUris &quot;https://unattendedlogin&quot;

to include a domain that is validated in the tenant you are running this against. 

Also had issues with the Thumbprint loading into AzureAD, so added:

Export-Certificate -cert &quot;cert:\CurrentUser\my\$thumb&quot; -FilePath C:\tmp\unattendedlogin-azuread.cer

then manually uploaded certificate to app registration in AzureAD. This gave me the needed certificate thumbnail. 

Am now using this to run scripts against AzureAD and Intune, but only from my machine. Much appreciated.]]></description>
			<content:encoded><![CDATA[<p>Had to change:</p>
<p>$application = New-AzureADApplication -DisplayName &#8220;unattendedlogin-azuread&#8221; -IdentifierUris &#8220;https://unattendedlogin&#8221;</p>
<p>to include a domain that is validated in the tenant you are running this against. </p>
<p>Also had issues with the Thumbprint loading into AzureAD, so added:</p>
<p>Export-Certificate -cert &#8220;cert:\CurrentUser\my\$thumb&#8221; -FilePath C:\tmp\unattendedlogin-azuread.cer</p>
<p>then manually uploaded certificate to app registration in AzureAD. This gave me the needed certificate thumbnail. </p>
<p>Am now using this to run scripts against AzureAD and Intune, but only from my machine. Much appreciated.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Set desktop background with Intune, but allow modification by Brendan		</title>
		<link>https://erjenrijnders.nl/2021/02/04/set-desktop-background-with-intune-but-allow-modification/#comment-3255</link>

		<dc:creator><![CDATA[Brendan]]></dc:creator>
		<pubDate>Thu, 28 Jul 2022 20:31:35 +0000</pubDate>
		<guid isPermaLink="false">https://erjenrijnders.nl/?p=76047#comment-3255</guid>

					<description><![CDATA[Thanks for posting this, but something doesn&#039;t seem to be working - test devices still can&#039;t update the wallpaper.]]></description>
			<content:encoded><![CDATA[<p>Thanks for posting this, but something doesn&#8217;t seem to be working &#8211; test devices still can&#8217;t update the wallpaper.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Set desktop background with Intune, but allow modification by Erjen		</title>
		<link>https://erjenrijnders.nl/2021/02/04/set-desktop-background-with-intune-but-allow-modification/#comment-2908</link>

		<dc:creator><![CDATA[Erjen]]></dc:creator>
		<pubDate>Wed, 22 Jun 2022 09:26:19 +0000</pubDate>
		<guid isPermaLink="false">https://erjenrijnders.nl/?p=76047#comment-2908</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://erjenrijnders.nl/2021/02/04/set-desktop-background-with-intune-but-allow-modification/#comment-2870&quot;&gt;chris&lt;/a&gt;.

Hi Chris, do you get a result when you execute this command?
$path = &quot;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\PersonalizationCSP&quot;
Get-ItemProperty $path -Name &quot;DesktopImagePath&quot; 

And what happens if you execute this command?
$path = &quot;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\PersonalizationCSP&quot;
Remove-ItemProperty -Path $path -Name &quot;DesktopImagePath&quot; -Force]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://erjenrijnders.nl/2021/02/04/set-desktop-background-with-intune-but-allow-modification/#comment-2870">chris</a>.</p>
<p>Hi Chris, do you get a result when you execute this command?<br />
$path = &#8220;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\PersonalizationCSP&#8221;<br />
Get-ItemProperty $path -Name &#8220;DesktopImagePath&#8221; </p>
<p>And what happens if you execute this command?<br />
$path = &#8220;HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\PersonalizationCSP&#8221;<br />
Remove-ItemProperty -Path $path -Name &#8220;DesktopImagePath&#8221; -Force</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Set desktop background with Intune, but allow modification by chris		</title>
		<link>https://erjenrijnders.nl/2021/02/04/set-desktop-background-with-intune-but-allow-modification/#comment-2870</link>

		<dc:creator><![CDATA[chris]]></dc:creator>
		<pubDate>Thu, 16 Jun 2022 17:38:48 +0000</pubDate>
		<guid isPermaLink="false">https://erjenrijnders.nl/?p=76047#comment-2870</guid>

					<description><![CDATA[Hey great idea, but none of the scripts above work for me, the reg key still persists.]]></description>
			<content:encoded><![CDATA[<p>Hey great idea, but none of the scripts above work for me, the reg key still persists.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Set desktop background with Intune, but allow modification by Erjen		</title>
		<link>https://erjenrijnders.nl/2021/02/04/set-desktop-background-with-intune-but-allow-modification/#comment-2518</link>

		<dc:creator><![CDATA[Erjen]]></dc:creator>
		<pubDate>Wed, 13 Apr 2022 06:13:56 +0000</pubDate>
		<guid isPermaLink="false">https://erjenrijnders.nl/?p=76047#comment-2518</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://erjenrijnders.nl/2021/02/04/set-desktop-background-with-intune-but-allow-modification/#comment-2517&quot;&gt;Mr T&lt;/a&gt;.

Hi Mr T,

You&#039;re welcome.
That folder is just for saving the .ps1 file to logical folder which can be reached by the system user (as you don&#039;t run the script in user context).

The closing bracket is supposed to be there. Bracket on line 6 is closing the if-statement, bracket on line 7 is closing the script. You should run this script as a whole or try to run lines 1-11.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://erjenrijnders.nl/2021/02/04/set-desktop-background-with-intune-but-allow-modification/#comment-2517">Mr T</a>.</p>
<p>Hi Mr T,</p>
<p>You&#8217;re welcome.<br />
That folder is just for saving the .ps1 file to logical folder which can be reached by the system user (as you don&#8217;t run the script in user context).</p>
<p>The closing bracket is supposed to be there. Bracket on line 6 is closing the if-statement, bracket on line 7 is closing the script. You should run this script as a whole or try to run lines 1-11.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Set desktop background with Intune, but allow modification by Mr T		</title>
		<link>https://erjenrijnders.nl/2021/02/04/set-desktop-background-with-intune-but-allow-modification/#comment-2517</link>

		<dc:creator><![CDATA[Mr T]]></dc:creator>
		<pubDate>Wed, 13 Apr 2022 05:39:25 +0000</pubDate>
		<guid isPermaLink="false">https://erjenrijnders.nl/?p=76047#comment-2517</guid>

					<description><![CDATA[Thanks for the article Erjen...one question why do you create this folder with the script:

env:ProgramData\Microsoft\AllowBackgroundPersonalization


Also for the above post this is the error, at line 6 there is an extra bracket above the second &#039;if&#039; statement. - I removed it and it seem to work (PowerShell ISE) :

At line:6 char:1
+ }
+ ~
Unexpected token &#039;}&#039; in expression or statement.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnexpectedToken]]></description>
			<content:encoded><![CDATA[<p>Thanks for the article Erjen&#8230;one question why do you create this folder with the script:</p>
<p>env:ProgramData\Microsoft\AllowBackgroundPersonalization</p>
<p>Also for the above post this is the error, at line 6 there is an extra bracket above the second &#8216;if&#8217; statement. &#8211; I removed it and it seem to work (PowerShell ISE) :</p>
<p>At line:6 char:1<br />
+ }<br />
+ ~<br />
Unexpected token &#8216;}&#8217; in expression or statement.<br />
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException<br />
    + FullyQualifiedErrorId : UnexpectedToken</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Azure AD login without credentials (unattended) by Https azure active directory login script Portal Guide Instructions Help - centtip.com		</title>
		<link>https://erjenrijnders.nl/2018/08/30/azuread-login-without-credentials-unattended/#comment-2236</link>

		<dc:creator><![CDATA[Https azure active directory login script Portal Guide Instructions Help - centtip.com]]></dc:creator>
		<pubDate>Thu, 17 Feb 2022 18:29:58 +0000</pubDate>
		<guid isPermaLink="false">http://erjenrijnders.nl/?p=75660#comment-2236</guid>

					<description><![CDATA[[&#8230;] Azure AD login without credentials (unattended) &#8211; Erjen &#8230; [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] Azure AD login without credentials (unattended) &#8211; Erjen &#8230; [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Set desktop background with Intune, but allow modification by Erjen		</title>
		<link>https://erjenrijnders.nl/2021/02/04/set-desktop-background-with-intune-but-allow-modification/#comment-2222</link>

		<dc:creator><![CDATA[Erjen]]></dc:creator>
		<pubDate>Tue, 08 Feb 2022 07:59:26 +0000</pubDate>
		<guid isPermaLink="false">https://erjenrijnders.nl/?p=76047#comment-2222</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://erjenrijnders.nl/2021/02/04/set-desktop-background-with-intune-but-allow-modification/#comment-2221&quot;&gt;Robin&lt;/a&gt;.

Hi Robin,

I checked the brackets but there seems no problem. On which Powershell version do you test the script? And does it give you the line number with the problem?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://erjenrijnders.nl/2021/02/04/set-desktop-background-with-intune-but-allow-modification/#comment-2221">Robin</a>.</p>
<p>Hi Robin,</p>
<p>I checked the brackets but there seems no problem. On which Powershell version do you test the script? And does it give you the line number with the problem?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		Comment on Set desktop background with Intune, but allow modification by Robin		</title>
		<link>https://erjenrijnders.nl/2021/02/04/set-desktop-background-with-intune-but-allow-modification/#comment-2221</link>

		<dc:creator><![CDATA[Robin]]></dc:creator>
		<pubDate>Mon, 07 Feb 2022 21:22:13 +0000</pubDate>
		<guid isPermaLink="false">https://erjenrijnders.nl/?p=76047#comment-2221</guid>

					<description><![CDATA[Hi

I&#039;m trying to run the PowerShell script but I get the error:

error&#062; + }
error&#062; + ~
error&#062; Unexpected token &#039;}&#039; in expression or statement.
error&#062;     + CategoryInfo          : ParserError: (:) [], ParseException
error&#062;     + FullyQualifiedErrorId : UnexpectedToken
error&#062;  

Is there a syntax error here?]]></description>
			<content:encoded><![CDATA[<p>Hi</p>
<p>I&#8217;m trying to run the PowerShell script but I get the error:</p>
<p>error&gt; + }<br />
error&gt; + ~<br />
error&gt; Unexpected token &#8216;}&#8217; in expression or statement.<br />
error&gt;     + CategoryInfo          : ParserError: (:) [], ParseException<br />
error&gt;     + FullyQualifiedErrorId : UnexpectedToken<br />
error&gt;  </p>
<p>Is there a syntax error here?</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
