<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Unauthorized &#8211; Haikos Blog</title>
	<atom:link href="https://www.hertes.net/tag/unauthorized/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.hertes.net</link>
	<description>Blog von Haiko Hertes zu allen Themen rund um Microsoft, Cloud und Datacenter</description>
	<lastBuildDate>Sun, 30 Oct 2016 16:10:20 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>PowerShell DSC: RegisterDscAgentUnsuccessful Fehler</title>
		<link>https://www.hertes.net/2016/10/powershell-dsc-registerdscagentunsuccessful-fehler/</link>
					<comments>https://www.hertes.net/2016/10/powershell-dsc-registerdscagentunsuccessful-fehler/#respond</comments>
		
		<dc:creator><![CDATA[Haiko]]></dc:creator>
		<pubDate>Sun, 30 Oct 2016 16:10:20 +0000</pubDate>
				<category><![CDATA[Desired State Configuration]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[DSC]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Unauthorized]]></category>
		<guid isPermaLink="false">http://www.hertes.net/?p=3295</guid>

					<description><![CDATA[Nur eine kurze Notiz, da es dazu insbesondere im Deutschen Internet keine brauchbaren Texte gibt: Solltet ihr beim Versuch, einen Host bzw. dessen LCM (Local Configuration Manager) bei einem Pull-Server zu registrieren einen derartigen Fehler bekommen: Als Text: Fehler bei der Registrierung des Dsc-Agents beim Server https://SRV1.lab.hertes.net:8080/PSDSCPullServer.svc. Der zugrunde liegende Fehler ist: Beim Versuch, den DSC-Agent mit AgentId C60FE00B-9EB7-11E6-B56F-00155D003B07 beim Server https://srv1.lab.hertes.net:8080/PSDSCPullServer.svc/ Nodes(AgentId='C60FE00B-9EB7-11E6-B56F-00155D003B07') zu registrieren, wurde der unerwartete Antwortcode Unauthorized zurückgegeben.. + CategoryInfo : InvalidResult: (root/Microsoft/...gurationManager:String) [], CimException + FullyQualifiedErrorId : RegisterDscAgentUnsuccessful,Microsoft.PowerShell.DesiredStateConfiguration.Commands.RegisterDscAgentCommand + PSComputerName : SRV2.lab.hertes.net Die wesentliche Message im Fehlertext ist wohl: “Unauthorized” Die Lösung des Problems ist zwar&#8230;]]></description>
										<content:encoded><![CDATA[<p><font size="2">Nur eine kurze Notiz, da es dazu insbesondere im Deutschen Internet keine brauchbaren Texte gibt:</font></p>
<p><font size="2">Solltet ihr beim Versuch, einen Host bzw. dessen LCM (Local Configuration Manager) bei einem Pull-Server zu registrieren einen derartigen Fehler bekommen:</font></p>
<p><a href="https://www.hertes.net/wp-content/uploads/2016/10/lcm1.png"><font size="2"><img decoding="async" title="lcm1" style="border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; float: none; padding-top: 0px; padding-left: 0px; margin-left: auto; display: block; padding-right: 0px; border-top-width: 0px; margin-right: auto" border="0" alt="lcm1" src="https://www.hertes.net/wp-content/uploads/2016/10/lcm1_thumb.png" width="644" height="58" /></font></a></p>
<p><font size="2">Als Text:</font></p>
<blockquote>
<pre><font size="1">Fehler bei der Registrierung des Dsc-Agents beim Server https://SRV1.lab.hertes.net:8080/PSDSCPullServer.svc. Der zugrunde liegende Fehler ist: 
Beim Versuch, den DSC-Agent mit AgentId C60FE00B-9EB7-11E6-B56F-00155D003B07 beim Server https://srv1.lab.hertes.net:8080/PSDSCPullServer.svc/
Nodes(AgentId='C60FE00B-9EB7-11E6-B56F-00155D003B07') zu registrieren, wurde der unerwartete Antwortcode Unauthorized zurückgegeben..
    + CategoryInfo          : InvalidResult: (root/Microsoft/...gurationManager:String) [], CimException
    + FullyQualifiedErrorId : RegisterDscAgentUnsuccessful,Microsoft.PowerShell.DesiredStateConfiguration.Commands.RegisterDscAgentCommand
    + PSComputerName        : SRV2.lab.hertes.net</font></pre>
</blockquote>
<p><font size="2">Die wesentliche Message im Fehlertext ist wohl:</font></p>
<blockquote><p><font size="2"></font></p></blockquote>
<blockquote>
<p><font size="2">“Unauthorized”</font></p>
</blockquote>
<p><font size="2">Die Lösung des Problems ist zwar denkbar einfach, dafür aber auch aus der Kategorie “Schnell mal vergessen”:</font></p>
<p><font size="2">In der Konfiguration des Pull-Servers wird diesem ein Verzeichnis mitgeteilt, in dem er die zulässigen Registration-Keys finden kann:</font></p>
<p><a href="https://www.hertes.net/wp-content/uploads/2016/10/lcm2.png"><font size="2"><img fetchpriority="high" decoding="async" title="lcm2" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; float: none; padding-top: 0px; padding-left: 0px; margin-left: auto; border-left: 0px; display: block; padding-right: 0px; margin-right: auto" border="0" alt="lcm2" src="https://www.hertes.net/wp-content/uploads/2016/10/lcm2_thumb.png" width="644" height="177" /></font></a></p>
<p><font size="2">Wenn man nun einfach vergessen hat, die vom neuen Host zu verwendende GUID dort abzulegen, dann wird dieser eben als nicht autorisiert abgelehnt…</font></p>
<p><font size="2">Abhilfe schafft hier eine Zeile im Code der Registrierung des neuen Hosts, die man dann idealerweise direkt vom Pull-Server aus auslöst:</font></p>
<p><a href="https://www.hertes.net/wp-content/uploads/2016/10/lcm3.png"><font size="2"><img decoding="async" title="lcm3" style="border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; float: none; padding-top: 0px; padding-left: 0px; margin-left: auto; border-left: 0px; display: block; padding-right: 0px; margin-right: auto" border="0" alt="lcm3" src="https://www.hertes.net/wp-content/uploads/2016/10/lcm3_thumb.png" width="644" height="125" /></font></a></p>
<p><font size="2">Die wesentliche Zeile habe ich rot markiert. Ich schreibe die GUID zusätzlich in ein einzelnes File in einem anderen Pfad, um leichter prüfen zu können, ob ich für den Server bereits eine GUID vergeben hatte…</font></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.hertes.net/2016/10/powershell-dsc-registerdscagentunsuccessful-fehler/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
