<?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>Thomas Maurer (tm) &#187; add</title>
	<atom:link href="http://www.thomasmaurer.ch/tag/add/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thomasmaurer.ch</link>
	<description>Just another private cloud weblog</description>
	<lastBuildDate>Mon, 06 Feb 2012 19:10:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SVN Basic</title>
		<link>http://www.thomasmaurer.ch/2010/11/svn-basic/</link>
		<comments>http://www.thomasmaurer.ch/2010/11/svn-basic/#comments</comments>
		<pubDate>Sat, 20 Nov 2010 07:56:33 +0000</pubDate>
		<dc:creator>Thomas Maurer</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[Xcode]]></category>
		<category><![CDATA[add]]></category>
		<category><![CDATA[checkout]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[repository]]></category>
		<category><![CDATA[revision]]></category>
		<category><![CDATA[revision control]]></category>
		<category><![CDATA[revision control system]]></category>
		<category><![CDATA[revsion]]></category>
		<category><![CDATA[software versioning]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[svn basic]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.thomasmaurer.ch/?p=1341</guid>
		<description><![CDATA[A colleague made a pretty cool blog post about svn basic on his blog. Subverion is a software versioning and a revision control system. At work all our program code and scripts, every little piece of code is going in &#8230; <a href="http://www.thomasmaurer.ch/2010/11/svn-basic/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><script type='text/javascript' src='https://apis.google.com/js/plusone.js'></script><g:plusone size='small' href='http://www.thomasmaurer.ch/2010/11/svn-basic/'></g:plusone></div><div class='dd_button'><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.thomasmaurer.ch/2010/11/svn-basic/" data-count="horizontal" data-text="SVN Basic" data-via="thomasmaurer" ></a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class='dd_button'><iframe src='http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.thomasmaurer.ch%2F2010%2F11%2Fsvn-basic%2F&amp;locale=en_US&amp;layout=button_count&amp;action=like&amp;width=92&amp;height=20&amp;colorscheme=light' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:92px; height:20px;' allowTransparency='true'></iframe></div></div><div style='clear:both'></div></div><div style='clear:both'></div><p style="text-align: left;"><a href="http://www.thomasmaurer.ch/wp-content/uploads/2010/11/subversion_logo-384x332.png" rel="lightbox[1341]"><img class="aligncenter size-thumbnail wp-image-1343" title="subversion" src="http://www.thomasmaurer.ch/wp-content/uploads/2010/11/subversion_logo-384x332-150x150.png" alt="subversion" width="150" height="150" /></a>A colleague made a pretty cool <a title="tspycher.com" href="http://tspycher.com/subversion-basics/" target="_blank">blog pos</a>t about svn basic on his blog. <a title="Subversion" href="http://subversion.apache.org/" target="_blank">Subverion</a> is a software versioning and a revision control system. At work all our program code and scripts, every little piece of code is going in your Subversion repository. This allows you to get back to earlier revisions of the code or simply share and work on code with other employees. Even your documentation is going into the Subversion repository.</p>
<p>On his blog post (German) he shows the basics of subversion, doing a checkout of e repository, adding files, changing files, removing files and more.</p>
<p>Here is a basic list of svn commands, if you need more information you should check the <a title="Subversion" href="http://subversion.apache.org/" target="_blank">Subversion Homepage</a> or try the Blog post from <a href="http://tspycher.com" target="_blank">tspycher.com</a></p>
<pre>
svn checkout  http://svn.colab.company.com # SVN checkout
svn commit -m "My Message and Changes" # SVN committing changes and new files
svn add /files/*.* # Adding Files to the SVN Repository after this you have to commit that
svn update # Update your local copy
</pre>
<p>A lot of IDE&#8217;s (Integrated Development Environment) like <a title="Visual Studio" href="http://www.microsoft.com/visualstudio/" target="_blank">Visual Studio</a> or Xcode have SVN integrated.</p>
<!-- Social Buttons Generated by Digg Digg plugin v4.5.3.4, 
    Author : Yong Mook Kim
    Website : http://www.diggdigg2u.com --><div class="shr-publisher-1341"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.thomasmaurer.ch/2010/11/svn-basic/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>iOS 4.1 beta 2 with calendar invites</title>
		<link>http://www.thomasmaurer.ch/2010/07/ios-4-1-beta-2-with-calendar-invites/</link>
		<comments>http://www.thomasmaurer.ch/2010/07/ios-4-1-beta-2-with-calendar-invites/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 17:46:31 +0000</pubDate>
		<dc:creator>Thomas Maurer</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPod]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[add]]></category>
		<category><![CDATA[Calendar]]></category>
		<category><![CDATA[Calendar Invites]]></category>
		<category><![CDATA[Event]]></category>
		<category><![CDATA[Invitees]]></category>
		<category><![CDATA[Invites]]></category>
		<category><![CDATA[iOS 4]]></category>
		<category><![CDATA[iOS 4 beta]]></category>
		<category><![CDATA[iOS 4.1]]></category>
		<category><![CDATA[iOS 4.1 beta 2]]></category>
		<category><![CDATA[iOS beta]]></category>
		<category><![CDATA[iOS Calendar Invites]]></category>
		<category><![CDATA[iPhone Calendar Invites]]></category>

		<guid isPermaLink="false">http://www.thomasmaurer.ch/?p=871</guid>
		<description><![CDATA[Apple just released iOS 4.1 beta 2. After some testing I found something I was looking for in every release. In iOS 4.1 beta 2 you can now send calendar invites to other people by creating a new event.]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><script type='text/javascript' src='https://apis.google.com/js/plusone.js'></script><g:plusone size='small' href='http://www.thomasmaurer.ch/2010/07/ios-4-1-beta-2-with-calendar-invites/'></g:plusone></div><div class='dd_button'><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.thomasmaurer.ch/2010/07/ios-4-1-beta-2-with-calendar-invites/" data-count="horizontal" data-text="iOS 4.1 beta 2 with calendar invites" data-via="thomasmaurer" ></a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class='dd_button'><iframe src='http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.thomasmaurer.ch%2F2010%2F07%2Fios-4-1-beta-2-with-calendar-invites%2F&amp;locale=en_US&amp;layout=button_count&amp;action=like&amp;width=92&amp;height=20&amp;colorscheme=light' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:92px; height:20px;' allowTransparency='true'></iframe></div></div><div style='clear:both'></div></div><div style='clear:both'></div><p>Apple just <a href="http://www.9to5mac.com/ios-4-1-beta-2-released" target="_blank">released iOS 4.1 beta 2</a>. After some testing I found something I was looking for in every release. In iOS 4.1 beta 2 you can now send calendar invites to other people by creating a new event.</p>

<a href='http://www.thomasmaurer.ch/2010/07/ios-4-1-beta-2-with-calendar-invites/img_0001-3/' title='iOS 4.1 beta 2 calendar invites'><img width="150" height="150" src="http://www.thomasmaurer.ch/wp-content/uploads/2010/07/IMG_0001-150x150.png" class="attachment-thumbnail" alt="iOS 4.1 beta 2 calendar invites" title="iOS 4.1 beta 2 calendar invites" /></a>
<a href='http://www.thomasmaurer.ch/2010/07/ios-4-1-beta-2-with-calendar-invites/img_0002/' title='IMG_0002'><img width="150" height="150" src="http://www.thomasmaurer.ch/wp-content/uploads/2010/07/IMG_0002-150x150.png" class="attachment-thumbnail" alt="IMG_0002" title="IMG_0002" /></a>
<a href='http://www.thomasmaurer.ch/2010/07/ios-4-1-beta-2-with-calendar-invites/img_0003-3/' title='IMG_0003'><img width="150" height="150" src="http://www.thomasmaurer.ch/wp-content/uploads/2010/07/IMG_0003-150x150.png" class="attachment-thumbnail" alt="IMG_0003" title="IMG_0003" /></a>

<!-- Social Buttons Generated by Digg Digg plugin v4.5.3.4, 
    Author : Yong Mook Kim
    Website : http://www.diggdigg2u.com --><div class="shr-publisher-871"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.thomasmaurer.ch/2010/07/ios-4-1-beta-2-with-calendar-invites/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Powershell: Working with XML part 2</title>
		<link>http://www.thomasmaurer.ch/2010/07/powershell-working-with-xml-part-2/</link>
		<comments>http://www.thomasmaurer.ch/2010/07/powershell-working-with-xml-part-2/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 13:42:04 +0000</pubDate>
		<dc:creator>Thomas Maurer</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Server Core]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Server]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[add]]></category>
		<category><![CDATA[Add Data to XML]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[Microsoft Powershell]]></category>
		<category><![CDATA[Object]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Remove]]></category>
		<category><![CDATA[Remove data from XML]]></category>
		<category><![CDATA[Save]]></category>
		<category><![CDATA[Save XML Object]]></category>
		<category><![CDATA[Saving data to XML]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Windows Powershell]]></category>
		<category><![CDATA[Working]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[XML Powershell]]></category>

		<guid isPermaLink="false">http://www.thomasmaurer.ch/?p=863</guid>
		<description><![CDATA[After my first post (Powershell: Parsing XML part 1) about working with XML and Powershell, I have create this second post which describes how to create a XML file, Add content to the XML file, remove content from the XML &#8230; <a href="http://www.thomasmaurer.ch/2010/07/powershell-working-with-xml-part-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><script type='text/javascript' src='https://apis.google.com/js/plusone.js'></script><g:plusone size='small' href='http://www.thomasmaurer.ch/2010/07/powershell-working-with-xml-part-2/'></g:plusone></div><div class='dd_button'><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.thomasmaurer.ch/2010/07/powershell-working-with-xml-part-2/" data-count="horizontal" data-text="Powershell: Working with XML part 2" data-via="thomasmaurer" ></a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class='dd_button'><iframe src='http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.thomasmaurer.ch%2F2010%2F07%2Fpowershell-working-with-xml-part-2%2F&amp;locale=en_US&amp;layout=button_count&amp;action=like&amp;width=92&amp;height=20&amp;colorscheme=light' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:92px; height:20px;' allowTransparency='true'></iframe></div></div><div style='clear:both'></div></div><div style='clear:both'></div><p><a href="http://www.thomasmaurer.ch/wp-content/uploads/2010/05/Screen-shot-2010-05-30-at-13.08.42.png" rel="lightbox[863]"><img class="aligncenter size-full wp-image-621" title="Powershell Header" src="http://www.thomasmaurer.ch/wp-content/uploads/2010/05/Screen-shot-2010-05-30-at-13.08.42.png" alt="Powershell Header" width="440" height="104" /></a></p>
<p>After my first post (<a href="http://www.thomasmaurer.ch/2010/06/powershell-parsing-xml-part-1/">Powershell: Parsing XML part 1</a>) about working with XML and Powershell, I have create this second post which describes how to create a XML file, Add content to the XML file, remove content from the XML file and save the XML objects as a file.</p>
<p>While I was writing a script which communicates with a webserver, I realized that I need some error handling if the server can not anwser a request from my script. For example if the webserver is down or has to much load.</p>
<p>I created a little retry part (<a href="http://www.thomasmaurer.ch/2010/07/powershell-simple-retry-logic/" target="_self">Powershell: Simple retry logic</a>) which retries several times. But if the Server is down for several hours or days your script hangs in a retry loop. Obviously this cant be the solution. After a little bit of thinking a decided to write the data, which I was trying to send, down in a XML file. And the next time the script runs it reads the XML file and tries to send the data again.</p>
<p>Thats the story behind my idea for saving data in a XML file.</p>
<h2>Creating a XML object</h2>
<pre>
[XML]$FruitList = "&lt;Box&gt;
&lt;Fruit&gt;
&lt;Name&gt;Banana&lt;/Name&gt;
&lt;Color&gt;yellow&lt;/Color&gt;
&lt;/Fruit&gt;
&lt;/Box&gt;"
</pre>
<h2>Save a XML object as a XML file</h2>
<pre>
$FruitList.Save("./myfruitlist.xml")
</pre>
<p>XML:</p>
<pre>
&lt;Box&gt;
	&lt;Fruit&gt;
		&lt;Name&gt;Banana&lt;/Name&gt;
		&lt;Color&gt;yellow&lt;/Color&gt;
	&lt;/Fruit&gt;
&lt;/Box&gt;
</pre>
<h2>Open a saved XML file</h2>
<pre>
[xml]$FruitList = Get-Content ./myfruitlist.xml
</pre>
<h2>Add data to XML object and save it in a XML file</h2>
<pre>
# Copy Object from Banana
[Object]$CopyFruit = FruitList.Box.Fruit | Where-Object {$_.Name -eq "Banana"}
$NewFruit = $CopyFruit.Clone()
# Add Fruit to new Object
$NewFruit.Name = "Apple"
$NewFruit.Color = "green"
# Add Fruit to XML Object
$FruitList.Box.AppendChild($NewFruit)
#Save to XML object ot XML file
$FruitList.Save("./myfruitlist.xml")
</pre>
<p>XML:</p>
<pre>
&lt;Box&gt;
	&lt;Fruit&gt;
		&lt;Name&gt;Banana&lt;/Name&gt;
		&lt;Color&gt;yellow&lt;/Color&gt;
	&lt;/Fruit&gt;
	&lt;Fruit&gt;
		&lt;Name&gt;Apple&lt;/Name&gt;
		&lt;Color&gt;green&lt;/Color&gt;
	&lt;/Fruit&gt;
&lt;/Box&gt;</pre>
<h2>Change data from XML Object and save it as XML file</h2>
<pre>
# Change Apple Color
$FruitList.Box.Fruit | Where-Object {$_.Name -eq "Apple"} | ForEach-Object { $_.Color = "red" }
#Save to XML object ot XML file
$FruitList.Save("./myfruitlist.xml")
</pre>
<p>XML:</p>
<pre>
&lt;Box&gt;
	&lt;Fruit&gt;
		&lt;Name&gt;Banana&lt;/Name&gt;
		&lt;Color&gt;yellow&lt;/Color&gt;
	&lt;/Fruit&gt;
	&lt;Fruit&gt;
		&lt;Name&gt;Apple&lt;/Name&gt;
		&lt;Color&gt;red&lt;/Color&gt;
	&lt;/Fruit&gt;
&lt;/Box&gt;</pre>
<h2>Remove data from XML Object and save it as XML file</h2>
<pre>
# Remove Banana from Object
$RemoveFruit = $FruitList.Box.Fruit | Where-Object {$_.Name -eq "Banana"}
$FruitList.Box.RemoveChild($RemoveFruit)
#Save to XML object ot XML file
$FruitList.Save("./myfruitlist.xml")
</pre>
<p>XML:</p>
<pre>
&lt;Box&gt;
	&lt;Fruit&gt;
		&lt;Name&gt;Apple&lt;/Name&gt;
		&lt;Color&gt;green&lt;/Color&gt;
	&lt;/Fruit&gt;
&lt;/Box&gt;</pre>
<!-- Social Buttons Generated by Digg Digg plugin v4.5.3.4, 
    Author : Yong Mook Kim
    Website : http://www.diggdigg2u.com --><div class="shr-publisher-863"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.thomasmaurer.ch/2010/07/powershell-working-with-xml-part-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cheatsheet: Add roles and features to a Server Core installation #2</title>
		<link>http://www.thomasmaurer.ch/2010/02/cheatsheet-add-roles-and-features-to-a-server-core-installation-2/</link>
		<comments>http://www.thomasmaurer.ch/2010/02/cheatsheet-add-roles-and-features-to-a-server-core-installation-2/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 12:19:31 +0000</pubDate>
		<dc:creator>Thomas Maurer</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Server Core]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Server]]></category>
		<category><![CDATA[Windows Server 2008]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>
		<category><![CDATA[Work]]></category>
		<category><![CDATA[add]]></category>
		<category><![CDATA[Core]]></category>
		<category><![CDATA[Core Server]]></category>
		<category><![CDATA[features]]></category>
		<category><![CDATA[installations]]></category>
		<category><![CDATA[mmc]]></category>
		<category><![CDATA[oclist]]></category>
		<category><![CDATA[ocsetup]]></category>
		<category><![CDATA[Remote Server Manager]]></category>
		<category><![CDATA[roles]]></category>
		<category><![CDATA[sconfig]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[snmp]]></category>
		<category><![CDATA[uninstall]]></category>
		<category><![CDATA[windows server 2008]]></category>
		<category><![CDATA[Windows Server 2008 Core]]></category>
		<category><![CDATA[Windows Server 2008 R2 Core]]></category>
		<category><![CDATA[Windows Server Core]]></category>

		<guid isPermaLink="false">http://www.thomasmaurer.ch/?p=458</guid>
		<description><![CDATA[This are some commands to add roles and features to a Windows Server 2008 R2 Core installation. You also can enable Remote MMC and Remote Server Manager to simply connect from a management server to the core server and add &#8230; <a href="http://www.thomasmaurer.ch/2010/02/cheatsheet-add-roles-and-features-to-a-server-core-installation-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><div class='dd_post_share'><div class='dd_buttons'><div class='dd_button'><script type='text/javascript' src='https://apis.google.com/js/plusone.js'></script><g:plusone size='small' href='http://www.thomasmaurer.ch/2010/02/cheatsheet-add-roles-and-features-to-a-server-core-installation-2/'></g:plusone></div><div class='dd_button'><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.thomasmaurer.ch/2010/02/cheatsheet-add-roles-and-features-to-a-server-core-installation-2/" data-count="horizontal" data-text="Cheatsheet: Add roles and features to a Server Core installation #2" data-via="thomasmaurer" ></a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class='dd_button'><iframe src='http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.thomasmaurer.ch%2F2010%2F02%2Fcheatsheet-add-roles-and-features-to-a-server-core-installation-2%2F&amp;locale=en_US&amp;layout=button_count&amp;action=like&amp;width=92&amp;height=20&amp;colorscheme=light' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:92px; height:20px;' allowTransparency='true'></iframe></div></div><div style='clear:both'></div></div><div style='clear:both'></div><p>This are some commands to add roles and features to a Windows Server 2008 R2 Core installation.</p>
<p>You also can enable Remote MMC and Remote Server Manager to simply connect from a management server to the core server and add roles with GUI. This may only work within a domain environment. You can enable remote management pretty easy with the sconfig.cmd. Find out more about configuring Windows Server 2008 R2 Core installations <a href="http://www.thomasmaurer.ch/2010/02/cheatsheet-configuring-a-server-core-installation-1/">here</a>.</p>
<p>List available server roles and features:</p>
<blockquote><p><code><strong>oclist</strong></code></p></blockquote>
<p>Install, uninstall and configure Active Directory Domain Service role:</p>
<blockquote><p><code><strong>dcpromo</strong></code></p></blockquote>
<p>Help for dcpromo:</p>
<blockquote><p><code>PS C:\&gt; <strong>dcpromo /?</strong></code></p>
<p><code>Command line parameters include:</code></p>
<p><code>/unattend[:filename]<br />
Used to specify the unattend operation mode or supply an unattended install script file.</code></p>
<p><code>/adv<br />
Enables advanced user options.</code></p>
<p><code>/uninstallBinaries<br />
Used to uninstall Active Directory Domain Services binaries.</code></p>
<p><code>/?[:{Promotion | CreateDcAccount | UseExistingAccount | Demotion}]</code></p>
<p><code>/?:Promotion, /?:CreateDCAccount, /?:UseExistingAccount, and /?:Demotion<br />
will display unattend parameters applicable to the specified task. /CreateDCAccount and /UseExistingAccount:Attach are mutually exclusive.</code></p>
<p><code>/CreateDCAccount<br />
Creates an RODC account.</p>
<p>/UseExistingAccount:Attach<br />
Attaches the server to an RODC account.</p>
<p>/forceRemoval<br />
Forcefully uninstalls Active Directory Domain Services on this domain controller. The account for the domain controller will not be deleted in the directory, and changes that have occurred on this domain controller since it last replicated with a partner will be lost.</p>
<p>/?<br />
Will display this help.</p>
<p>Unattend parameters can also be specified on the command-line. For example:</p>
<p>dcpromo.exe /ReplicaOrNewDomain:Replica</p>
<p></code><code>Press any key to quit ...</code></p></blockquote>
<p>Install a role or feature its basically always the same:</p>
<blockquote><p><code><strong>start /w ocsetup</strong> &lt;roleorfeature&gt;</code></p>
<p><code> </code><code><strong>start /w ocsetup DNS-Server-Core-Role</strong></code></p></blockquote>
<p>Uninstall a role or feature:</p>
<blockquote><p><code><strong>start /w ocsetup</strong> &lt;roleorfeature&gt; <strong>/uninstall</strong></code></p>
<p><code> </code><code><strong>start /w ocsetup DNS-Server-Core-Role /uninstall</strong></code></p></blockquote>
<p>Install SNMP feature:</p>
<blockquote><p><code><strong>start /w ocsetup SNMP-SC</strong></code></p></blockquote>
<p>Install Microsoft Hyper-v role:</p>
<blockquote><p><code><strong>start /w ocsetup Microsoft-Hyper-V</strong></code></p></blockquote>
<!-- Social Buttons Generated by Digg Digg plugin v4.5.3.4, 
    Author : Yong Mook Kim
    Website : http://www.diggdigg2u.com --><div class="shr-publisher-458"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.thomasmaurer.ch/2010/02/cheatsheet-add-roles-and-features-to-a-server-core-installation-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

