<?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>Shariq Sheikh &#124; Port 389 &#187; Windows</title>
	<atom:link href="http://www.shariqsheikh.com/blog/index.php/base/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.shariqsheikh.com/blog</link>
	<description>- activity of Active Directory and the rest</description>
	<lastBuildDate>Thu, 22 Jul 2010 17:01:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>The Infamous /3gb Startup Switch</title>
		<link>http://www.shariqsheikh.com/blog/index.php/200806/the-infamous-3gb-startup-switch/</link>
		<comments>http://www.shariqsheikh.com/blog/index.php/200806/the-infamous-3gb-startup-switch/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 15:46:00 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.shariqsheikh.com/blog/?p=73</guid>
		<description><![CDATA[What is it ? Windows Server 2003 includes support for a startup switch that lets you tune the allocation of use of memory and memory address space. Regardless of the amount of physical memory in your system, Windows uses a virtual address space of 4 GB, with 2 GB allocated to user-mode processes (for example, [...]]]></description>
			<content:encoded><![CDATA[<p>What is it ?</p>
<blockquote><p>Windows Server 2003 includes support for a startup switch that lets you tune the allocation of use of memory and memory address space. Regardless of the amount of physical memory in your system, Windows uses a virtual address space of 4 GB, with 2 GB allocated to user-mode processes (for example, applications) and 2 GB allocated to kernel-mode processes (for example, the operating system and kernel-mode drivers). On systems that have 1 GB or more of physical memory, the startup switche can be used to allocate more memory to applications (3 GB) and less memory to the operating system (1 GB). This additional virtual address space helps reduce the amount of memory fragmentation.</p></blockquote>
<p>How beneficial is it ?</p>
<p>You may have read many articles on this subject before. This discussion has been going on for many years now and at times has almost reached epic proportions due to the conflicting information available from Microsoft. Long story short is that by and large, you should NOT use the /3GB switch unless you meet specific criteria, please read the following article as it demystifies the whole theory. Or read the excerpt below.</p>
<p><a href="http://blogs.technet.com/askperf/archive/2007/03/23/memory-management-demystifying-3gb.aspx">http://blogs.technet.com/askperf/archive/2007/03/23/memory-management-demystifying-3gb.aspx</a></p>
<blockquote><p>
The /3GB option was intended as a short term solution to allow applications such as database servers to maintain more data in memory than a 2GB address space allowed.  However, using the /3GB method to increase the user-mode memory space comes at a cost.  If we have to allocate an additional 1GB of this address space to the user-mode space, then the System space is cut in half.  Drivers, Heap, Paged &amp; NonPaged Memory all have only half the resources to work with now.  However, because of the way memory mapping works, cutting the kernel space in half does a lot more than just reducing the address space.  Many of the structures within the kernel virtual memory space are cut back by far more than 50%.</p>
<p><strong>For a process to access the full 3GB address space, the image file (application process) must have the IMAGE_FILE_LARGE_ADDRESS_AWARE flag set in the image header.</strong></p>
<p>If the flag is not set in the image header, then the OS reserves the third gigabyte so that the application won&#8217;t see virtual addresses greater than 0x7FFFFFFF. You set this flag by specifying the linker flag /LARGEADDRESSAWARE when building the executable.  This flag has no effect when running the application on a system with a 2-GB user address space. Therefore if you enable the /3GB switch, then applications that do not have this flag set can only use the standard 2GB of User mode memory, and the Kernel is still limited to the 1GB space &#8211; <strong>which means that 1GB of virtual memory is basically wasted !</strong></p></blockquote>
<p>All that is required to make it happen is a switch in the boot.ini file. The switch, /3GB, is placed<br />
at the end of the line that executes the WinNT loading process.</p>
<p>Example:</p>
<p><code>[operating systems] multi(0)disk(0)rdisk(0)partition(2)\WINNT="Windows NT<br />
Server Version 4.00" /3GB</code></p>
<p>Or you may add an additional line in your boot.ini as above to have the option to boot into either environment, with or without the switch.</p>
<p>What to keep in mind ?</p>
<p>This topic deals with the the virtual memory address space and has no relevance with the physical memory, it is however a limitation of a 32bit OS if you are running 64bit OS this not applicable. At the end of the day you must decide if your application is capable of handling this switch as an added benefit. Often times, if you are having to <em>up</em> the threshold of your OS handling of things and or things such as over-clocking your processor to keep up, one might worry about the logic behind it. Perhaps go for 64bit OS to begin with.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.shariqsheikh.com%2Fblog%2Findex.php%2F200806%2Fthe-infamous-3gb-startup-switch%2F&amp;linkname=The%20Infamous%20%2F3gb%20Startup%20Switch">Share/Bookmark</a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.shariqsheikh.com/blog/index.php/200806/the-infamous-3gb-startup-switch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to find out your server uptime</title>
		<link>http://www.shariqsheikh.com/blog/index.php/200804/how-to-find-out-your-server-uptime/</link>
		<comments>http://www.shariqsheikh.com/blog/index.php/200804/how-to-find-out-your-server-uptime/#comments</comments>
		<pubDate>Sat, 12 Apr 2008 03:21:58 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.shariqsheikh.com/blog/?p=51</guid>
		<description><![CDATA[Using Uptime utility from Microsoft you can get your server uptime (i.e time since the last reboot) which can come in handy particularly when you are trying to troubleshoot a server&#8217;s unexpected reboot and failures. Uptime.exe can be used to display the current uptime of the local or remote system. Optionally, it can also scan [...]]]></description>
			<content:encoded><![CDATA[<p>Using Uptime utility from Microsoft you can get your server uptime (i.e time since the last reboot) which can come in handy particularly when you are trying to troubleshoot a server&#8217;s unexpected reboot and failures.</p>
<blockquote><p>Uptime.exe can be used to display the current uptime of the local or remote system. Optionally, it can also scan the Event log for key system events such as system restart or computers that are not responding (hanging). Where possible, it also calculates system availability. It is primarily intended for Windows NT Server 4.0 Service Pack 4 or later, though it operates in limited fashion on earlier versions.</p></blockquote>
<p>You can download it from the link below and drop it on the root of the c:\ or where you wish and the command line to run is simply <em>uptime</em></p>
<p><a href="http://support.microsoft.com/kb/232243">http://support.microsoft.com/kb/232243</a></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.shariqsheikh.com%2Fblog%2Findex.php%2F200804%2Fhow-to-find-out-your-server-uptime%2F&amp;linkname=How%20to%20find%20out%20your%20server%20uptime">Share/Bookmark</a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.shariqsheikh.com/blog/index.php/200804/how-to-find-out-your-server-uptime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Import AD subnets into Reverse Lookup Zones</title>
		<link>http://www.shariqsheikh.com/blog/index.php/200803/import-ad-subnets-into-reverse-lookup-zones/</link>
		<comments>http://www.shariqsheikh.com/blog/index.php/200803/import-ad-subnets-into-reverse-lookup-zones/#comments</comments>
		<pubDate>Sat, 29 Mar 2008 13:17:43 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.shariqsheikh.com/blog/index.php/2008/03/29/import-ad-subnets-into-reverse-lookup-zones/</guid>
		<description><![CDATA[Sometimes you have a task on your hand for your Active Directory environment but it isn&#8217;t an easy one, or lets just say that not many people have come across having a need for it (so not a whole lot you can google for). I recently had a situation like this. Basically in our AD [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you have a task on your hand for your Active Directory environment but it isn&#8217;t an easy one, or lets just say that not many people have come across having a need for it (so not a whole lot you can google for). I recently had a situation like this. Basically in our AD environment we failed to realized the importance and fell behind in keeping our reverse lookup zones updated. As we all know that AD infrastructre does not rely on reverse lookups and you can get away with not having all your defined subnets populated in the reverse zones (in-addr.arpa). We began having some random errors of unsuccessful Group policy applications on some machines and also we started being bugged by the SMS group of the failure of SMS clients installation since some applications like SMS do rely on having to lookup machines by their IP addresses.</p>
<p>We are quite a big environment as we have little over 1000 AD defined subnets and only 80 some had been populated in the reverse lookup zones. I was tasked to make sure that all the reverse zones are created in our DNS from the defined subnets. As it could be very tedious task, I wanted to automate the process. I am not a scriptor but I knew that we could not be the only who has had this issue and I tried digging the newsgroups/blogs/forums and the internet in general but I had no or little luck finding any relevant information.</p>
<p>I started off looking into ADSIedit, as I wanted the export the subnet objects and then somehow import them back into the DNS. I knew that there was DNSCMD command line utility that allows you to do various tasks for zones/records creations, deletion and modification. Unfortunately it did not have a very wide syntax that allowed to pipe-in a list from an external source such a CSV file (that would have the subnets I export from AD). As expected the export part went fine and I had the full list of all the AD defined subnets. Now I was struggling to find a VBscript I could wrap this file into and pipe-in thru DNSCMD like utility.</p>
<p>I looked at <a href="http://joeware.net">Joeware</a> free AD utilites, and I saw Joe had a tool called ADfind. I decided to query him and I got a rapid reply back from him with some suggestions, he assured me it is doable using his ADfind utility combined with some other script or utility. In mean time he forwarded my query to <a href="http://msetechnology.com/">Dean Wells</a> of MSEtechnology who emailed me a rather quick solution using Joe&#8217;s ADfind tool (see below). I was extremely pleased how my easy attempt to query seasoned scriptors had paid off.</p>
<p>Apart from other great writing and consulting achievements both <strong><em>Joe Richards </em></strong>and <strong><em>Dean Wells</em></strong> are Micrsoft MVPs and their voluntary efforts to help out the community truly exhibited what MVP program is all about.</p>
<p>So here is the command you would run at your DNS server to accomplish this task;</p>
<p><code>for /f "tokens=1,2,3 delims=." %n in ('adfind -config -rb "CN=Subnets,CN=Sites" -f "objectclass=subnet" name -list') do @dnscmd /zoneadd %p.%o.%n.in-addr.arpa /primary</code></p>
<p>add &#8216;ds&#8217; in front of the primary (/dsprimary) if you wish to make the zones AD integrated</p>
<p><strong>NOTES from Dean</strong><br />
-If you place the syntax above within a batch file, please note that any occurrence of a ‘%’ symbol must be replaced with ‘%%’ (two of them)<br />
-ADfind and DNSCMD must both exist within the current directory or the system path<br />
-In its current form, the syntax assumes the subnet is comprised of 3 octets</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.shariqsheikh.com%2Fblog%2Findex.php%2F200803%2Fimport-ad-subnets-into-reverse-lookup-zones%2F&amp;linkname=Import%20AD%20subnets%20into%20Reverse%20Lookup%20Zones">Share/Bookmark</a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.shariqsheikh.com/blog/index.php/200803/import-ad-subnets-into-reverse-lookup-zones/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Windows Live SkyDrive</title>
		<link>http://www.shariqsheikh.com/blog/index.php/200802/windows-live-skydrive/</link>
		<comments>http://www.shariqsheikh.com/blog/index.php/200802/windows-live-skydrive/#comments</comments>
		<pubDate>Mon, 25 Feb 2008 04:14:00 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.shariqsheikh.com/blog/index.php/2008/02/24/windows-live-skydrive/</guid>
		<description><![CDATA[Long after there have been hundreds of free online space givers have emerged, Microsoft has recently jumped in with their own flavor. Windows Live SkyDrive is a free online space that gives away 5gb space for your music, data, pictures, and videos. Along with that there is also a &#8216;public folder&#8217; feature available similar to [...]]]></description>
			<content:encoded><![CDATA[<p>Long after there have been hundreds of free online space givers have emerged, Microsoft has recently jumped in with their own flavor. Windows Live SkyDrive is a free online space that gives away 5gb space for your music, data, pictures, and videos. Along with that there is also a &#8216;public folder&#8217; feature available similar to that of Microsoft Outlook. Service over all is good however the limit for file size upload is 50mb which in my opinion isn&#8217;t very good. But heck you can&#8217;t beat free 5gb of ciber space.</p>
<p><img src="http://kevinremde.members.winisp.net/images/BreakingNewsSkyDriveisLIVE_A476/SkyDrive.jpg" border="0" alt="" width="260" height="63" /></p>
<p>You don&#8217;t have to sign-up for the service if you already have an hotmail or msn account. Just<a href="http://skydrive.live.com/" target="_blank"> go here</a> after you log-in to your hotmail/msn account and reserve your space.</p>
<p>I myself have a public folder space now which I intend to use to publish Microsoft related evals/software and documentation.</p>
<p><code></code></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.shariqsheikh.com%2Fblog%2Findex.php%2F200802%2Fwindows-live-skydrive%2F&amp;linkname=Windows%20Live%20SkyDrive">Share/Bookmark</a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.shariqsheikh.com/blog/index.php/200802/windows-live-skydrive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Admin Tools from the command line/ run command</title>
		<link>http://www.shariqsheikh.com/blog/index.php/200802/admin-tools-from-the-command-line-run-command/</link>
		<comments>http://www.shariqsheikh.com/blog/index.php/200802/admin-tools-from-the-command-line-run-command/#comments</comments>
		<pubDate>Mon, 18 Feb 2008 19:08:43 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.shariqsheikh.com/blog/index.php/2008/02/25/admin-tools-from-the-command-line-run-command/</guid>
		<description><![CDATA[If you are like me and often have to go and look for the command line shortcuts apart from the ones you use on daily basis and are easy to remember (i.e mstsc, dsa.msc, compmgmt.msc) for launching the administrator tools in Windows Server 2003. Here is an handy list you can print out and hang [...]]]></description>
			<content:encoded><![CDATA[<p>If you are like me and often have to go and look for the command line shortcuts apart from the ones you use on daily basis and are easy to remember (i.e mstsc, dsa.msc, compmgmt.msc) for launching the administrator tools in Windows Server 2003. Here is an handy list you can print out and hang it in behind your computer until you remember them all.</p>
<p>AD Domains and Trusts<br />
domain.msc</p>
<p>Active Directory Management<br />
admgmt.msc</p>
<p>AD Sites and Serrvices<br />
dssite.msc</p>
<p>AD Users and COmputers<br />
dsa.msc</p>
<p>ADSI Edit<br />
adsiedit.msc</p>
<p>Authorization manager<br />
azman.msc</p>
<p>Certification Authority Management<br />
certsrv.msc</p>
<p>Certificate Templates<br />
certtmpl.msc</p>
<p>Cluster Administrator<br />
cluadmin.exe</p>
<p>Computer Management<br />
compmgmt.msc</p>
<p>Component Services<br />
comexp.msc</p>
<p>Configure Your Server<br />
cys.exe</p>
<p>Device Manager<br />
devmgmt.msc</p>
<p>DHCP Managment<br />
dhcpmgmt.msc</p>
<p>Disk Defragmenter<br />
dfrg.msc</p>
<p>Disk Manager<br />
diskmgmt.msc</p>
<p>Distributed File System<br />
dfsgui.msc</p>
<p>DNS Managment<br />
dnsmgmt.msc</p>
<p>Event Viewer<br />
eventvwr.msc</p>
<p>Indexing Service Management<br />
ciadv.msc</p>
<p>IP Address Manage<br />
ipaddrmgmt.msc</p>
<p>Licensing Manager<br />
llsmgr.exe</p>
<p>Local Certificates Management<br />
certmgr.msc</p>
<p>Local Group Policy Editor<br />
gpedit.msc</p>
<p>Local Security Settings Manager<br />
secpol.msc</p>
<p>Local Users and Groups Manager<br />
lusrmgr.msc</p>
<p>Network Load balancing<br />
nlbmgr.exe</p>
<p>Performance Montior<br />
perfmon.msc</p>
<p>PKI Viewer<br />
pkiview.msc</p>
<p>Public Key Managment<br />
pkmgmt.msc</p>
<p>QoS Control Management<br />
acssnap.msc</p>
<p>Remote Desktops<br />
tsmmc.msc</p>
<p>Remote Storage Administration<br />
rsadmin.msc</p>
<p>Removable Storage<br />
ntmsmgr.msc</p>
<p>Removalbe Storage Operator Requests<br />
ntmsoprq.msc</p>
<p>Routing and Remote Access Manager<br />
rrasmgmt.msc</p>
<p>Resultant Set of Policy<br />
rsop.msc</p>
<p>Schema management<br />
schmmgmt.msc</p>
<p>Services Management<br />
services.msc</p>
<p>Shared Folders<br />
fsmgmt.msc</p>
<p>SID Security Migration<br />
sidwalk.msc</p>
<p>Telephony Management<br />
tapimgmt.msc</p>
<p>Terminal Server Configuration<br />
tscc.msc</p>
<p>Terminal Server Licensing<br />
licmgr.exe</p>
<p>Terminal Server Manager<br />
tsadmin.exe</p>
<p>UDDI Services Managment<br />
uddi.msc</p>
<p>Windows Mangement Instumentation<br />
wmimgmt.msc</p>
<p>WINS Server manager<br />
winsmgmt.msc</p>
<p><em>Enjoy ! </em></p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.shariqsheikh.com%2Fblog%2Findex.php%2F200802%2Fadmin-tools-from-the-command-line-run-command%2F&amp;linkname=Admin%20Tools%20from%20the%20command%20line%2F%20run%20command">Share/Bookmark</a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.shariqsheikh.com/blog/index.php/200802/admin-tools-from-the-command-line-run-command/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
