<?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>Markus Bäker &#187; System Center</title>
	<atom:link href="http://www.mbaeker.de/category/system-center/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mbaeker.de</link>
	<description>Use %~dp0 !!!</description>
	<lastBuildDate>Tue, 31 Jan 2012 10:49:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>SCCM 2012: SQL Server Collation &#228;ndern</title>
		<link>http://www.mbaeker.de/2012/01/sccm-2012-sql-server-collation-ndern/</link>
		<comments>http://www.mbaeker.de/2012/01/sccm-2012-sql-server-collation-ndern/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 16:33:35 +0000</pubDate>
		<dc:creator>markus</dc:creator>
				<category><![CDATA[Configuration Manager]]></category>
		<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[System Center]]></category>
		<category><![CDATA[SCCM]]></category>
		<category><![CDATA[scom]]></category>

		<guid isPermaLink="false">http://www.mbaeker.de/?p=835</guid>
		<description><![CDATA[SCCM 2012 (RC2) benötigt wie schon SCOM eine spezielle Sortierreihenfolge in der Datenbank. Der Prerequest Check während der Einrichtung weißt einem auch darauf hin. Trotz x-facher Installation von SCOM und SCCM falle ich immer wieder drauf herein. In dem unwahrscheinlichen Fall, dass dies bei einer produktiven Installation passiert, würde ich den sauber Weg empfehlen und [...]]]></description>
			<content:encoded><![CDATA[<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; float: left; padding-top: 0px; border: 0px;" title="core4" src="http://www.mbaeker.de/wp-content/uploads/2012/01/core4.png" alt="core4" width="76" height="76" align="left" border="0" />SCCM 2012 (RC2) benötigt wie schon SCOM eine spezielle Sortierreihenfolge in der Datenbank. Der Prerequest Check während der Einrichtung weißt einem auch darauf hin. Trotz x-facher Installation von SCOM und SCCM falle ich immer wieder drauf herein.</p>
<p>In dem unwahrscheinlichen Fall, dass dies bei einer produktiven Installation passiert, würde ich den sauber Weg empfehlen und den SQL Server wieder deinstallieren und mit der richtigen Collation (=Sortierreihenfolge) neuinstallieren. Die Richtige ist übrigens SQL_Latin1_General_CP1_CI_AS:</p>
<p><span id="more-835"></span></p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2012/01/image8.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://www.mbaeker.de/wp-content/uploads/2012/01/image_thumb8.png" alt="image" width="589" height="443" border="0" /></a></p>
<p>Sind noch keine Benutzerdatenbanken auf dem SQL Server installiert, dann kann man auch die Collation direkt mit dem SQL Setup ändern lassen:</p>
<p>Dazu startet man das SQL Setup (z.B. von der DVD) mit folgendem Aufruf (in einer Zeile!):</p>
<pre class="brush: plain; title: ; notranslate">setup.exe /quiet /action=rebuilddatabase /sqlcollation=SQL_Latin1_General_CP1_CI_AS
     /instancename=MSSQLSERVER /SQLSYSADMINACCOUNTS=BUILTIN\Administrators</pre>
<p>Dies ist die minimale Anzahl an Parametern, die man übergeben muss. In diesem Beispiel soll die Stanardinstanz (interner Name MSSQLSERVER) aktualisiert werden. Berechtigung erhält die lokale Administratorgruppe des Servers. Bei einem deutschen Server heißt diese natürlich Administratoren.</p>
<p>Da das Setup silent ausgeführt wird, sieht man auch keine Fehlermeldungen. Wie bei einem SQL Setup üblich, landen die Installationslogs unter c:\programme\Microsoft SQL Server\100\Setup Bootstrap\Log\&lt;datum+uhrzeit&gt;\Detail.log</p>
<p>Hier nochmal die Kommadozeile als Screenshoot:</p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2012/01/image9.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://www.mbaeker.de/wp-content/uploads/2012/01/image_thumb9.png" alt="image" width="582" height="250" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.mbaeker.de/2012/01/sccm-2012-sql-server-collation-ndern/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hyper-V: Extra Rechte auf Hyper-V f&#252;r Nicht-Adminuser einrichten</title>
		<link>http://www.mbaeker.de/2012/01/hyper-v-extra-rechte-auf-hyper-v-fr-nicht-adminuser-einrichten/</link>
		<comments>http://www.mbaeker.de/2012/01/hyper-v-extra-rechte-auf-hyper-v-fr-nicht-adminuser-einrichten/#comments</comments>
		<pubDate>Sun, 22 Jan 2012 12:50:37 +0000</pubDate>
		<dc:creator>markus</dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Virtual Machine Manager]]></category>

		<guid isPermaLink="false">http://www.mbaeker.de/?p=824</guid>
		<description><![CDATA[Grundsätzlich darf auf einen Hyper-V Server nur ein Administrator zugreifen (Mitglied der lokalen Administratorengruppe). Setzt man den System Center Virtual Machine Manager (SCVMM) ein, so ermöglicht dieser einem u.a. ein rollenbasiertes Management. Dabei erfindet er das Rad nicht neu, sondern setzt ein Feature des Hyper-Vs ein, dass in meinen Augen zwar gut dokumentiert aber relativ [...]]]></description>
			<content:encoded><![CDATA[<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; float: left; padding-top: 0px; border: 0px;" title="user-admin" src="http://www.mbaeker.de/wp-content/uploads/2012/01/user-admin.png" alt="user-admin" width="64" height="64" align="left" border="0" />Grundsätzlich darf auf einen Hyper-V Server nur ein Administrator zugreifen (Mitglied der lokalen Administratorengruppe). Setzt man den System Center Virtual Machine Manager (SCVMM) ein, so ermöglicht dieser einem u.a. ein rollenbasiertes Management. Dabei erfindet er das Rad nicht neu, sondern setzt ein Feature des Hyper-Vs ein, dass in meinen Augen zwar gut dokumentiert aber relativ unbekannt ist.</p>
<p>Dazu verwendet Hyper-V das rollenbasierte Accessmanagement (RBAC) und die dafür verfügbare GUI AzMan. Die Konfigurationsinformationen werden in einer XML Datei unter ProgramData\Microsoft\Windows\Hyper-V\InitialStorage.xml abgelegt. <strong>Achtung: Verwendet man den VMM Agent, so wird der Ort der XML Datei auf ProgramData\microsoft\Virtual Machine Manager\HyperVAuthStore.xml geändert!</strong></p>
<p>Ich beschreibe hier die Vorgehensweise, wie man einer zusätzlichen benutzergruppe das Recht einräumen kann auf die Konsole der Virtuellen Maschinen zugreifen zu können:</p>
<p>Zuerst startet man die AzMan Konsole:</p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2012/01/image.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://www.mbaeker.de/wp-content/uploads/2012/01/image_thumb.png" alt="image" width="315" height="158" border="0" /></a></p>
<p><span id="more-824"></span></p>
<p>Über Stamm der Konsole wählt man den Autorisierungsspeicher (XML-Format) aus:</p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2012/01/image1.png"><img style="background-image: none; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://www.mbaeker.de/wp-content/uploads/2012/01/image_thumb1.png" alt="image" width="244" height="127" border="0" /></a></p>
<p>Wie oben beschrieben liegt die XML Datei auf dem Hyper-V Host unter c:\ProgramData\…</p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2012/01/image2.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://www.mbaeker.de/wp-content/uploads/2012/01/image_thumb2.png" alt="image" width="378" height="143" border="0" /></a></p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2012/01/image3.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://www.mbaeker.de/wp-content/uploads/2012/01/image_thumb3.png" alt="image" width="297" height="171" border="0" /></a></p>
<p>Jetzt kann man eine neue Rollendefinition unter Definitionen\Rollendefinitionen ablegen. In diesem Bespiel nenne ich die Rolle “Connect with VMV”:</p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2012/01/image4.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://www.mbaeker.de/wp-content/uploads/2012/01/image_thumb4.png" alt="image" width="381" height="133" border="0" /></a></p>
<p>In der neuen Definition werden unter Vorgänge die zu vergebenden Rechte festgelegt:</p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2012/01/image5.png"><img style="background-image: none; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://www.mbaeker.de/wp-content/uploads/2012/01/image_thumb5.png" alt="image" width="244" height="190" border="0" /></a></p>
<p>“Allow Input to Virtual Machine” und “Allow Output from Virtual Machine” ermöglicht den Zugriff auf die Console (Output) und die Steuerung von Tastatur und Maus (Input). Eine View-Only Rolle hätte somit nur ein Output Recht. Die Rolle sieht jetzt so aus:</p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2012/01/image6.png"><img style="background-image: none; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://www.mbaeker.de/wp-content/uploads/2012/01/image_thumb6.png" alt="image" width="244" height="158" border="0" /></a></p>
<p>Der Rolle muss jetzt unter Rollenzuweisungen eine Berechtigungsgruppe zugeordnet werden:</p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2012/01/image7.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://www.mbaeker.de/wp-content/uploads/2012/01/image_thumb7.png" alt="image" width="491" height="172" border="0" /></a></p>
<p>Hier kann man lokale Gruppen, Active Directory Gruppen oder auch einzelne Benutzer hinzufügen.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mbaeker.de/2012/01/hyper-v-extra-rechte-auf-hyper-v-fr-nicht-adminuser-einrichten/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SCOM: Neue Management Packs Ende Dezember 2011</title>
		<link>http://www.mbaeker.de/2011/12/scom-neue-management-packs-ende-dezember-2011/</link>
		<comments>http://www.mbaeker.de/2011/12/scom-neue-management-packs-ende-dezember-2011/#comments</comments>
		<pubDate>Sat, 31 Dec 2011 15:18:31 +0000</pubDate>
		<dc:creator>markus</dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[Operations Manager]]></category>
		<category><![CDATA[SC Software Updates]]></category>

		<guid isPermaLink="false">http://www.mbaeker.de/?p=800</guid>
		<description><![CDATA[Zum Jahresabschluss noch ein kleiner Überblick über die neuesten Managementpacks in den letzten 39 Tagen: Neue Management Packs im Zeitraum zwischen 22.11.2011 und 31.12.2011 Keine neuen Managementpacks Scheinbar liegt die Priorität bei Microsoft momentan auf System Center Operations Manager 2012.]]></description>
			<content:encoded><![CDATA[<p>Zum Jahresabschluss noch ein kleiner Überblick über die neuesten Managementpacks in den letzten 39 Tagen:</p>
<p>  Neue Management Packs im Zeitraum zwischen 22.11.2011 und 31.12.2011
<ul>
<li>Keine neuen Managementpacks</li>
</ul>
<p>  Scheinbar liegt die Priorität bei Microsoft momentan auf System Center Operations Manager 2012.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mbaeker.de/2011/12/scom-neue-management-packs-ende-dezember-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SCVMM: Remove an Alias or Konflikt mit Hyper-V Powershell</title>
		<link>http://www.mbaeker.de/2011/12/scvmm-remove-an-alias-or-konflikt-mit-hyper-v-powershell/</link>
		<comments>http://www.mbaeker.de/2011/12/scvmm-remove-an-alias-or-konflikt-mit-hyper-v-powershell/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 11:09:00 +0000</pubDate>
		<dc:creator>markus</dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[System Center]]></category>
		<category><![CDATA[Virtual Machine Manager]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[scvmm]]></category>

		<guid isPermaLink="false">http://www.mbaeker.de/?p=802</guid>
		<description><![CDATA[Wer die Powershell Module von SCVMM und die Community Module zu Hyper-V gleichzeitig benutzen will, bekommt bei einigen Funktionen einen Konflikt. Eigentlich sind alle Funktionen vom SCVMM eindeutig mit einem SC bezeichnet. So heißt die Funktion, um das Objekt einer Virtuellen Maschine zu erhalten get-SCVirtualMachine. Wahrscheinlich aus historischen Gründen gibt es aber eine Alias namens [...]]]></description>
			<content:encoded><![CDATA[<p>Wer die Powershell Module von SCVMM und die <a href="http://pshyperv.codeplex.com/" target="_blank">Community Module zu Hyper-V</a> gleichzeitig benutzen will, bekommt bei einigen Funktionen einen Konflikt.</p>
<p>Eigentlich sind alle Funktionen vom SCVMM eindeutig mit einem SC bezeichnet. So heißt die Funktion, um das Objekt einer Virtuellen Maschine zu erhalten get-SCVirtualMachine. Wahrscheinlich aus historischen Gründen gibt es aber eine Alias namens “get-VM” auf diese Funktion.</p>
<p>Die CodePlex Hyper-V Funktionen haben keinen gesonderten Namensraum. Hier heißt die Funktion für die Virtuelle Maschine einfach get-VM. Dies wäre nicht so schlimm, wenn die Funktion nicht auch intern fleißig genutzt wird. Möchte man die CodePlex Funktionen nutzen, um Differenzielle Disks zu erstellen (etwas  was der SCVMM auch in 2012 nicht anbietet), so funktioniert dies nicht mehr, wenn beide Module geladen sind.</p>
<p>Die direkte Lösung wäre daher, den Alias auf get-SCVirtualMachine wieder zu entfernen.   Neue Aliase sind einfach per “new-Alias” erstellbar. Eine Funktion namens “remove-Alias” existiert aber nicht, da ein Alias für die aktuelle Sitzung definiert und dort auch bis zum Ende bestehen bleibt.</p>
<p>Trotzdem kann man einen Alias mit der generischen Funktion remove-item entfernen. Hier heißt der Alias &#8220;Alias:get-VM&#8221;. D.h. wie bei der Bezeichnung &#8220;ftp:sdfsdf&#8221; oder &#8220;c:\get-vm&#8221; steht Alias: für das Protokoll bzw. den Namensraum, damit die Funktion weiß, an welches Modul sie den Löschbefehl weitergeben muss. Hier ein Beispiel:</p>
<pre class="brush: powershell; title: ; notranslate">
$alias= Get-Alias | where {$_.name -eq &quot;Get-VM&quot;}
if ($alias -ne $null) {
   $itemName=$alias.CommandType.ToString()+&quot;:&quot;+$alias.name
   Remove-Item $itemName
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.mbaeker.de/2011/12/scvmm-remove-an-alias-or-konflikt-mit-hyper-v-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SCVMM: mit Powershell Teil 2</title>
		<link>http://www.mbaeker.de/2011/12/scvmm-mit-powershell-teil-2/</link>
		<comments>http://www.mbaeker.de/2011/12/scvmm-mit-powershell-teil-2/#comments</comments>
		<pubDate>Mon, 26 Dec 2011 14:58:44 +0000</pubDate>
		<dc:creator>markus</dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[System Center]]></category>
		<category><![CDATA[Virtual Machine Manager]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[scvmm]]></category>

		<guid isPermaLink="false">http://www.mbaeker.de/?p=796</guid>
		<description><![CDATA[In diesem Blogpost werde ich die Arbeit mit den neuen Custom Properties im SCVMM 2012 vorstellen. In Vergangenheit gab es eine Reihe von vordefinierten Custom Properties (1-10). Mit SCVMM 2012 gibt es beliebige Erweiterungsfelder, die als Objekt abgebildet sind und an Virtuellen Maschinen, Hosts, Clouds und anderen Objekten hängen können. Diese Objekte kann man in [...]]]></description>
			<content:encoded><![CDATA[<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; float: left; padding-top: 0px; border: 0px;" title="blockdevice" src="http://www.mbaeker.de/wp-content/uploads/2011/12/blockdevice.png" alt="blockdevice" width="120" height="120" align="left" border="0" />In diesem Blogpost werde ich die Arbeit mit den neuen Custom Properties im SCVMM 2012 vorstellen.</p>
<p>In Vergangenheit gab es eine Reihe von vordefinierten Custom Properties (1-10). Mit SCVMM 2012 gibt es beliebige Erweiterungsfelder, die als Objekt abgebildet sind und an Virtuellen Maschinen, Hosts, Clouds und anderen Objekten hängen können.</p>
<p>Diese Objekte kann man in Powershell mittels get-SCCustomProperty abrufen. Diese Objekte beinhalten aber noch keine Werte, sondern stellen nur die Schlüssel dar. Die eigentlich eingestellten Werte hängen in einer Hashtable an den zu erweiternden Objekten, also z.B. an der jeweiligen Virtuellen Maschine in der Hashtable Eigenschaft CustomProperty. Möchte man den Wert der selbsterstellten Eigenschaft “Kostenstelle” abfragen, so kann man dies über</p>
<pre class="brush: powershell; title: ; notranslate">
$kostenstelle=get-SCCustomProperty –Name &quot;Kostenstelle&quot;
$wert=$vm.CustomProperty.get_item($kostenstelle)
</pre>
<p>Nachfolgend noch eine etwas “komplexere” Funktion, um alle Custom Properties von der Virtuellen Maschine $vm auf die Maschine $targetVM zu übertragen:</p>
<pre class="brush: powershell; title: ; notranslate">
if ($vm.CustomProperty.Count -gt 0)
{
    $vm.CustomProperty.Keys | ForEach-Object{
        Set-SCCustomPropertyValue -InputObject $targetvm -CustomProperty (Get-SCCustomProperty -Name $_) -Value $vm.CustomProperty.get_item($_)
    }
}
</pre>
<p>In der ersten Zeile wird zur Sicherheit überprüft, ob überhaupt Custom Properties an diesem Objekt hängen (HashTable speichert die Anzahl der Einträge in Count). Danach werden alle CustomProperty Objekte aus der Key Eigenschaft ausgelesen und durchlaufen. Durch set-SCCustomPropertyValue wird das Objekt und der Wert an das Zielobjekt übertragen.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mbaeker.de/2011/12/scvmm-mit-powershell-teil-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SCVMM: mit Powershell Teil 1</title>
		<link>http://www.mbaeker.de/2011/12/scvmm-mit-powershell-teil-1/</link>
		<comments>http://www.mbaeker.de/2011/12/scvmm-mit-powershell-teil-1/#comments</comments>
		<pubDate>Sun, 04 Dec 2011 13:03:46 +0000</pubDate>
		<dc:creator>markus</dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[System Center]]></category>
		<category><![CDATA[Virtual Machine Manager]]></category>

		<guid isPermaLink="false">http://www.mbaeker.de/?p=787</guid>
		<description><![CDATA[Ich habe gerade das Glück etwas mehr mit Powershell und System Center Virtual Machine Manager 2012 (SCVMM, RC) zu arbeiten. Daher werde ich hier wieder ein paar Codesnippsel posten, um bestimmte Funktionen zu automatisieren: die erste Funktion soll eine neue Cloud für Hyper-V erzeugen . Zusätzlich wird ein neue Rolle für diese Cloud angelegt, die [...]]]></description>
			<content:encoded><![CDATA[<p>Ich habe gerade das Glück etwas mehr mit Powershell und System Center Virtual Machine Manager 2012 (SCVMM, RC) zu arbeiten. Daher werde ich hier wieder ein paar Codesnippsel posten, um bestimmte Funktionen zu automatisieren:</p>
<p>die erste Funktion soll eine neue Cloud für Hyper-V erzeugen . Zusätzlich wird ein neue Rolle für diese Cloud angelegt, die nur VMs verwalten darf.</p>
<pre class="brush: powershell; title: ; notranslate">
#creates a new cloud and a corresponding usergroup
function createCloud([string]$name,[string]$hostgroupname)
{
   #retrieving first GUID for creating the new cloud
     $job= ([System.Guid]::NewGuid().toString())
   #define Cloud limitations (here: no limit)
     Set-SCCloudCapacity -JobGroup $job -UseCustomQuotaCountMaximum $true -UseMemoryMBMaximum $true -UseCPUCountMaximum $true -UseStorageGBMaximum $true -UseVMCountMaximum $true
   #setting the used network (here: the network has the same name as the cloud)
     $resources = @()
     $resources += Get-SCLogicalNetwork -Name $Name
   #defining that the cloud can be used on hyper-v server
     $addCapabilityProfiles = @()
     $addCapabilityProfiles += Get-SCCapabilityProfile -Name &quot;Hyper-V&quot;
   #adding the settings to the cloud with the defined GUID
     Set-SCCloud -JobGroup $job -RunAsynchronously -AddCloudResource $resources -AddCapabilityProfile $addCapabilityProfiles
   #adding the cloud to the hostgroup
     $hostGroups = @()
     $hostGroups += Get-SCVMHostGroup -Name $hostgroupname
   #creating the cloud and the rest from the first job <img src='http://www.mbaeker.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />
     New-SCCloud -JobGroup $Job -VMHostGroup $hostGroups -Name $Name -RunAsynchronously

#creating the usergroup
   #GUID for the second job
     $job= ([System.Guid]::NewGuid().toString())
   #the roleis for the newly created cloud
     $scopeToAdd = @()
     $scopeToAdd += Get-SCCloud -name $name
   #the user of this role can start, stop and shutdown virtual machines in the cloud and start a remote control
     Set-SCUserRole -JobGroup $job -AddScope $scopeToAdd -Permission @(&quot;RemoteConnect&quot;, &quot;Shutdown&quot;, &quot;Start&quot;, &quot;Stop&quot;) -ShowPROTips $false
     $cloud = Get-SCCloud -Name $name
   #add all settings to the role
     Set-SCUserRoleQuota -Cloud $cloud -JobGroup $job -QuotaPerUser -UseCPUCountMaximum -UseMemoryMBMaximum -UseStorageGBMaximum -UseCustomQuotaCountMaximum -UseVMCountMaximum
   #create the role with the job guid
     New-SCUserRole -Name $name -UserRoleProfile &quot;SelfServiceUser&quot; -Description &quot;&quot; -JobGroup $job
}
</pre>
<p>Die Funktion kann einfach per</p>
<pre class="brush: powershell; title: ; notranslate">

createCloud &quot;MeineCloud&quot; &quot;Alle Hosts&quot;
</pre>
<p>aufgerufen werden.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mbaeker.de/2011/12/scvmm-mit-powershell-teil-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SCOM: Neue Management Packs Mitte November 2011</title>
		<link>http://www.mbaeker.de/2011/11/scom-neue-management-packs-mitte-november-2011/</link>
		<comments>http://www.mbaeker.de/2011/11/scom-neue-management-packs-mitte-november-2011/#comments</comments>
		<pubDate>Tue, 22 Nov 2011 18:00:05 +0000</pubDate>
		<dc:creator>markus</dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[Operations Manager]]></category>
		<category><![CDATA[SC Software Updates]]></category>
		<category><![CDATA[scom]]></category>

		<guid isPermaLink="false">http://www.mbaeker.de/2011/11/scom-neue-management-packs-mitte-november-2011/</guid>
		<description><![CDATA[Damit man nicht denkt, dass ich die Management Packs (MP) vergessen habe, aber es gibt nichts zu berichten. Neue Management Packs im Zeitraum zwischen 31.10.2011 und 22.11.2011: Nix Neues von der SCOM MP Front…]]></description>
			<content:encoded><![CDATA[<p>Damit man nicht denkt, dass ich die Management Packs (MP) vergessen habe, aber es gibt nichts zu berichten.</p>
<p>Neue Management Packs im Zeitraum zwischen 31.10.2011 und 22.11.2011:</p>
<ul>
<li> Nix Neues von der SCOM MP Front…</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.mbaeker.de/2011/11/scom-neue-management-packs-mitte-november-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SCOM: Notify by ICQ, MSN, Jabber or Facebook</title>
		<link>http://www.mbaeker.de/2011/11/scom-notify-by-icq-msn-jabber-or-facebook/</link>
		<comments>http://www.mbaeker.de/2011/11/scom-notify-by-icq-msn-jabber-or-facebook/#comments</comments>
		<pubDate>Sun, 13 Nov 2011 13:36:18 +0000</pubDate>
		<dc:creator>markus</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Operations Manager]]></category>
		<category><![CDATA[System Center]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[scom]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.mbaeker.de/?p=781</guid>
		<description><![CDATA[On thing I was always missing in System Center Operations Manager (SCOM) was the notification with other instant messaging (IM) protocols than the build in Microsoft Communicator. On friday I had some time to test a solution which I will describe here. On warnung at the beginning: This current solution is experimental. It will run [...]]]></description>
			<content:encoded><![CDATA[<p><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; float: left; padding-top: 0px; border: 0px;" title="aim" src="http://www.mbaeker.de/wp-content/uploads/2011/11/aim.png" alt="aim" width="84" height="84" align="left" border="0" />On thing I was always missing in System Center Operations Manager (SCOM) was the notification with other instant messaging (IM) protocols than the build in Microsoft Communicator.</p>
<p>On friday I had some time to test a solution which I will describe here.</p>
<p>On warnung at the beginning: This current solution is experimental. It will run a Miranda client in the system context and can be a large security hole for your SCOM server!</p>
<p>The first thing I had to to is finding a client which can be controlled by command line or by a SDK. I stumbled upon the <a href="http://www.eblis.tla.ro/index.php?option=com_content&amp;task=view&amp;id=14&amp;Itemid=26" target="_blank">command line plugin</a> for Miranda IM. Miranda IM is an open source mutli-protocol instant messaging client. With it you can integrate multiple protocols with plugins.</p>
<p><span id="more-781"></span></p>
<p>I created a test ICQ account and a surrounding batch file for miranda:</p>
<pre class="brush: plain; title: ; notranslate">
setlocal

set log=&quot;c:\logging.log&quot;
echo. &gt;&gt; %log%
echo starting %date% %time% &gt;&gt; %log%

rem läuft miranda schon?
tasklist | findstr /i miranda32.exe
if %errorlevel%.==0. goto laeuft
echo Starte Miranda im System Kontext &gt;&gt; %log%
start &quot;&quot; &quot;%~dp0miranda32.exe&quot;
echo 10 sec warten...
ping -w 1000 -n 10 128.0.0.1
goto weiter

:laeuft
echo Miranda laeuft schon  &gt;&gt; %log%

:weiter
echo mimcmd message %~1 &quot;%~2&quot; &gt;&gt; %log%
mimcmd message %~1 &quot;%~2&quot;&gt;&gt; %log%
endlocal
</pre>
<p>First it checks if miranda is already running. The command Tasklist is only available in Windows 2008 and later. If it isn’t running it will be startet (has to be in the same directory as the batch file) and the batch waits for 10 seconds. After that it will use the mimcmd command the send the message.</p>
<p>The batch file takes two parameter: 1. the target of the im (can be more than one) 2. The message to send.</p>
<p>To use this batch file you have to create a Command Notification Channel in SCOM:</p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2011/11/notificationChannel1.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="notificationChannel1" src="http://www.mbaeker.de/wp-content/uploads/2011/11/notificationChannel1_thumb.png" alt="notificationChannel1" width="345" height="304" border="0" /></a></p>
<p>And here the interesting command line call:</p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2011/11/notificationChannel2.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="notificationChannel2" src="http://www.mbaeker.de/wp-content/uploads/2011/11/notificationChannel2_thumb.png" alt="notificationChannel2" width="352" height="310" border="0" /></a></p>
<p>I have used only one target. You can define more then one target by surounding the second parameter (everything between 5 and 49) with qoutes like this: “ICQNumber1 ICQNumber2” or if you want to specify the protocol: “ICQNumber1:ICQ MSNAlias:MSN”. For details look into the readme of the command line plugin.</p>
<p>For sending something to this channel you have to create a subscriber:</p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2011/11/subscriber.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="subscriber" src="http://www.mbaeker.de/wp-content/uploads/2011/11/subscriber_thumb.png" alt="subscriber" width="354" height="312" border="0" /></a></p>
<p>And after that you create a normal subscription with the channel and the subscriber.</p>
<p>If everything worded correctly you will see after the first alert in the process list (task manager):</p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2011/11/taskmgr.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="taskmgr" src="http://www.mbaeker.de/wp-content/uploads/2011/11/taskmgr_thumb.png" alt="taskmgr" width="446" height="223" border="0" /></a></p>
<p>a miranda process in the system context. And in you IM client:</p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2011/11/im.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="im" src="http://www.mbaeker.de/wp-content/uploads/2011/11/im_thumb.png" alt="im" width="463" height="146" border="0" /></a></p>
<p>To increase the security you should deactivate and delete all plugins that aren’t necessary. Here is my plugin list:</p>
<p><a href="http://www.mbaeker.de/wp-content/uploads/2011/11/plugins.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="plugins" src="http://www.mbaeker.de/wp-content/uploads/2011/11/plugins_thumb.png" alt="plugins" width="222" height="314" border="0" /></a></p>
<p>Outlook:</p>
<p>I will try to start the miranda process with lower privileges but still in the system context.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mbaeker.de/2011/11/scom-notify-by-icq-msn-jabber-or-facebook/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SCOM: Neue Management Packs Ende Oktober 2011</title>
		<link>http://www.mbaeker.de/2011/10/scom-neue-management-packs-ende-oktober-2011/</link>
		<comments>http://www.mbaeker.de/2011/10/scom-neue-management-packs-ende-oktober-2011/#comments</comments>
		<pubDate>Sun, 30 Oct 2011 16:02:14 +0000</pubDate>
		<dc:creator>markus</dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[Operations Manager]]></category>
		<category><![CDATA[System Center]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Core]]></category>
		<category><![CDATA[SC Software Updates]]></category>

		<guid isPermaLink="false">http://www.mbaeker.de/?p=762</guid>
		<description><![CDATA[In den letzten 20 Tagen wurde erneut das OS Management Pack aktualisiert. Neue Management Packs im Zeitraum zwischen 10.10.2011 und 30.10.2011 Windows Server 2000 Operating System 6.0.6958.0 Windows Server 2003 Operating System 6.0.6958.0 Windows Server 2008 Operating System (Discovery) 6.0.6958.0 Windows Server 2008 Operating System (Monitoring) 6.0.6958.0 Windows Server 2008 R2 Best Practice Analyzer Monitoring [...]]]></description>
			<content:encoded><![CDATA[<p>In den letzten 20 Tagen wurde erneut das OS Management Pack aktualisiert.</p>
<p>Neue Management Packs im Zeitraum zwischen 10.10.2011 und 30.10.2011</p>
<ul>
<li><a href="http://download.microsoft.com/download/f/7/b/f7b960c9-7392-4c5a-bab4-efbb8a66ec2a/Microsoft.Windows.Server.2000.mp" target="_blank">Windows Server 2000 Operating System 6.0.6958.0</a></li>
<li><a href="http://download.microsoft.com/download/f/7/b/f7b960c9-7392-4c5a-bab4-efbb8a66ec2a/Microsoft.Windows.Server.2003.mp" target="_blank">Windows Server 2003 Operating System 6.0.6958.0</a></li>
<li><a href="http://download.microsoft.com/download/f/7/b/f7b960c9-7392-4c5a-bab4-efbb8a66ec2a/Microsoft.Windows.Server.2008.Discovery.mp" target="_blank">Windows Server 2008 Operating System (Discovery) 6.0.6958.0</a></li>
<li><a href="http://download.microsoft.com/download/f/7/b/f7b960c9-7392-4c5a-bab4-efbb8a66ec2a/Microsoft.Windows.Server.2008.Monitoring.mp" target="_blank">Windows Server 2008 Operating System (Monitoring) 6.0.6958.0</a></li>
<li><a href="http://download.microsoft.com/download/f/7/b/f7b960c9-7392-4c5a-bab4-efbb8a66ec2a/Microsoft.Windows.Server.2008.R2.Monitoring.BPA.mp" target="_blank">Windows Server 2008 R2 Best Practice Analyzer Monitoring 6.0.6958.0</a></li>
<li><a href="http://download.microsoft.com/download/f/7/b/f7b960c9-7392-4c5a-bab4-efbb8a66ec2a/Microsoft.Windows.Server.ClusterSharedVolumeMonitoring.mp" target="_blank">Windows Server Cluster Shared Volume Monitoring 6.0.6958.0</a></li>
<li><a href="http://download.microsoft.com/download/f/7/b/f7b960c9-7392-4c5a-bab4-efbb8a66ec2a/Microsoft.Windows.Server.Library.mp" target="_blank">Windows Server Operating System Library 6.0.6958.0</a></li>
<li><a href="http://download.microsoft.com/download/f/7/b/f7b960c9-7392-4c5a-bab4-efbb8a66ec2a/Microsoft.Windows.Server.Reports.mp" target="_blank">Windows Server Operating System Reports 6.0.6958.0</a></li>
<li><a href="http://download.microsoft.com/download/f/7/b/f7b960c9-7392-4c5a-bab4-efbb8a66ec2a/OM2007_MP_OS2008.doc" target="_blank">MP Guide Core OS </a></li>
</ul>
<p>Diesmal gibt es keine großen Änderungen, sondern nur ein paar kleinere Korrekturen:</p>
<ul>
<li>Disabled BPA Rules by default.</li>
<li>Added appropriate SQL Stored Procedures credentials</li>
<li>Updated Knowledge of Logical Disks</li>
<li>Updated Overrides for Logical Disks</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.mbaeker.de/2011/10/scom-neue-management-packs-ende-oktober-2011/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SCSM 2012 Beta</title>
		<link>http://www.mbaeker.de/2011/10/scsm-2012-beta/</link>
		<comments>http://www.mbaeker.de/2011/10/scsm-2012-beta/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 06:25:11 +0000</pubDate>
		<dc:creator>markus</dc:creator>
				<category><![CDATA[Deutsch]]></category>
		<category><![CDATA[System Center]]></category>

		<guid isPermaLink="false">http://www.mbaeker.de/?p=758</guid>
		<description><![CDATA[Für alle die schon darauf gewartet haben: Gestern Abend (deutscher Zeit) ist die öffentliche Beta vom System Center Service Manager veröffentlicht worden: http://www.microsoft.com/download/en/details.aspx?id=27844 Kurze Lsite der Änderungen: Zentrale Änderung ist der neu hinzugekommene Service Katalog mit Service Requests Release Management und ein neues Self-Service Portal, dass jetzt auf Silverlight basiert. &#160;]]></description>
			<content:encoded><![CDATA[<p>Für alle die schon darauf gewartet haben: Gestern Abend (deutscher Zeit) ist die öffentliche Beta vom System Center Service Manager veröffentlicht worden:</p>
<p>http://www.microsoft.com/download/en/details.aspx?id=27844</p>
<p>Kurze Lsite der Änderungen:</p>
<ul>
<li>Zentrale Änderung ist der neu hinzugekommene Service Katalog mit Service Requests</li>
<li>Release Management</li>
<li>und ein neues Self-Service Portal, dass jetzt auf Silverlight basiert.</li>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mbaeker.de/2011/10/scsm-2012-beta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

