<?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 on: Azure AD login without credentials (unattended)	</title>
	<atom:link href="https://erjenrijnders.nl/2018/08/30/azuread-login-without-credentials-unattended/feed/" rel="self" type="application/rss+xml" />
	<link>https://erjenrijnders.nl/2018/08/30/azuread-login-without-credentials-unattended/</link>
	<description>Microsoft Azure/EMS blog</description>
	<lastBuildDate>Fri, 01 Sep 2023 19:51:48 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
	<item>
		<title>
		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>
		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>
		By: Guillaume		</title>
		<link>https://erjenrijnders.nl/2018/08/30/azuread-login-without-credentials-unattended/#comment-2167</link>

		<dc:creator><![CDATA[Guillaume]]></dc:creator>
		<pubDate>Fri, 24 Dec 2021 10:24:59 +0000</pubDate>
		<guid isPermaLink="false">http://erjenrijnders.nl/?p=75660#comment-2167</guid>

					<description><![CDATA[Excellent, thanks !]]></description>
			<content:encoded><![CDATA[<p>Excellent, thanks !</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Arie Bombarie		</title>
		<link>https://erjenrijnders.nl/2018/08/30/azuread-login-without-credentials-unattended/#comment-1571</link>

		<dc:creator><![CDATA[Arie Bombarie]]></dc:creator>
		<pubDate>Thu, 10 Jun 2021 08:32:35 +0000</pubDate>
		<guid isPermaLink="false">http://erjenrijnders.nl/?p=75660#comment-1571</guid>

					<description><![CDATA[Hier wordt ik blij van!]]></description>
			<content:encoded><![CDATA[<p>Hier wordt ik blij van!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: kzb		</title>
		<link>https://erjenrijnders.nl/2018/08/30/azuread-login-without-credentials-unattended/#comment-468</link>

		<dc:creator><![CDATA[kzb]]></dc:creator>
		<pubDate>Thu, 06 Aug 2020 05:59:26 +0000</pubDate>
		<guid isPermaLink="false">http://erjenrijnders.nl/?p=75660#comment-468</guid>

					<description><![CDATA[I have the same issue with Peter Juuls
Appriciate if someone can have a solution.]]></description>
			<content:encoded><![CDATA[<p>I have the same issue with Peter Juuls<br />
Appriciate if someone can have a solution.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Peter Juuls		</title>
		<link>https://erjenrijnders.nl/2018/08/30/azuread-login-without-credentials-unattended/#comment-412</link>

		<dc:creator><![CDATA[Peter Juuls]]></dc:creator>
		<pubDate>Fri, 05 Jun 2020 12:08:53 +0000</pubDate>
		<guid isPermaLink="false">http://erjenrijnders.nl/?p=75660#comment-412</guid>

					<description><![CDATA[Hello Erjen,
I have a similar problem running a scheduled PowerShell script on Windows 2008R2 reporting on users and SKUs 
$TenantUname = &quot;serviceaccountname@mytenant.onmicrosoft.com&quot;
$TenantPass = cat &quot;.\ServiceAccountPassword.txt&quot; &#124; ConvertTo-SecureString
$TenantCredentials = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $TenantUname, $TenantPass
Connect-MsolService -Credential $TenantCredentials

The script works when running from logged on user PowerShell session, but fails when running in scheduled job
The error from &#039;Connect-MsolService&#039; is
Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.

Any help would be greatly appreciated
Best regard
Peter]]></description>
			<content:encoded><![CDATA[<p>Hello Erjen,<br />
I have a similar problem running a scheduled PowerShell script on Windows 2008R2 reporting on users and SKUs<br />
$TenantUname = &#8220;serviceaccountname@mytenant.onmicrosoft.com&#8221;<br />
$TenantPass = cat &#8220;.\ServiceAccountPassword.txt&#8221; | ConvertTo-SecureString<br />
$TenantCredentials = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList $TenantUname, $TenantPass<br />
Connect-MsolService -Credential $TenantCredentials</p>
<p>The script works when running from logged on user PowerShell session, but fails when running in scheduled job<br />
The error from &#8216;Connect-MsolService&#8217; is<br />
Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.</p>
<p>Any help would be greatly appreciated<br />
Best regard<br />
Peter</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Erjen		</title>
		<link>https://erjenrijnders.nl/2018/08/30/azuread-login-without-credentials-unattended/#comment-375</link>

		<dc:creator><![CDATA[Erjen]]></dc:creator>
		<pubDate>Thu, 30 Apr 2020 15:09:58 +0000</pubDate>
		<guid isPermaLink="false">http://erjenrijnders.nl/?p=75660#comment-375</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://erjenrijnders.nl/2018/08/30/azuread-login-without-credentials-unattended/#comment-374&quot;&gt;Rauno Mägi&lt;/a&gt;.

You are welcome!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://erjenrijnders.nl/2018/08/30/azuread-login-without-credentials-unattended/#comment-374">Rauno Mägi</a>.</p>
<p>You are welcome!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rauno Mägi		</title>
		<link>https://erjenrijnders.nl/2018/08/30/azuread-login-without-credentials-unattended/#comment-374</link>

		<dc:creator><![CDATA[Rauno Mägi]]></dc:creator>
		<pubDate>Thu, 30 Apr 2020 13:28:53 +0000</pubDate>
		<guid isPermaLink="false">http://erjenrijnders.nl/?p=75660#comment-374</guid>

					<description><![CDATA[Oh nice. Just the thing I was looking for. Thank you, very many :)]]></description>
			<content:encoded><![CDATA[<p>Oh nice. Just the thing I was looking for. Thank you, very many 🙂</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
