<?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>Windows Server Archives - VirtJunkie</title>
	<atom:link href="/category/windows-server/feed/" rel="self" type="application/rss+xml" />
	<link>/category/windows-server/</link>
	<description>Virtualization, Automation, and anything else that might be on my mind</description>
	<lastBuildDate>Wed, 21 May 2014 03:28:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.5</generator>

<image>
	<url>/wp-content/uploads/2020/04/cropped-vj4-150x150.png</url>
	<title>Windows Server Archives - VirtJunkie</title>
	<link>/category/windows-server/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Modify DNS Records via Powershell</title>
		<link>/2014/05/20/modify-dns-records-via-powershell/</link>
					<comments>/2014/05/20/modify-dns-records-via-powershell/#respond</comments>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Wed, 21 May 2014 03:28:22 +0000</pubDate>
				<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows Server]]></category>
		<guid isPermaLink="false">http://45.63.13.214/?p=592</guid>

					<description><![CDATA[<p>Over the past few months I&#8217;ve been doing a lot of work with VMware Horizon 6. I&#8217;m not going to go into details, as VMware has done a great job doing that, plus I&#8217;m under a NDA. Suffice to say, details that have been provided suffice if you&#8217;re just looking for info. In my company sponsored [&#8230;]</p>
<p>The post <a href="/2014/05/20/modify-dns-records-via-powershell/">Modify DNS Records via Powershell</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Over the past few months <a href="http://blogs.vmware.com/euc/2014/04/vmware-horizon-6-unveiled-today.html" target="_blank" rel="noopener noreferrer">I&#8217;ve been doing</a> <a href="http://searchvirtualdesktop.techtarget.com/news/2240219383/VMwares-Horizon-6-faces-uphill-battle-against-Citrix-XenApp" target="_blank" rel="noopener noreferrer">a lot of work</a> with VMware Horizon 6. I&#8217;m not going to go into details, as <a href="http://www.vmware.com/horizon-event" target="_blank" rel="noopener noreferrer">VMware has done a great job doing that</a>, plus I&#8217;m under a NDA. Suffice to say, details that have been provided suffice if you&#8217;re just looking for info.</p>
<p>In my company sponsored lab environment, I have <a href="http://www.vmware.com/products/horizon-workspace" target="_blank" rel="noopener noreferrer">HWS 1.8</a> deployed in feature/option parity compared to production. Deploying a second instance of HWS (perhaps a pre-release version), is challenging, due to DNS/Reverse DNS Checks that are done.</p>
<p>Anyways &#8211; the reason you&#8217;re probably here is to find out how to systematically modify DNS records, so here ya go!</p>
<p><span id="more-592"></span></p>
<p>To create the A Record Test-A-Record with IP 192.168.100.100 to DNS Server corp-dns-1 in zone corp.internal, use the following command:</p>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">Add-DnsServerResourceRecordA -Name Test-A-Record -IPv4Address 192.168.100.100 -ZoneName corp.internal -ComputerName corp-dns-1</pre><p>To remove the same record, run the following command:</p>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">Remove-DnsServerResourceRecord -ZoneName corp.internal -ComputerName corp-dns-1 -Name Test-A-Record -RRType &quot;A&quot;</pre><p></p>
<p>So, in order to switch between environments, you can use the following snippets:</p>
<p>Switch From Original state to Alternate Environment:</p><pre class="urvanov-syntax-highlighter-plain-tag">Add-DnsServerResourceRecordA -ZoneName corp.internal -ComputerName corp-dns-1 -Name configurator-va -IPv4Address [configurator-ip-address]
Add-DnsServerResourceRecordA -ZoneName corp.internal -ComputerName corp-dns-1 -Name service-va -IPv4Address [service-ip-address]
Add-DnsServerResourceRecordA -ZoneName corp.internal -ComputerName corp-dns-1 -Name connector-va -IPv4Address [connector-ip-address]
Add-DnsServerResourceRecordA -ZoneName corp.internal -ComputerName corp-dns-1 -Name gateway-va -IPv4Address [gateway-ip-address]</pre><p></p>
<p>Revert Back to original state:</p><pre class="urvanov-syntax-highlighter-plain-tag">Remove-DnsServerResourceRecord -ZoneName corp.internal -ComputerName corp-dns-1 -RRType &quot;A&quot; -Name configurator-va
Remove-DnsServerResourceRecord -ZoneName corp.internal -ComputerName corp-dns-1 -RRType &quot;A&quot; -Name service-va
Remove-DnsServerResourceRecord -ZoneName corp.internal -ComputerName corp-dns-1 -RRType &quot;A&quot; -Name connector-va
Remove-DnsServerResourceRecord -ZoneName corp.internal -ComputerName corp-dns-1 -RRType &quot;A&quot; -Name gateway-va

Add-DnsServerResourceRecordA -ZoneName corp.internal -ComputerName corp-dns-1 -Name configurator-va -IPv4Address 10.69.0.110
Add-DnsServerResourceRecordA -ZoneName corp.internal -ComputerName corp-dns-1 -Name service-va -IPv4Address 10.69.0.111
Add-DnsServerResourceRecordA -ZoneName corp.internal -ComputerName corp-dns-1 -Name connector-va -IPv4Address 10.69.0.113
Add-DnsServerResourceRecordA -ZoneName corp.internal -ComputerName corp-dns-1 -Name gateway-va -IPv4Address 10.69.0.117</pre><p></p>
<p>Hope this helps!</p>
<p>Source: <a href="http://technet.microsoft.com/en-us/library/jj649850.aspx" target="_blank" rel="noopener noreferrer">MS Technet</a></p>
<p>The post <a href="/2014/05/20/modify-dns-records-via-powershell/">Modify DNS Records via Powershell</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>/2014/05/20/modify-dns-records-via-powershell/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Exchange 2010 &#8211; Bulk Mailbox Migration In Batches</title>
		<link>/2013/06/27/exchange-2010-bulk-mailbox-migration-in-batches/</link>
					<comments>/2013/06/27/exchange-2010-bulk-mailbox-migration-in-batches/#comments</comments>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Thu, 27 Jun 2013 12:04:37 +0000</pubDate>
				<category><![CDATA[Automation]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Windows Server]]></category>
		<guid isPermaLink="false">http://45.63.13.214/?p=483</guid>

					<description><![CDATA[<p>Update: I created a new version of this script here I recently completed a project that involved migrating Exchange 2010 Mailbox role from a standalone server to a Database Availability Group, or DAG. This was a large project that took a lot of time and planning, and had the potential to be very tedious. Fortunately, [&#8230;]</p>
<p>The post <a href="/2013/06/27/exchange-2010-bulk-mailbox-migration-in-batches/">Exchange 2010 &#8211; Bulk Mailbox Migration In Batches</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Update</strong>:<br />
<strong>I created a new version of this script <a title="Update: Exchange 2010 – Bulk Mailbox Migration In Batches (The Right Way)" href="http://45.63.13.214/?p=539">here</a></strong><br />
I recently completed a project that involved migrating Exchange 2010 Mailbox role from a standalone server to a Database Availability Group, or DAG. This was a large project that took a lot of time and planning, and had the potential to be very tedious. Fortunately, with a little knowhow, you can automate many of the tedious tasks.</p>
<p>I wanted to be in full control of mailbox migration, so my requirements were fairly strict:</p>
<p><span id="more-483"></span></p>
<ul>
<li><span style="line-height: 13px;">Don&#8217;t just submit all mailbox move requests en masse</span></li>
<li>Submit move requests in &#8220;Suspended&#8221; status, so that I can <del>manually</del> release them at a later time</li>
<li>Move smallest mailboxes first, and progress gradually to big mailboxes</li>
<li>Chose best destination mailbox database
<ul>
<li>I define best as the database with the most free space.</li>
</ul>
</li>
<li>Only pull mailboxes from one mailbox database at a time</li>
</ul>
<p>The script below will accomplish these objectives.</p>
<p>Keep in mind, your destination mailbox database is likely named differently than mine &#8211; make sure you change it on line number 21.</p>
<p>I&#8217;ll post the script I use to release these suspended jobs systematically at a later date.</p>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">$BatchSize = 5
$sourceMailboxDatabase = &quot;Mailbox Database 1&quot;

Write-Host &quot;Creating Move Requests and Suspending them&quot;

$allmbx = Get-Mailbox -database $sourceMailboxDatabase |
   Get-MailboxStatistics |
   Sort-Object TotalItemSize |
   Select-Object DisplayName,TotalItemSize
   $AllMBXCount = $allmbx.count

Write-Host &quot;There are&quot; $AllMBXCount &quot;mailboxes to be migrated&quot;
Start-Sleep -Seconds 8

$batch = 1
for ($i=1;$i -le $AllMBXCount;$i++)
{
	if ($i % $BatchSize -eq 0)
	{
		#write-host &quot;Batch $batch&quot; -ForegroundColor 'DarkCyan'
		$result = Get-MailboxDatabase -identity &quot;DAG*&quot; -Status |
                Select-Object name,DatabaseSize,AvailableNewMailboxSpace |
                Sort-Object -Property DatabaseSize
		$bestDatabase = $result[0].name
		$batch++
	}

	Write-Host &quot;New Move - Batch:&quot; $batch &quot;-&quot; $bestDatabase &quot;/&quot; $allmbx[$i].DisplayName -ForegroundColor 'DarkGreen'
	New-MoveRequest -TargetDatabase $bestDatabase -Suspend -Identity $allmbx[$i].DisplayName -BatchName &quot;Batch $batch&quot; | out-null

}</pre><p></p>
<p>The post <a href="/2013/06/27/exchange-2010-bulk-mailbox-migration-in-batches/">Exchange 2010 &#8211; Bulk Mailbox Migration In Batches</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>/2013/06/27/exchange-2010-bulk-mailbox-migration-in-batches/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Run As Different User (All the time, without holding shift!)</title>
		<link>/2013/02/12/run-as-different-user-all-the-time-without-holding-shift/</link>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Tue, 12 Feb 2013 04:17:19 +0000</pubDate>
				<category><![CDATA[Automation]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows Server]]></category>
		<guid isPermaLink="false">http://45.63.13.214/?p=324</guid>

					<description><![CDATA[<p>The title of this post has bothered me since&#8230; forever. I really don&#8217;t like to take extra steps for things I do on a regular basis&#8230; Opening AD Users and Computers is something that I open on a pretty regular basis, but I use this method on several different utilities. In order to do this, you&#8217;ll [&#8230;]</p>
<p>The post <a href="/2013/02/12/run-as-different-user-all-the-time-without-holding-shift/">Run As Different User (All the time, without holding shift!)</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The title of this post has bothered me since&#8230; forever. I really don&#8217;t like to take extra steps for things I do on a regular basis&#8230;</p>
<p><span id="more-324"></span></p>
<p>Opening AD Users and Computers is something that I open on a pretty regular basis, but I use this method on several different utilities.</p>
<p>In order to do this, you&#8217;ll have to modify the target field in the shortcut of your program to include the <a href="http://technet.microsoft.com/en-us/library/bb490994.aspx">runas</a> command.</p>
<p>Example: Active Directory Users and Computers:</p>
<p>Original:    %SystemRoot%\system32\dsa.msc</p>
<p>Different User:    C:\Windows\System32\runas.exe /user:[domain]\user &#8220;mmc %windir%\system32\dsa.msc&#8221;</p>
<p>The post <a href="/2013/02/12/run-as-different-user-all-the-time-without-holding-shift/">Run As Different User (All the time, without holding shift!)</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
