<?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>dark outline</title>
	<atom:link href="http://www.dementlieu.com/users/wormy/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.dementlieu.com/users/wormy</link>
	<description>against a grey marble sky</description>
	<lastBuildDate>Wed, 14 Apr 2010 17:20:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>http://blogs.technet.com/activedirectoryua/archive/2009/02/20/alternate-credentials.aspx</title>
		<link>http://www.dementlieu.com/users/wormy/?p=22</link>
		<comments>http://www.dementlieu.com/users/wormy/?p=22#comments</comments>
		<pubDate>Wed, 14 Apr 2010 17:20:39 +0000</pubDate>
		<dc:creator>wormy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.dementlieu.com/users/wormy/?p=22</guid>
		<description><![CDATA[http://blogs.technet.com/activedirectoryua/archive/2009/02/20/alternate-credentials.aspx]]></description>
			<content:encoded><![CDATA[<p>http://blogs.technet.com/activedirectoryua/archive/2009/02/20/alternate-credentials.aspx</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dementlieu.com/users/wormy/?feed=rss2&#038;p=22</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>“Official Practice” in setting up a domain environment</title>
		<link>http://www.dementlieu.com/users/wormy/?p=20</link>
		<comments>http://www.dementlieu.com/users/wormy/?p=20#comments</comments>
		<pubDate>Wed, 14 Apr 2010 17:11:37 +0000</pubDate>
		<dc:creator>wormy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.dementlieu.com/users/wormy/?p=20</guid>
		<description><![CDATA[http://serverfault.com/questions/108202/official-practice-in-setting-up-a-domain-environment]]></description>
			<content:encoded><![CDATA[<p>http://serverfault.com/questions/108202/official-practice-in-setting-up-a-domain-environment</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dementlieu.com/users/wormy/?feed=rss2&#038;p=20</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Active Directory Functional Levels</title>
		<link>http://www.dementlieu.com/users/wormy/?p=15</link>
		<comments>http://www.dementlieu.com/users/wormy/?p=15#comments</comments>
		<pubDate>Wed, 14 Apr 2010 17:10:18 +0000</pubDate>
		<dc:creator>wormy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.dementlieu.com/users/wormy/?p=15</guid>
		<description><![CDATA[http://blogs.technet.com/activedirectoryua/archive/2010/04/02/new-location-for-topic-about-active-directory-functional-levels-and-features.aspx http://technet.microsoft.com/en-us/library/understanding-active-directory-functional-levels(WS.10).aspx http://technet.microsoft.com/en-us/library/cc757019(WS.10).aspx]]></description>
			<content:encoded><![CDATA[<p>http://blogs.technet.com/activedirectoryua/archive/2010/04/02/new-location-for-topic-about-active-directory-functional-levels-and-features.aspx</p>
<p>http://technet.microsoft.com/en-us/library/understanding-active-directory-functional-levels(WS.10).aspx</p>
<p>http://technet.microsoft.com/en-us/library/cc757019(WS.10).aspx</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dementlieu.com/users/wormy/?feed=rss2&#038;p=15</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Where is the guidance for Active Directory in the DMZ?</title>
		<link>http://www.dementlieu.com/users/wormy/?p=13</link>
		<comments>http://www.dementlieu.com/users/wormy/?p=13#comments</comments>
		<pubDate>Wed, 14 Apr 2010 17:09:47 +0000</pubDate>
		<dc:creator>wormy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.dementlieu.com/users/wormy/?p=13</guid>
		<description><![CDATA[http://blogs.technet.com/activedirectoryua/archive/2009/08/19/where-is-the-guidance-for-active-directory-in-the-dmz.aspx http://technet.microsoft.com/en-us/library/dd728034(WS.10).aspx]]></description>
			<content:encoded><![CDATA[<p>http://blogs.technet.com/activedirectoryua/archive/2009/08/19/where-is-the-guidance-for-active-directory-in-the-dmz.aspx</p>
<p>http://technet.microsoft.com/en-us/library/dd728034(WS.10).aspx</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dementlieu.com/users/wormy/?feed=rss2&#038;p=13</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Active Directory Port Requirements</title>
		<link>http://www.dementlieu.com/users/wormy/?p=11</link>
		<comments>http://www.dementlieu.com/users/wormy/?p=11#comments</comments>
		<pubDate>Wed, 14 Apr 2010 17:09:29 +0000</pubDate>
		<dc:creator>wormy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.dementlieu.com/users/wormy/?p=11</guid>
		<description><![CDATA[http://blogs.technet.com/activedirectoryua/archive/2009/06/24/active-directory-port-requirements.aspx http://technet.microsoft.com/en-us/library/dd772723%28WS.10%29.aspx]]></description>
			<content:encoded><![CDATA[<p>http://blogs.technet.com/activedirectoryua/archive/2009/06/24/active-directory-port-requirements.aspx</p>
<p>http://technet.microsoft.com/en-us/library/dd772723%28WS.10%29.aspx</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dementlieu.com/users/wormy/?feed=rss2&#038;p=11</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Function Code to Convert Bytes to KB/MB/GB/TB</title>
		<link>http://www.dementlieu.com/users/wormy/?p=9</link>
		<comments>http://www.dementlieu.com/users/wormy/?p=9#comments</comments>
		<pubDate>Sun, 31 Jan 2010 18:57:30 +0000</pubDate>
		<dc:creator>wormy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.dementlieu.com/users/wormy/?p=9</guid>
		<description><![CDATA[http://sogeeky.blogspot.com/2007/04/vbscript-function-code-to-convert-bytes.html When querying for disk space sizes using WMI, it returns the numbers in bytes. These large numbers in bytes do not make much sense until they are converted into Kilobytes (KB), Megabyte (MB), Gigabyte (GB), or Terabyte (TB) and so on. Quite frequently I need to convert these sizes in bytes to KB/MB/GB/TB for [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://sogeeky.blogspot.com/2007/04/vbscript-function-code-to-convert-bytes.html">http://sogeeky.blogspot.com/2007/04/vbscript-function-code-to-convert-bytes.html</a></p>
<p>When querying for disk space sizes using WMI, it returns the numbers in bytes. These large numbers in bytes do not make much sense until they are converted into Kilobytes (KB), Megabyte (MB), Gigabyte (GB), or Terabyte (TB) and so on. Quite frequently I need to convert these sizes in bytes to KB/MB/GB/TB for better interpretation. I therefore created a quick VBScript function which I call inside VBScript code whenever I need to convert numbers in bytes to KB/MB/GB/TB.</p>
<p><code>Function ConvertSize(Size)<br />
   Do While InStr(Size,",") 'Remove commas from size<br />
      CommaLocate = InStr(Size,",")<br />
      Size = Mid(Size,1,CommaLocate - 1) &#038; _<br />
      Mid(Size,CommaLocate + 1,Len(Size) - CommaLocate)<br />
   Loop</p>
<p>   Suffix = " Bytes"<br />
   If Size >= 1024 Then suffix = " KB"<br />
   If Size >= 1048576 Then suffix = " MB"<br />
   If Size >= 1073741824 Then suffix = " GB"<br />
   If Size >= 1099511627776 Then suffix = " TB"</p>
<p>   Select Case Suffix<br />
      Case " KB" Size = Round(Size / 1024, 1)<br />
      Case " MB" Size = Round(Size / 1048576, 1)<br />
      Case " GB" Size = Round(Size / 1073741824, 1)<br />
      Case " TB" Size = Round(Size / 1099511627776, 1)<br />
   End Select</p>
<p>   ConvertSize = Size &#038; Suffix<br />
End Function</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dementlieu.com/users/wormy/?feed=rss2&#038;p=9</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>qChange.vbs</title>
		<link>http://www.dementlieu.com/users/wormy/?p=3</link>
		<comments>http://www.dementlieu.com/users/wormy/?p=3#comments</comments>
		<pubDate>Wed, 27 Jan 2010 22:51:06 +0000</pubDate>
		<dc:creator>wormy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.dementlieu.com/users/wormy/?p=3</guid>
		<description><![CDATA['Qchange.vbs 'Syntax: '   cscript qchange.vbs changes.txt '   File format: \\ServerName\Source_Printer;\\New_server\Source_printer On Error Resume Next Const VERBOSE = "N"   'Display progress (Y or N) Const Title = "Print Connection Migrator" Const ForReading = 1 Dim strDefaultPrinter Dim InstalledPrinters 'Array of printer names Dim Textfile          'File with print Q names Dim OldPrintQueues()  'Dynamic array to store old [...]]]></description>
			<content:encoded><![CDATA[<p><code>'Qchange.vbs</p>
<p>'Syntax:<br />
'   cscript qchange.vbs changes.txt<br />
'   File format: \\ServerName\Source_Printer;\\New_server\Source_printer</p>
<p>On Error Resume Next</p>
<p>Const VERBOSE = "N"   'Display progress (Y or N)<br />
Const Title = "Print Connection Migrator"<br />
Const ForReading = 1</p>
<p>Dim strDefaultPrinter<br />
Dim InstalledPrinters 'Array of printer names<br />
Dim Textfile          'File with print Q names<br />
Dim OldPrintQueues()  'Dynamic array to store old print queue names, from the text file<br />
Dim NewPrintQueues()  'Dynamic array to store new print queue names, from the text file<br />
Dim fso         'File System Object<br />
Dim objTextFile 'Text file object<br />
Dim strNextLine 'Line of the text file<br />
Dim i<br />
Dim WshNetwork</p>
<p>Set WshNetwork = CreateObject("WScript.Network")</p>
<p>' 1. - Get the command line args        ###</p>
<p>SET Parameters = Wscript.arguments</p>
<p>'If no command line arguments provided, quit<br />
If Parameters.Count = 0 Then<br />
WScript.Quit(1)<br />
Else<br />
Textfile = Parameters.item(0)<br />
End If</p>
<p>If Textfile = "" or Not Right(TextFile,4) = ".txt" or Not FileExist(Textfile) Then<br />
Error=MsgBox("No valid input file provided. Stopping the script now.",vbokonly, Title)<br />
WScript.Quit(1)<br />
End If</p>
<p>If VERBOSE = "Y" Then Wscript.Echo "Reading input file"</p>
<p>' 2. Read the text file and import it in a Array    ###</p>
<p>Set objFSO = CreateObject("Scripting.FileSystemObject")<br />
Set objTextFile = objFSO.OpenTextFile (TextFile, ForReading)</p>
<p>i=-1<br />
While not objTextFile.AtEndOfStream<br />
i = i+1<br />
Redim Preserve OldPrintQueues(i)<br />
ReDim Preserve NewPrintQueues(i)<br />
strLine = objTextFile.Readline<br />
'Do not import the comment lines<br />
If Left(strLine,2) = "\\" Then<br />
OldPrintQueues(i) = Left(strLine,InStr(strline,";")-1)<br />
If VERBOSE = "Y" Then Wscript.Echo " old Q is: " &amp; OldPrintQueues(i)<br />
NewPrintQueues(i) = Mid(strline,InStr(strline,";")+1,Len(strline))<br />
If VERBOSE = "Y" Then Wscript.Echo " new Q is: " &amp; NewPrintQueues(i)<br />
End If<br />
Wend</p>
<p>objTextFile.Close</p>
<p>' 3. Store the name of the default Printer        ###</p>
<p>strDefaultPrinter = DefaultPrinter<br />
If VERBOSE = "Y" Then Wscript.Echo " Default is: " &amp; strDefaultPrinter</p>
<p>' 4. WMI query for current printer connections    ###</p>
<p>strComputer = "."<br />
Set objWMIService = GetObject("winmgmts:" _<br />
&amp; "{impersonationLevel=impersonate}!\\" &amp; strComputer &amp; "\root\cimv2")<br />
Set colInstalledPrinters = objWMIService.ExecQuery _<br />
("Select * from Win32_Printer")</p>
<p>' 5. Main Loop through printer collection         ###</p>
<p>For Each objPrinter in colInstalledPrinters<br />
If VERBOSE = "Y" Then Wscript.Echo " Current connection: " &amp; objPrinter.Name<br />
If Left(objPrinter.Name, 2) = "\\" Then 'Work only On network printers<br />
'Search the corresponding printer and create it<br />
i = 0 'set the indice at the beginning of the array (prepare to loop)<br />
'Wscript.Echo UBound(OldPrintQueues)<br />
Do Until i &gt; UBound(OldPrintQueues)<br />
If UCase(objPrinter.Name) = UCase(OldPrintQueues(i)) Then<br />
'Create the connection to the new printer<br />
If VERBOSE = "Y" Then Wscript.Echo " New connection: " &amp; NewPrintQueues(i)<br />
WshNetwork.AddWindowsPrinterConnection NewPrintQueues(i)<br />
If UCase(strDefaultPrinter) = UCase(objPrinter.Name) Then 'This is the default printer<br />
'Set the default Printer<br />
WshNetwork.SetDefaultPrinter NewPrintQueues(i)<br />
End If<br />
'Delete the printer connection<br />
WshNetwork.RemovePrinterConnection objPrinter.Name<br />
If VERBOSE = "Y" Then Wscript.Echo " Removing : " &amp; objPrinter.Name<br />
End If<br />
i = i + 1<br />
Loop<br />
End If 'End of check for network printers<br />
Next 'End of the loop through the printers of this user</p>
<p>Set WshNetwork = Nothing</p>
<p>'-----------------<br />
' Functions<br />
'-----------------</p>
<p>'Return the default printer<br />
Function DefaultPrinter<br />
Dim strComputer<br />
Dim Result</p>
<p>strComputer = "."<br />
Result = ""</p>
<p>Set objWMIService = GetObject("winmgmts:" _<br />
&amp; "{impersonationLevel=impersonate}!\\" &amp; strComputer &amp; "\root\cimv2")<br />
Set colInstalledPrinters = objWMIService.ExecQuery _<br />
("Select * from Win32_Printer")<br />
For Each objPrinter in colInstalledPrinters<br />
If objPrinter.Default = True Then<br />
Result = objPrinter.Name<br />
End If<br />
Next<br />
DefaultPrinter = Result<br />
End Function</p>
<p>'-----------------</p>
<p>'Does File Exist (Boolean)<br />
Function FileExist (FileFullPath)<br />
Dim Fso<br />
Set Fso = CreateObject("Scripting.FileSystemObject")<br />
If (Fso.FileExists(FileFullPath)) Then<br />
FileExist = True<br />
Else<br />
FileExist = False<br />
End If<br />
End Function</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dementlieu.com/users/wormy/?feed=rss2&#038;p=3</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://www.dementlieu.com/users/wormy/?p=1</link>
		<comments>http://www.dementlieu.com/users/wormy/?p=1#comments</comments>
		<pubDate>Wed, 27 Jan 2010 01:31:47 +0000</pubDate>
		<dc:creator>wormy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.dementlieu.com/users/wormy/?p=1</guid>
		<description><![CDATA[Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!]]></description>
			<content:encoded><![CDATA[<p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dementlieu.com/users/wormy/?feed=rss2&#038;p=1</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

