<?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>Michael Phillips Blog</title>
	<atom:link href="http://nukeitmike.com/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://nukeitmike.com/blog</link>
	<description>My place to speak about things</description>
	<lastBuildDate>Mon, 06 May 2013 19:52:13 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Error (415) adding a host to SCVMM 2012 sp1</title>
		<link>http://nukeitmike.com/blog/2013/05/06/error-415-adding-a-host-to-scvmm-2012-sp1/</link>
		<comments>http://nukeitmike.com/blog/2013/05/06/error-415-adding-a-host-to-scvmm-2012-sp1/#comments</comments>
		<pubDate>Mon, 06 May 2013 19:52:13 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[SCVMM]]></category>
		<category><![CDATA[System Center]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[VMM]]></category>

		<guid isPermaLink="false">http://nukeitmike.com/blog/?p=317</guid>
		<description><![CDATA[I kept having errors adding hosts to a VMM server, even though all of the prereqs were met.&#160;&#160; I received the following errors every time I tried to add the hosts: Error (415) Agent installation failed copying C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\agents\I386\3.1.6011.0\msiInstaller.exe to \\&#60;hostname&#62;\ADMIN$\msiInstaller.exe. The specified network name is no longer available Recommended [...]]]></description>
				<content:encoded><![CDATA[<p>I kept having errors adding hosts to a VMM server, even though all of the prereqs were met.&#160;&#160; </p>
<p>I received the following errors every time I tried to add the hosts:</p>
<blockquote><p>Error (415)      <br />Agent installation failed copying C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\agents\I386\3.1.6011.0\msiInstaller.exe to \\&lt;hostname&gt;\ADMIN$\msiInstaller.exe.       <br />The specified network name is no longer available </p>
<p>Recommended Action      <br />1. Ensure &lt;Hostname.FQDN&gt; is online and not blocked by a firewall.       <br />2. Ensure that file and printer sharing is enabled on &lt;Hostname.FQDN&gt; and it not blocked by a firewall.       <br />3. Ensure that there is sufficient free space on the system volume.       <br />4. Verify that the ADMIN$ share on &lt;Hostname.FQDN&gt;exists. If the ADMIN$ share does not exist, reboot &lt;Hostname.FQDN&gt; and then try the operation again. </p>
</blockquote>
<p><font color="#777777"></font></p>
<blockquote><p>Warning (10444)      <br />The VMM management server was unable to impersonate the supplied credentials. </p>
<p>Recommended Action      <br />To add a host in a disjointed domain namespace, ensure that the credentials are valid and of a domain account. In addition, the SCVMMService must run as the local system account or a domain account with sufficient privileges to be able to impersonate other users. </p>
</blockquote>
<p>This took me much longer than the 5 minutes it should have taken to figure out.&#160; </p>
<p>Basically, we have two links to the remote hosts.&#160; Traffic to that remote site is routed differently depending on the which subnet it is on.&#160; Also, we have a VLAN that is specifically set for switch management.&#160; Once I moved the VMM server to a VLAN that was NOT restricted, the hosts added just fine.</p>
<p>If that isn’t your issue, but you get the Error (415) above, there is a knowledge base article that says you may have to enable the fileserver role first on a 2012 host.</p>
]]></content:encoded>
			<wfw:commentRss>http://nukeitmike.com/blog/2013/05/06/error-415-adding-a-host-to-scvmm-2012-sp1//feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using SCOJobRunner</title>
		<link>http://nukeitmike.com/blog/2013/03/06/using-scojobrunner/</link>
		<comments>http://nukeitmike.com/blog/2013/03/06/using-scojobrunner/#comments</comments>
		<pubDate>Wed, 06 Mar 2013 17:00:34 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Orchestrator]]></category>
		<category><![CDATA[System Center]]></category>
		<category><![CDATA[Automation]]></category>

		<guid isPermaLink="false">http://nukeitmike.com/blog/?p=315</guid>
		<description><![CDATA[We have started using System Center Orchestrator (2012 SP1) to do some automation.&#160; Most of what we have done so far could be done outside of Orchestrator pretty easily.&#160; Having it in Orchestrator makes it easier to keep track of all the automated tasks that we have.&#160; ( A central repository in theory.) I have [...]]]></description>
				<content:encoded><![CDATA[<p>We have started using System Center Orchestrator (2012 SP1) to do some automation.&#160; Most of what we have done so far could be done outside of Orchestrator pretty easily.&#160; Having it in Orchestrator makes it easier to keep track of all the automated tasks that we have.&#160; ( A central repository in theory.)</p>
<p>I have had a few different issues so far with the way that Orchestrator works.&#160; It seems there is a common issue of Runbooks not showing up in the web console.&#160; This isn’t hard to correct is seems, but it is annoying that they don’t automatically show up.</p>
<p>The way to get them to show up seems to be to clear the AuthorizationCache: </p>
<blockquote><p>Hi, by default the orchestrator console refresh every 10 minutes. You could try update your AuthorizationCache, that is done by default every 10 minutes. If you run</p>
<p>TRUNCATE TABLE [Microsoft.SystemCenter.Orchestrator.Internal].AuthorizationCache in the Orchestrator database, do they show up direct then? Make sure you have a DB backup Before you do anything in the database.</p>
</blockquote>
<p><a title="http://social.technet.microsoft.com/Forums/sv/scogeneral/thread/3a4f49f1-b282-465c-84aa-e84335c4a7f9" href="http://social.technet.microsoft.com/Forums/sv/scogeneral/thread/3a4f49f1-b282-465c-84aa-e84335c4a7f9">http://social.technet.microsoft.com/Forums/sv/scogeneral/thread/3a4f49f1-b282-465c-84aa-e84335c4a7f9</a></p>
<p>Once they show up in the web console, you can use SCOJobRunner to call the Runbook.&#160; That utility can be found here: <a title="http://blogs.technet.com/b/orchestrator/archive/2012/05/15/cool-tool-new-command-line-utility-to-start-a-runbook.aspx" href="http://blogs.technet.com/b/orchestrator/archive/2012/05/15/cool-tool-new-command-line-utility-to-start-a-runbook.aspx">http://blogs.technet.com/b/orchestrator/archive/2012/05/15/cool-tool-new-command-line-utility-to-start-a-runbook.aspx</a></p>
<p>Once you have that, you can use Task Scheduler to call the Runbook with SCOJobRunner.&#160; The one thing that is kind of un-obvious is finding the ID.&#160; There are a couple of ways, but here is a simple one:</p>
<blockquote><p>An easy trick to getting the runbook ID is to go to the Orchestrator web console and click on the runbook itself in the left hand pane.&#160; Within the URL you will find the runbook ID.</p>
<p>Example: <a href="http://server:82/#/RunbooksPage$FolderId=cdafbfdc-363f-49c4-81a0-62a18236a5ce&amp;RunbookId=e46304a1-f900-4665-b0bc-ea0ad6c9f86e&amp;RunbookInstanceId=&amp;TabId=1&amp;Filter">http://server:82/#/RunbooksPage$FolderId=cdafbfdc-363f-49c4-81a0-62a18236a5ce&amp;<strong>RunbookId=e46304a1-f900-4665-b0bc-ea0ad6c9f86e</strong>&amp;RunbookInstanceId=&amp;TabId=1&amp;Filter</a></p>
<p>Vaughn</p>
</blockquote>
<p><a title="http://social.technet.microsoft.com/Forums/ko/scogeneral/thread/24c13d8c-b6d6-45c5-87c3-a68801a9005b" href="http://social.technet.microsoft.com/Forums/ko/scogeneral/thread/24c13d8c-b6d6-45c5-87c3-a68801a9005b">http://social.technet.microsoft.com/Forums/ko/scogeneral/thread/24c13d8c-b6d6-45c5-87c3-a68801a9005b</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nukeitmike.com/blog/2013/03/06/using-scojobrunner//feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Which time wasting manager type are you?</title>
		<link>http://nukeitmike.com/blog/2013/01/23/which-time-wasting-manager-type-are-you/</link>
		<comments>http://nukeitmike.com/blog/2013/01/23/which-time-wasting-manager-type-are-you/#comments</comments>
		<pubDate>Wed, 23 Jan 2013 20:37:10 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Managment]]></category>
		<category><![CDATA[management]]></category>
		<category><![CDATA[reading]]></category>

		<guid isPermaLink="false">http://nukeitmike.com/blog/?p=313</guid>
		<description><![CDATA[I am the “Firefighter”… http://www.inc.com/jessica-stillman/the-4-types-of-time-wasting-bosses.html?nav=next]]></description>
				<content:encoded><![CDATA[<p>I am the “Firefighter”…</p>
<p><a title="http://www.inc.com/jessica-stillman/the-4-types-of-time-wasting-bosses.html?nav=next" href="http://www.inc.com/jessica-stillman/the-4-types-of-time-wasting-bosses.html?nav=next">http://www.inc.com/jessica-stillman/the-4-types-of-time-wasting-bosses.html?nav=next</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nukeitmike.com/blog/2013/01/23/which-time-wasting-manager-type-are-you//feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Script to fix &#8220;unknown&#8221; power state in Xen Desktop</title>
		<link>http://nukeitmike.com/blog/2012/08/27/script-to-fix-unknown-power-state-in-xen-desktop/</link>
		<comments>http://nukeitmike.com/blog/2012/08/27/script-to-fix-unknown-power-state-in-xen-desktop/#comments</comments>
		<pubDate>Mon, 27 Aug 2012 14:02:54 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Citrix]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[SCVMM]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[VMM]]></category>
		<category><![CDATA[XenDesktop]]></category>

		<guid isPermaLink="false">http://nukeitmike.com/blog/?p=308</guid>
		<description><![CDATA[&#160; After an unpretty Hyper-V cluster failover, several machines in our Xen Desktop deployment were showing an “unknown” power state.&#160; After a call to Citrix, they gave my coworker a few commands to use to fix it. This has to be done from the Xen Desktop controller: Load the Citrix PSSnapIn: Add-PSSnapIn Citrix.* This gets [...]]]></description>
				<content:encoded><![CDATA[<p>&#160;</p>
<p>After an unpretty Hyper-V cluster failover, several machines in our Xen Desktop deployment were showing an “unknown” power state.&#160; After a call to Citrix, they gave my coworker a few commands to use to fix it. </p>
<p>This has to be done from the Xen Desktop controller:</p>
<p>Load the Citrix PSSnapIn:</p>
<blockquote><p>Add-PSSnapIn Citrix.*</p>
</blockquote>
<p>This gets information from VMM about all of the VMs in VMM:</p>
<blockquote><p>Cd XDHyp:\     <br />Get-ChildItem -recurse | Out-File –Filepath c:\xdhyp.txt</p>
</blockquote>
<p>This command gets all of the machines that are PowerState Unknown in Xen Destkop:</p>
<blockquote><p>Get-BrokerMachine -PowerState Unknown</p>
</blockquote>
<p>The problem is that the “Id” from the first command doesn’t match the “HostedMachineId” from the second command.&#160; To fix this, you run this command with the correct domain and machine name from the second command and the&#160; “Id” from the first command:</p>
<blockquote><p>Set-BrokerMachine -MachineName &lt;MyDomain\MyMachine&gt; -HostedMachineId &lt;Id&gt;</p>
</blockquote>
<p>You have a lot of machines where this is a problem, it could take a while to go through and match these up.&#160; To save some time with the 75 or so we had to do, created this script to do it:</p>
<blockquote><p>#Add-PSSnapIn Citrix.*     <br />#$ErrorActionPreference=Continue</p>
<p>$x = 0     <br />$UnknownList = Get-BrokerMachine -PowerState Unknown      <br /># HostedMachineId&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; : 51c7f7a2-64bf-481a-86fd-49b9a3fbf993      <br /># MachineName&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; : Domain\MachineName      <br />foreach ($_ in $UnknownList)      <br />&#160;&#160;&#160; {      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $UnknownMachine = $_      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; Write-Host $_.MachineName      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $UnknownMachineName = $_.MachineName      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; #trim the domain to search      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $SearchName = $UnknownMachineName.TrimStart(&quot;&lt;domain&gt;\&quot;)      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; Write-Host &quot;Search Name is $SearchName&quot;      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $Group =&#160; &quot;XDHyp:\Connections\&lt;VMMSERVER&gt;\&lt;Vmmhostgroupname&gt;.hostgroup\&lt;clustername&gt;.cluster&quot;      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $GroupList = Get-ChildItem $VDCB | Where-Object {$_.Name -match $SearchName}       <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; # Name&#160;&#160;&#160; : MachineName      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; # Id&#160;&#160;&#160; : 8d9d4e54-d374-406b-b4e3-7dcd2f47e7a9      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; foreach ($_ in $GroupList)      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $x ++      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Write-Host $_.Name      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; $HostedMachineId = $_.Id      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Write-Host $HostedMachineId      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; Write-Host $x      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; set-BrokerMachine -MachineName $UnknownMachineName -HostedMachineId $HostedMachineId      <br />&#160;&#160;&#160; }</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://nukeitmike.com/blog/2012/08/27/script-to-fix-unknown-power-state-in-xen-desktop//feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Import .msg files into Outlook using Powershell</title>
		<link>http://nukeitmike.com/blog/2012/07/17/import-msg-files-into-outlook-using-powershell/</link>
		<comments>http://nukeitmike.com/blog/2012/07/17/import-msg-files-into-outlook-using-powershell/#comments</comments>
		<pubDate>Tue, 17 Jul 2012 11:55:47 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Scripting; Powershell; Outlook;]]></category>

		<guid isPermaLink="false">http://nukeitmike.com/blog/?p=305</guid>
		<description><![CDATA[We have some old email database backup files that we extracted messages from.&#160; The purpose of this was to be able to expire the backups and do away with them, while keeping the messages in our Journal for e-discovery purposes.&#160; There are better ways to do what we did, that the way we did this, [...]]]></description>
				<content:encoded><![CDATA[<p>We have some old email database backup files that we extracted messages from.&#160; The purpose of this was to be able to expire the backups and do away with them, while keeping the messages in our Journal for e-discovery purposes.&#160; There are better ways to do what we did, that the way we did this, but it has been a process of learning, and one of the things I was able to learn is how to import .msg files into Outlook.</p>
<p>You have to have a machine that has Outlook installed.&#160; Outlook 2007 is the version I used. This would work with Outlook 2010, but you will get a popup about allowing scripting access to Outlook.</p>
<p>First, create the connection to Outlook:</p>
<blockquote><p>$outlook = New-Object -comobject outlook.application     <br />$namespace = $outlook.GetNamespace(&quot;MAPI&quot;)</p>
</blockquote>
<p>Then connect to the folder, such as the Inbox:</p>
<blockquote><p>$objInbox&#160; = $outlook.Session.GetDefaultFolder(6)</p>
</blockquote>
<p>Other examples:   </p>
<blockquote><p>$olAppointmentItem = 1     <br />$olFolderDeletedItems = 3      <br />$olFolderOutbox = 4      <br />$olFolderSentMail = 5      <br />$olFolderInbox = 6      <br />$olFolderCalendar = 9      <br />$olFolderContacts = 10      <br />$olFolderJournal = 11      <br />$olFolderNotes = 12      <br />$olFolderTasks = 13      <br />$olFolderDrafts = 16</p>
<p>$objDraftFolder = $outlook.Session.GetDefaultFolder($olFolderDrafts)     <br />$objDeletedFolder = $outlook.Session.GetDefaultFolder($olFolderDeletedItems)      </p>
</blockquote>
<p>I like to know how many messages are in the folder before I begin the import:</p>
<blockquote><p>$colItems = $objDraftFolder.Items&#160; #this gets the items in the folder     <br />$FolderItemCount = $colItems.Count #this counts them      <br />Write-Host $FolderItemCount</p>
</blockquote>
<p>Now you have to open the item and then move it to the folder you want to save it in:</p>
<blockquote><p>$olMailItem = $NameSpace.OpenSharedItem($MailItem)     <br />$olMailItem.Move( $objDraftFolder )&#160;&#160;&#160; </p>
</blockquote>
<p>If you put the above lines in, you will get a lot of data on the screen about the email.&#160; To prevent that while still accomplishing the goal of moving the message to Outlook, simply put [void] in front like this:</p>
<blockquote><p>[void]$olMailItem.Move( $objDraftFolder ) </p>
</blockquote>
<p>I am working with around a million files, so this was a rather involved script to create.&#160; Here is the script I used:</p>
<p>&#160;</p>
<blockquote><p>$olMailItemPath = &quot;F:\Sorted\MoveToOutlook\ByThousands\*&quot;     <br />$AfterTime = &quot;12/21/2007&quot;      <br />$olAppointmentItem = 1      <br />$olFolderDeletedItems = 3      <br />$olFolderOutbox = 4      <br />$olFolderSentMail = 5      <br />$olFolderInbox = 6      <br />$olFolderCalendar = 9      <br />$olFolderContacts = 10      <br />$olFolderJournal = 11      <br />$olFolderNotes = 12      <br />$olFolderTasks = 13      <br />$olFolderDrafts = 16</p>
<p>Write-Host $olMailItemPath      <br />$x=0      <br />$SourceFolders = Get-Item $olMailItemPath      <br />echo $SourceFolders.count      <br />$outlook = New-Object -comobject outlook.application      <br />$namespace = $outlook.GetNamespace(&quot;MAPI&quot;)</p>
<p>foreach ($_ in $SourceFolders)     <br />&#160;&#160;&#160; {      <br />&#160;&#160;&#160; $SourceFolder = $_      <br />&#160;&#160;&#160; Write-Host &quot;SourceFolder is $SourceFolder&quot;      <br />&#160;&#160;&#160; $SourceFiles = Get-ChildItem -path $SourceFolder -recurse -include *.msg&#160;&#160;&#160; <br />&#160;&#160;&#160; $SFCount = $SourceFiles.count      <br />&#160;&#160;&#160; Write-Host &quot;Source File Count is $SFCount&quot;      <br />&#160;&#160;&#160; $objDraftFolder = $outlook.Session.GetDefaultFolder($olFolderDrafts)      <br />&#160;&#160;&#160; $objDeletedFolder = $outlook.Session.GetDefaultFolder($olFolderDeletedItems)      <br />&#160;&#160;&#160; $colItems = $objDraftFolder.Items       <br />&#160;&#160;&#160; $FolderItemCount = $colItems.Count      <br />&#160;&#160;&#160; IF ($FolderItemCount -ge 10000)      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Write-Host &quot;Draft Folder Item Count is $FolderItemCount&quot;      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Write-Host &quot;Sleeping&#8230;&quot;      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; sleep -s 300      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }      <br />&#160;&#160;&#160; foreach ($_ in $SourceFiles)      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; {      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $x ++      <br />#&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Write-Host $x      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $MailItem = $_      <br />#&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Write-Host &quot;Mail Item is $MailItem&quot;      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $olMailItem = $NameSpace.OpenSharedItem($MailItem)      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; $DateRecieved = $olMailItem.ReceivedTime      <br />#&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Write-Host &quot;Date Recieved is $DateRecieved&quot;      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; If ($DateRecieved -le $AfterTime)      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {      <br />#&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Write-Host &quot;Bad Date $DateRecieved&quot;      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [void]$olMailItem.Move( $objDeletedFolder )      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; else      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; {&#160;&#160;&#160; <br />#&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Write-Host &quot;Moving $MailItem&quot;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [void]$olMailItem.Move( $objDraftFolder )&#160;&#160;&#160;&#160;&#160;&#160;&#160; <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; }      <br />#&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; Write-Host &quot;Removing $MailItem&quot;      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; Remove-Item $MailItem      <br />&#160;&#160;&#160;&#160;&#160;&#160;&#160; }      <br />&#160;&#160;&#160; }</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://nukeitmike.com/blog/2012/07/17/import-msg-files-into-outlook-using-powershell//feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Citrix Worker Groups</title>
		<link>http://nukeitmike.com/blog/2012/02/03/citrix-worker-groups/</link>
		<comments>http://nukeitmike.com/blog/2012/02/03/citrix-worker-groups/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 22:55:29 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Citrix]]></category>
		<category><![CDATA[Citrix;Worker Groups;PVS;XenApp]]></category>

		<guid isPermaLink="false">http://nukeitmike.com/blog/?p=302</guid>
		<description><![CDATA[Lately, we have been deploying XenApp servers using Citrix Provisioning Services.&#160; This is a great tool, that we have only just started using.&#160; In our current process, we are creating a group of machines using PVS.&#160; When they come up, the join the farm and by virtue of the AD OU they are in, they [...]]]></description>
				<content:encoded><![CDATA[<p>Lately, we have been deploying XenApp servers using Citrix Provisioning Services.&#160; This is a great tool, that we have only just started using.&#160; </p>
<p>In our current process, we are creating a group of machines using PVS.&#160; When they come up, the join the farm and by virtue of the AD OU they are in, they become members of a worker group.&#160; We are also creating machines for test purposes that we want to get the same Group Policies, but we don’t want them to be in the worker group by default.&#160; We deploy the production apps to the Worker Groups, but not to individual machines.&#160; If the test machines are part of the Worker Groups, then the apps are also published to the test machines.&#160; </p>
<p>To prevent this, we created a sub OU to put the particular test machines in, so they would get the Group Policies, but not have the apps automatically published to them.&#160; Except that the machines wouldn’t come out of the Worker Group…</p>
<p>Turns out, if the machines joined the farm in the OU that the Worker Group is looking at, they will remain in the worker group.&#160; In order to correct this, you simply remove the offending machines from the farm.&#160; When they come back up and join the farm again, they are no longer part of the worker group.&#160; (As long as the machine accounts aren’t in the target OU.)</p>
]]></content:encoded>
			<wfw:commentRss>http://nukeitmike.com/blog/2012/02/03/citrix-worker-groups//feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Launch a PowerShell script minimized</title>
		<link>http://nukeitmike.com/blog/2011/12/28/launch-a-powershell-script-minimized/</link>
		<comments>http://nukeitmike.com/blog/2011/12/28/launch-a-powershell-script-minimized/#comments</comments>
		<pubDate>Wed, 28 Dec 2011 20:45:55 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Citrix]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://nukeitmike.com/blog/?p=299</guid>
		<description><![CDATA[We use Citrix for a lot of applications, and I have a need to launch Outlook, then an application, and then close Outlook when that application is closed by the user.&#160; This seems like a pretty simple thing to do (and I suppose it is, sort of) but it took me a while to figure [...]]]></description>
				<content:encoded><![CDATA[<p>We use Citrix for a lot of applications, and I have a need to launch Outlook, then an application, and then close Outlook when that application is closed by the user.&#160; This seems like a pretty simple thing to do (and I suppose it is, sort of) but it took me a while to figure it out.&#160; </p>
<p>One piece of the puzzle is that PowerShell remains open if you do it the way I have it setup right now.&#160; If the user closes that PowerShell window, then the monitor process will not close Outlook when the user exits the LOB app.&#160; In order to mitigate this issue somewhat, I wanted to start PowerShell minimized.&#160; The way to do this is:</p>
<blockquote><p>powershell -WindowStyle Minimized .\ScriptToRun.ps1</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://nukeitmike.com/blog/2011/12/28/launch-a-powershell-script-minimized//feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Windows Server 8</title>
		<link>http://nukeitmike.com/blog/2011/09/15/windows-server-8/</link>
		<comments>http://nukeitmike.com/blog/2011/09/15/windows-server-8/#comments</comments>
		<pubDate>Thu, 15 Sep 2011 16:38:55 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[OS]]></category>

		<guid isPermaLink="false">http://nukeitmike.com/blog/2011/09/15/windows-server-8/</guid>
		<description><![CDATA[It seems like Windows Server 8 has a lot to offer.&#160; Hope it comes out sooner rather than later… Server 8 will unleash a massive tsunami of new features specifically targeted at building and managing infrastructure for large multi-tenant Clouds, drastically increased scalability and reliability features in the areas of Virtualization, Networking, Clustering and Storage, [...]]]></description>
				<content:encoded><![CDATA[<p>It seems like Windows Server 8 has a lot to offer.&#160; Hope it comes out sooner rather than later…</p>
<blockquote><p>Server 8 will unleash a massive tsunami of new features specifically targeted at building and managing infrastructure for large multi-tenant Clouds, drastically increased scalability and reliability features in the areas of Virtualization, Networking, Clustering and Storage, as well as significant security improvements and enhancements.</p>
</blockquote>
<p><a title="http://www.zdnet.com/blog/perlow/windows-server-8-the-ultimate-cloud-os/18594" href="http://www.zdnet.com/blog/perlow/windows-server-8-the-ultimate-cloud-os/18594">http://www.zdnet.com/blog/perlow/windows-server-8-the-ultimate-cloud-os/18594</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nukeitmike.com/blog/2011/09/15/windows-server-8//feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restoring Deleted Items in SharePoint</title>
		<link>http://nukeitmike.com/blog/2011/07/21/restoring-deleted-items-in-sharepoint/</link>
		<comments>http://nukeitmike.com/blog/2011/07/21/restoring-deleted-items-in-sharepoint/#comments</comments>
		<pubDate>Thu, 21 Jul 2011 19:20:24 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Recycle Bin]]></category>
		<category><![CDATA[Restore]]></category>

		<guid isPermaLink="false">http://nukeitmike.com/blog/2011/07/21/restoring-deleted-items-in-sharepoint/</guid>
		<description><![CDATA[We are using SharePoint Document Libraries for some projects now.&#160; The users are mapping the Document Library as a mapped drive.&#160; Users are also creating and deleting files.&#160; For the Projects site, the recycle bin settings are default: Items in the Recycle Bin remain there until you decide to permanently delete them from your Web [...]]]></description>
				<content:encoded><![CDATA[<p>We are using SharePoint Document Libraries for some projects now.&#160; The users are mapping the Document Library as a mapped drive.&#160; Users are also creating and deleting files.&#160; For the Projects site, the recycle bin settings are default:<br />
<blockquote>
<p>Items in the Recycle Bin remain there until you decide to permanently delete them from your Web site, or until the items are permanently deleted after a set number of days, which is based on a schedule defined in Central Administration. When you delete an item from a Web site, the item is sent to the site&#8217;s Recycle Bin. If you click <b>Recycle Bin</b> on the Quick Launch, you can see all of the items that you’ve deleted from your site. You can either restore or delete the item from the Recycle Bin. When you delete an item from the Recycle Bin, the item is sent to the Site Collection Recycle Bin. </p>
<blockquote><p><img title="Recycle Bins" border="0" alt="Recycle Bins" src="http://officeimg.vo.msecnd.net/en-us/files/187/443/ZA010177325.gif" /></p>
</blockquote>
</blockquote>
<blockquote><p><img title="Callout 1" border="0" alt="Callout 1" src="http://officeimg.vo.msecnd.net/en-us/files/887/503/ZA001093948.gif" /> End-user deletes the Agenda document from a document library. </p>
<p><img title="Callout 2" border="0" alt="Callout 2" src="http://officeimg.vo.msecnd.net/en-us/files/010/917/ZA001093949.gif" /> The document is moved to the Recycle Bin for the site, where people can restore it or delete it. </p>
<p><img title="Callout 3" border="0" alt="Callout 3" src="http://officeimg.vo.msecnd.net/en-us/files/286/739/ZA001093950.gif" /> If the file is deleted from the site Recycle Bin, it is sent to the Site Collection Recycle Bin, where an administrator can restore it or delete it permanently. </p>
</blockquote>
<p>It should be possible to restore user deleted items for up to 30 days.&#160; This requires Site Administrator privileges if it isn’t in the users recycle bin.</p>
<p><a title="http://office.microsoft.com/en-us/windows-sharepoint-services-help/view-restore-or-delete-items-in-the-recycle-bin-of-a-sharepoint-site-HA010021434.aspx" href="http://office.microsoft.com/en-us/windows-sharepoint-services-help/view-restore-or-delete-items-in-the-recycle-bin-of-a-sharepoint-site-HA010021434.aspx">http://office.microsoft.com/en-us/windows-sharepoint-services-help/view-restore-or-delete-items-in-the-recycle-bin-of-a-sharepoint-site-HA010021434.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://nukeitmike.com/blog/2011/07/21/restoring-deleted-items-in-sharepoint//feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unable to login to Citrix server via RDP or ICA</title>
		<link>http://nukeitmike.com/blog/2011/02/04/unable-to-login-to-citrix-server-via-rdp-or-ica/</link>
		<comments>http://nukeitmike.com/blog/2011/02/04/unable-to-login-to-citrix-server-via-rdp-or-ica/#comments</comments>
		<pubDate>Fri, 04 Feb 2011 17:06:49 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Citrix]]></category>
		<category><![CDATA[General Info]]></category>
		<category><![CDATA[Server 2008]]></category>
		<category><![CDATA[RDP]]></category>
		<category><![CDATA[Server 2008 R2]]></category>
		<category><![CDATA[XenApp]]></category>

		<guid isPermaLink="false">http://nukeitmike.com/blog/2011/02/04/unable-to-login-to-citrix-server-via-rdp-or-ica/</guid>
		<description><![CDATA[We have recently set up some new Windows Server 2008 R2/Citrix XenApp 6.0 servers.  For some reason, users could not launch a remote desktop to them even though we (thought) allowed this.  Turns out there is a policy which blocks this by default.  I found the answer here: Re: Unable to login using RDP or [...]]]></description>
				<content:encoded><![CDATA[<p>We have recently set up some new Windows Server 2008 R2/Citrix XenApp 6.0 servers.  For some reason, users could not launch a remote desktop to them even though we (thought) allowed this.  Turns out there is a policy which blocks this by default.  I found the answer here:</p>
<blockquote><p><a name="1448366"></a>Re: Unable to login using RDP or ICA after installing XenApp 6<br />
Posted: Mar 31, 2010 5:27 PM   <a href="http://forums.citrix.com/message.jspa?messageID=1447261#1447261"><img title="in response to: Aref  Mukred" src="http://forums.citrix.com/images/up-10x10.gif" border="0" alt="in response to: Aref  Mukred" width="10" height="10" /></a> in response to: <a href="http://forums.citrix.com/message.jspa?messageID=1447261#1447261">Aref Mukred</a></p>
<p><img title="6 points" src="http://forums.citrix.com/images/answer-correct-24x24.gif" border="0" alt="" /><br />
Correct</p>
<p><a href="http://forums.citrix.com/thread.jspa?threadID=261944&amp;start=15&amp;rate=true"><img src="http://forums.citrix.com/images/vote_thumb.gif" border="0" alt="This message was useful" /></a><br />
4 users found this post useful</p>
<p>Hi Aref -<br />
Can you please try the following ?<br />
1. Open Delivery Services Console<br />
2. Edit the unfiltered user policy | ICA<br />
3. Set the policy for Desktop Launches to Allowed<br />
This policy applies to XenApp 6.0 and Allows or prevents non-administrative users to connect to a desktop session on the server.<br />
When allowed, non-administrative users can connect. By default, non-administrative users cannot connect to desktop sessions.<br />
Thanks<br />
Ramesh</p></blockquote>
<p><a href="http://forums.citrix.com/thread.jspa?threadID=261944&amp;start=15&amp;tstart=0">Citrix Forums : Unable to login using RDP or ICA after &#8230;</a></p>
<p>The answer above will get you there, but as my teachers used to tell me all the time, he needs to “show his work”:</p>
<p><a href="http://nukeitmike.com/blog/wp-content/uploads/2011/02/image.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://nukeitmike.com/blog/wp-content/uploads/2011/02/image_thumb.png" border="0" alt="image" width="218" height="244" /></a></p>
<p><a href="http://nukeitmike.com/blog/wp-content/uploads/2011/02/image1.png"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="image" src="http://nukeitmike.com/blog/wp-content/uploads/2011/02/image_thumb1.png" border="0" alt="image" width="244" height="75" /></a></p>
<p><a href="http://nukeitmike.com/blog/wp-content/uploads/2011/02/image2.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://nukeitmike.com/blog/wp-content/uploads/2011/02/image_thumb2.png" border="0" alt="image" width="244" height="79" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://nukeitmike.com/blog/2011/02/04/unable-to-login-to-citrix-server-via-rdp-or-ica//feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
