<?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>Dienste &#8211; Haikos Blog</title>
	<atom:link href="https://www.hertes.net/tag/dienste/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, 05 Mar 2017 12:51:58 +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>Hyper-V Server 2012 R2 / 2016 bzw. Server Core: SNMP-Dienst konfigurieren</title>
		<link>https://www.hertes.net/2017/03/hyper-v-server-2012-r2-2016-bzw-server-core-snmp-dienst-konfigurieren/</link>
					<comments>https://www.hertes.net/2017/03/hyper-v-server-2012-r2-2016-bzw-server-core-snmp-dienst-konfigurieren/#respond</comments>
		
		<dc:creator><![CDATA[Haiko]]></dc:creator>
		<pubDate>Sun, 05 Mar 2017 12:51:58 +0000</pubDate>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Windows Server]]></category>
		<category><![CDATA[Windows Server 2012 R2]]></category>
		<category><![CDATA[Windows Server 2016]]></category>
		<category><![CDATA[Dienste]]></category>
		<category><![CDATA[Hyper-V Server]]></category>
		<category><![CDATA[Service]]></category>
		<category><![CDATA[SNMP]]></category>
		<guid isPermaLink="false">https://www.hertes.net/?p=3406</guid>

					<description><![CDATA[Wenn man auf einem Hyper-V Server (gemeint ist der kostenlose Server, der ohne GUI, also vergleichbar einer Server Core Installation, und nur mit Hyper-V as Rolle betrieben werden kann) den SNMP-Dienst installiert hat, muss diese noch konfiguriert werden. Die Installation selber kann remote über den Servermanager oder lokal über PowerShell erfolgen: Add-WindowsFeature -Name SNMP-Service,SNMP-WMI-Provider Nach der Installation würde man auf einem grafischen Server jetzt einfach die Dienste-Konsole oder die Computerverwaltung öffnen und den Dienst dort entsprechend konfigurieren. Die grafischen Werkzeuge stehen aber lokal nicht zur Verfügung. Verwendet man jetzt bspw. die Computerverwaltung von einem grafischen Server aus und verbindet sich&#8230;]]></description>
										<content:encoded><![CDATA[<p>Wenn man auf einem Hyper-V Server (gemeint ist der kostenlose Server, der ohne GUI, also vergleichbar einer Server Core Installation, und nur mit Hyper-V as Rolle betrieben werden kann) den SNMP-Dienst installiert hat, muss diese noch konfiguriert werden.</p>
<p>Die Installation selber kann remote über den Servermanager oder lokal über PowerShell erfolgen:</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2017/03/snmp0.png"><img fetchpriority="high" decoding="async" title="snmp0" 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="snmp0" src="https://www.hertes.net/wp-content/uploads/2017/03/snmp0_thumb.png" width="644" height="338" /></a></p>
<blockquote>
<p align="justify"> Add-WindowsFeature -Name SNMP-Service,SNMP-WMI-Provider</p>
</blockquote>
<p align="justify"><a href="https://www.hertes.net/wp-content/uploads/2017/03/snmp0b.png"><img decoding="async" title="snmp0b" 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="snmp0b" src="https://www.hertes.net/wp-content/uploads/2017/03/snmp0b_thumb.png" width="644" height="84" /></a></p>
<p>Nach der Installation würde man auf einem grafischen Server jetzt einfach die Dienste-Konsole oder die Computerverwaltung öffnen und den Dienst dort entsprechend konfigurieren. Die grafischen Werkzeuge stehen aber lokal nicht zur Verfügung. Verwendet man jetzt bspw. die Computerverwaltung von einem grafischen Server aus und verbindet sich von dort mit dem Hyper-V Server bzw. dem als Server Core installierten Server, wird man leider feststellen, dass dort einige Optionen im SNMP-Dienst fehlen:</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2017/03/snmp1.png"><img decoding="async" title="snmp1" 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="snmp1" src="https://www.hertes.net/wp-content/uploads/2017/03/snmp1_thumb.png" width="428" height="484" /></a></p>
<p>Abhilfe schafft hier <strong>die Installation des SNMP-Features auch auf der Maschine, von der aus man mit dem grafischen Werkzeug arbeiten möchte</strong>. Danach kann man auch remote die passenden Einstellungen vornehmen:</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2017/03/snmp2.png"><img loading="lazy" decoding="async" title="snmp2" 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="snmp2" src="https://www.hertes.net/wp-content/uploads/2017/03/snmp2_thumb.png" width="417" height="484" /></a></p>
<p>Viel Spaß beim Ausprobieren!</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.hertes.net/2017/03/hyper-v-server-2012-r2-2016-bzw-server-core-snmp-dienst-konfigurieren/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>PowerShell: Anmelde-Konto der Windows-Dienste &#252;berpr&#252;fen</title>
		<link>https://www.hertes.net/2014/08/powershell-anmelde-konto-der-windows-dienste-berprfen/</link>
					<comments>https://www.hertes.net/2014/08/powershell-anmelde-konto-der-windows-dienste-berprfen/#respond</comments>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 05 Aug 2014 20:31:00 +0000</pubDate>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>
		<category><![CDATA[Windows Server 2012]]></category>
		<category><![CDATA[Windows Server 2012 R2]]></category>
		<category><![CDATA[Dienste]]></category>
		<category><![CDATA[Windows Server]]></category>
		<guid isPermaLink="false">http://www.hertes.net/?p=2422</guid>

					<description><![CDATA[Wenn auf einem Windows Server Dienste nicht mit dem richtigen Konto gestartet werden, können diverse Fehler auftreten, z.B. der Fehler 1079: Der Fehler entsteht, wenn mehrere Konten unter dem selben Prozess (z.B. svchost) laufen, dabei aber verschiedene Konten nutzen sollen. Nun muss man also herausfinden, welche Dienste betroffen sind. Dies geht sicherlich auch über die services.msc (also in der GUI) – ist dann aber mit viel Arbeit verbunden. Einfacher wäre es sicherlich, dies über PowerShell herauszufinden. Leider kennt das Cmdlet “Get-Service” keine Möglichkeit, die Logon-Werte auszugeben: Selbst der Aufruf “Get-Service &#124; fl *” zeigt kein passendes Attribut: Was bleibt nun&#8230;]]></description>
										<content:encoded><![CDATA[<p>Wenn auf einem Windows Server Dienste nicht mit dem richtigen Konto gestartet werden, können diverse Fehler auftreten, z.B. der Fehler 1079:</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2014/08/pwservices1.png"><img loading="lazy" decoding="async" style="background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border: 0px;" title="pwservices1" src="https://www.hertes.net/wp-content/uploads/2014/08/pwservices1_thumb.png" alt="pwservices1" width="500" height="234" border="0" /></a></p>
<p>Der Fehler entsteht, wenn mehrere Konten unter dem selben Prozess (z.B. svchost) laufen, dabei aber verschiedene Konten nutzen sollen.</p>
<p>Nun muss man also herausfinden, welche Dienste betroffen sind. Dies geht sicherlich auch über die services.msc (also in der GUI) – ist dann aber mit viel Arbeit verbunden. Einfacher wäre es sicherlich, dies über PowerShell herauszufinden.</p>
<p>Leider kennt das Cmdlet “Get-Service” keine Möglichkeit, die Logon-Werte auszugeben:</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2014/08/pwservices2.png"><img loading="lazy" decoding="async" style="background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border: 0px;" title="pwservices2" src="https://www.hertes.net/wp-content/uploads/2014/08/pwservices2_thumb.png" alt="pwservices2" width="644" height="185" border="0" /></a></p>
<p>Selbst der Aufruf “Get-Service | fl *” zeigt kein passendes Attribut:</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2014/08/pwservices3.png"><img loading="lazy" decoding="async" style="background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border: 0px;" title="pwservices3" src="https://www.hertes.net/wp-content/uploads/2014/08/pwservices3_thumb.png" alt="pwservices3" width="644" height="432" border="0" /></a></p>
<p>Was bleibt nun also? Eine Abfrage mittels WMI!</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2014/08/pwservices4.png"><img loading="lazy" decoding="async" style="background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border: 0px;" title="pwservices4" src="https://www.hertes.net/wp-content/uploads/2014/08/pwservices4_thumb.png" alt="pwservices4" width="536" height="484" border="0" /></a></p>
<p>Und tatsächlich – hier gibt es nun ein Attribut “StartName”, welches das verwendete Konto enthält. Nun kann man also eine einfache Liste aller Dienste mit ihren Konten abrufen:</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2014/08/pwservices5.png"><img loading="lazy" decoding="async" style="background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border: 0px;" title="pwservices5" src="https://www.hertes.net/wp-content/uploads/2014/08/pwservices5_thumb.png" alt="pwservices5" width="644" height="217" border="0" /></a></p>
<p>Will man statt den “internen” (teil kryptischen) Dienstnamen die sprechenden Namen sehen, und auch nach diesen sortieren, dann kann man folgenden Aufruf verwenden:</p>
<p>Get-WmiObject win32_service | Sort-Object Caption | ft Caption,StartName</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2014/08/pwservices45.png"><img loading="lazy" decoding="async" style="background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border: 0px;" title="pwservices45" src="https://www.hertes.net/wp-content/uploads/2014/08/pwservices45_thumb.png" alt="pwservices45" width="644" height="217" border="0" /></a></p>
<p>Über Where-Object kann man nun auch gezielt nach Diensten mit einem bestimmten Konto suchen:</p>
<p><a href="https://www.hertes.net/wp-content/uploads/2014/08/pwservices7.png"><img loading="lazy" decoding="async" style="background-image: none; float: none; padding-top: 0px; padding-left: 0px; margin: 0px auto; display: block; padding-right: 0px; border: 0px;" title="pwservices7" src="https://www.hertes.net/wp-content/uploads/2014/08/pwservices7_thumb.png" alt="pwservices7" width="644" height="187" border="0" /></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.hertes.net/2014/08/powershell-anmelde-konto-der-windows-dienste-berprfen/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
