<?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>The Multifunctioning DBA &#187; Domain Administration</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/dba/tag/domain-administration/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/dba</link>
	<description></description>
	<lastBuildDate>Wed, 06 Feb 2013 01:01:48 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>More with Quest AD Powershell CMDLETS</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/more-with-quest-ad-powershell-cmdlets/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/more-with-quest-ad-powershell-cmdlets/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 21:43:08 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Domain Administration]]></category>
		<category><![CDATA[Microsoft Windows]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Windows Administration]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/more-with-quest-ad-powershell-cmdlets/</guid>
		<description><![CDATA[I am continuing work on the script that I am converting from VBScript to Powershell and I must say that it is going quite well with the help of the Quest cmdlets. In the script I want to go through a particular OU and delete any accounts that are currntly disabled, and were created a [...]]]></description>
				<content:encoded><![CDATA[<p>I am continuing work on the script that I am converting from VBScript to Powershell and I must say that it is going quite well with the help of the Quest cmdlets. In the script I want to go through a particular OU and delete any accounts that are currntly disabled, and were created a minimum of 180 days ago, and have not been used in a minimum of 180 days. I can do this with the following block of code.</p>
<p>$deletedays = &#8211; 180<br />
$deletedate = [datetime]::Now.AddDays($deletedays)</p>
<p>Get-QADUser -SearchRoot &#8220;pni.us.ad.gannett.com/PNI/Users/Disabled&#8221; | where{(($_.lastlogontimestamp.value -lt $deletedate) -and ($_.creationdate -lt $deletedate) -and ($_.AccountIsDisabled -eq &#8220;True&#8221;))}  | Tee-Object -filepath &#8220;c:\removedaccounts.txt&#8221; | Remove-QADObject -Force</p>
<p>So you will also notice that I am using the Tee-Object cmdlet. This is not a quest cmdlet but it is nice as I can log what accounts I am deleting with the Remove-QADObject cmdlet that is provided by Quest. Be careful when doing things like removing accounts in scripts and be sure to test completly. A good way to test is to use the -whatif clause. This will show you what would happen if you did run it.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/more-with-quest-ad-powershell-cmdlets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get List of all DC&#8217;s in your Domain</title>
		<link>http://itknowledgeexchange.techtarget.com/dba/get-list-of-all-dcs-in-your-domain/</link>
		<comments>http://itknowledgeexchange.techtarget.com/dba/get-list-of-all-dcs-in-your-domain/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 21:59:11 +0000</pubDate>
		<dc:creator>Colin Smith</dc:creator>
				<category><![CDATA[Domain Administration]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Windows Administration]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/dba/get-list-of-all-dcs-in-your-domain/</guid>
		<description><![CDATA[I am working on converting a vbscript that I wrote a couple of years ago into a powershell script. This script requires that I query all of the Domain Controllers in my domain to get the most up to date data that is possible. I used the Quest AD Commanlets and they made it easy. [...]]]></description>
				<content:encoded><![CDATA[<p>I am working on converting a vbscript that I wrote a couple of years ago into a powershell script. This script requires that I query all of the Domain Controllers in my domain to get the most up to date data that is possible. I used the Quest AD Commanlets and they made it easy. I have discussed these in the past and if you have not gotten them yet then go get them. They are at the following link:</p>
<p>http://www.quest.com/powershell/activeroles-server.aspx</p>
<p>to get a listing of your DC&#8217;s just do the following.</p>
<p>$dcs = Get-QADComputer -ComputerRole DomainController</p>
<p>now you have a listing of them in the $dcs variable and you can scan them all.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/dba/get-list-of-all-dcs-in-your-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
