<?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>Techibee.com &#187; Active Directory</title>
	<atom:link href="http://techibee.com/category/active-directory/feed" rel="self" type="application/rss+xml" />
	<link>http://techibee.com</link>
	<description>A System Administrator&#039;s Blog</description>
	<lastBuildDate>Mon, 21 May 2012 14:13:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How to become MCM(Microsoft Certified Master) in Active Directory</title>
		<link>http://techibee.com/active-directory/how-to-become-mcmmicrosoft-certified-master-in-active-directory/1668?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-become-mcmmicrosoft-certified-master-in-active-directory</link>
		<comments>http://techibee.com/active-directory/how-to-become-mcmmicrosoft-certified-master-in-active-directory/1668#comments</comments>
		<pubDate>Mon, 21 May 2012 14:04:08 +0000</pubDate>
		<dc:creator>Sitaram Pamarthi</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[online training]]></category>
		<category><![CDATA[how to become MCM]]></category>
		<category><![CDATA[how to get Microsoft Certified Master certificate]]></category>

		<guid isPermaLink="false">http://techibee.com/?p=1668</guid>
		<description><![CDATA[I came across below interesting reading which talks about A-Z things needed for becoming Microsoft Certified Master(MCM) in Active Directory. MCM is the highest level of Certification given by Microsoft for people who excel in a given technology. Current MCM is available for Exchange, SQL, Lync, Sharepoint and Active Directory. http://blogs.technet.com/b/askpfeplat/archive/2012/05/21/so-you-want-to-be-a-master-eh.aspx Hope you will find [...]]]></description>
			<content:encoded><![CDATA[<p>I came across below interesting reading which talks about A-Z things needed for becoming Microsoft Certified Master(MCM) in Active Directory. MCM is the highest level of Certification given by Microsoft for people who excel in a given technology. Current MCM is available for Exchange, SQL, Lync, Sharepoint and Active Directory.</p>
<p><a href="http://blogs.technet.com/b/askpfeplat/archive/2012/05/21/so-you-want-to-be-a-master-eh.aspx">http://blogs.technet.com/b/askpfeplat/archive/2012/05/21/so-you-want-to-be-a-master-eh.aspx</a></p>
<p>Hope you will find this informative.</p>
]]></content:encoded>
			<wfw:commentRss>http://techibee.com/active-directory/how-to-become-mcmmicrosoft-certified-master-in-active-directory/1668/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Powershell: How to get Groups list of a computer account</title>
		<link>http://techibee.com/active-directory/powershell-how-to-get-groups-list-of-a-computer-account/1457?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=powershell-how-to-get-groups-list-of-a-computer-account</link>
		<comments>http://techibee.com/active-directory/powershell-how-to-get-groups-list-of-a-computer-account/1457#comments</comments>
		<pubDate>Fri, 09 Mar 2012 06:44:35 +0000</pubDate>
		<dc:creator>Sitaram Pamarthi</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[AD]]></category>
		<category><![CDATA[group members]]></category>
		<category><![CDATA[powershell]]></category>

		<guid isPermaLink="false">http://techibee.com/?p=1457</guid>
		<description><![CDATA[One of my old friend/colleague called me to day for a small help. He is looking for script to get the list of active directory groups that a computer account is member of. Since this is a very basic requirement every System administrator will get, I wanted to post it in my blog. So, the [...]]]></description>
			<content:encoded><![CDATA[<p>One of my old friend/colleague called me to day for a small help. He is looking for script to get the list of active directory groups that a computer account is member of. Since this is a very basic requirement every System administrator will get, I wanted to post it in my blog.</p>
<p>So, the code described in this post uses Quest Active Directory powershell cmdlets. I can code using the dotnet objects or built-in activedirectory module in windows 7/2008 as well but since I wanted to make it more generic, I opted for Quest cmdlets. Another advantage is that even newbies can query AD with these tools efficiently.</p>
<p>Since I am using Quest AD cmdlets, you should down load them from <a href="http://www.quest.com/powershell/activeroles-server.aspx">http://www.quest.com/powershell/activeroles-server.aspx</a> and installed it on your computer. After installation, copy the below code into a file called <strong>Get-ComputerGroups.ps1</strong> and run it from Quest AD shell(you can launch this from program files), as shown below.</p>
<p><strong>Get-ComputerGroups.ps1</strong></p>
<pre class="PowerShellColorizedScript"><span style="color: #a9a9a9;">[</span><span style="color: #add8e6;">cmdletbinding</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #a9a9a9;">]</span>
<span style="color: #00008b;">param</span><span style="color: #000000;">(</span>
<span style="color: #a9a9a9;">[</span><span style="color: #add8e6;">parameter</span><span style="color: #000000;">(</span><span style="color: #000000;">mandatory</span><span style="color: #a9a9a9;">=</span><span style="color: #ff4500;">$true</span><span style="color: #000000;">)</span><span style="color: #a9a9a9;">]</span>
<span style="color: #ff4500;">$ComputerName</span>
<span style="color: #000000;">)</span>            

<span style="color: #ff4500;">$Groups</span> <span style="color: #a9a9a9;">=</span> <span style="color: #000000;">(</span><span style="color: #0000ff;">Get-QADComputer</span> <span style="color: #000080;">-Id</span> <span style="color: #ff4500;">$ComputerName</span><span style="color: #000000;">)</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">Memberof</span>            

<span style="color: #ff4500;">$Groups</span> <span style="color: #a9a9a9;">|</span> <span style="color: #0000ff;">%</span> <span style="color: #000000;">{</span>
<span style="color: #ff4500;">$_</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">split</span><span style="color: #000000;">(</span><span style="color: #8b0000;">","</span><span style="color: #000000;">)</span><span style="color: #a9a9a9;">[</span><span style="color: #800080;">0</span><span style="color: #a9a9a9;">]</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">Split</span><span style="color: #000000;">(</span><span style="color: #8b0000;">"="</span><span style="color: #000000;">)</span><span style="color: #a9a9a9;">[</span><span style="color: #800080;">1</span><span style="color: #a9a9a9;">]</span>
<span style="color: #000000;">}</span></pre>
<p><strong>Usage:</strong></p>
<blockquote><p>[PS] C:\temp\Get-ComputerGroups.p1 -ComputerName MyPC1</p></blockquote>
<p>Here <strong>-ComputerName</strong> parameter is mandatory.</p>
<p>Similarly, if you want to provide the computer names from text file and get the active directory group names of all of them, then use the below code.</p>
<p><strong>Get-ComputerGroups.ps1</strong></p>
<pre class="PowerShellColorizedScript"><span style="color: #a9a9a9;">[</span><span style="color: #add8e6;">cmdletbinding</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #a9a9a9;">]</span>
<span style="color: #00008b;">param</span><span style="color: #000000;">(</span>
<span style="color: #a9a9a9;">[</span><span style="color: #add8e6;">parameter</span><span style="color: #000000;">(</span><span style="color: #000000;">mandatory</span><span style="color: #a9a9a9;">=</span><span style="color: #ff4500;">$true</span><span style="color: #000000;">)</span><span style="color: #a9a9a9;">]</span>
<span style="color: #ff4500;">$FilePath</span>
<span style="color: #000000;">)</span>            

<span style="color: #ff4500;">$Computers</span> <span style="color: #a9a9a9;">=</span> <span style="color: #0000ff;">Get-Content</span> <span style="color: #ff4500;">$FilePath</span>
<span style="color: #00008b;">foreach</span> <span style="color: #000000;">(</span><span style="color: #ff4500;">$ComputerName</span> <span style="color: #00008b;">in</span> <span style="color: #ff4500;">$Computers</span><span style="color: #000000;">)</span> <span style="color: #000000;">{</span>
    <span style="color: #0000ff;">write-host</span> <span style="color: #8b0000;">"$ComputerName is memberOf following Groups"</span>
    <span style="color: #ff4500;">$Groups</span> <span style="color: #a9a9a9;">=</span> <span style="color: #000000;">(</span><span style="color: #0000ff;">Get-QADComputer</span> <span style="color: #000080;">-Id</span> <span style="color: #ff4500;">$ComputerName</span><span style="color: #000000;">)</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">Memberof</span>
    <span style="color: #ff4500;">$Groups</span> <span style="color: #a9a9a9;">|</span> <span style="color: #0000ff;">%</span> <span style="color: #000000;">{</span>
    <span style="color: #ff4500;">$_</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">split</span><span style="color: #000000;">(</span><span style="color: #8b0000;">","</span><span style="color: #000000;">)</span><span style="color: #a9a9a9;">[</span><span style="color: #800080;">0</span><span style="color: #a9a9a9;">]</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">Split</span><span style="color: #000000;">(</span><span style="color: #8b0000;">"="</span><span style="color: #000000;">)</span><span style="color: #a9a9a9;">[</span><span style="color: #800080;">1</span><span style="color: #a9a9a9;">]</span>
<span style="color: #000000;">}</span>            

<span style="color: #000000;">}</span></pre>
<p><strong>Usage:</strong></p>
<blockquote><p>[PS] C:\&gt; Get-ComputerGroups.ps1 -FilePath c:\temp\Computersfile.txt</p>
<p>If you want to redirect the output to a text file, just try the below command.</p>
<p>[PS] C:\&gt; Get-ComputerGroups.ps1 -FilePath c:\temp\Computersfile.txt | Out-File c:\temp\output.txt</p>
<p>The output will be written to output.txt file.</p></blockquote>
<p>Feel free to comment here if you have any doubts.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://techibee.com/active-directory/powershell-how-to-get-groups-list-of-a-computer-account/1457/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Powershell: Get Active Directory Sites and subnets list</title>
		<link>http://techibee.com/active-directory/powershell-get-active-directory-sites-and-subnets-list/1412?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=powershell-get-active-directory-sites-and-subnets-list</link>
		<comments>http://techibee.com/active-directory/powershell-get-active-directory-sites-and-subnets-list/1412#comments</comments>
		<pubDate>Sat, 25 Feb 2012 18:13:17 +0000</pubDate>
		<dc:creator>Sitaram Pamarthi</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[active directory subnets]]></category>
		<category><![CDATA[ad sites information]]></category>
		<category><![CDATA[powershell]]></category>

		<guid isPermaLink="false">http://techibee.com/?p=1412</guid>
		<description><![CDATA[This post talks about querying Active Directory Sites and subnets information from AD using Powershell. This script is helpful when you want to know subnets mapping to given site and servers lying in a site. This scrip doesn&#8217;t need much explanation since it is looking very straight forward. If you defer with me, please comment [...]]]></description>
			<content:encoded><![CDATA[<p>This post talks about querying Active Directory Sites and subnets information from AD using Powershell. This script is helpful when you want to know subnets mapping to given site and servers lying in a site. This scrip doesn&#8217;t need much explanation since it is looking very straight forward. If you defer with me, please comment what part of script you want to understand. Also feel free to post if you would like to query any other information related to sites and services. Happy to help.</p>
<p><strong>Code: Get-ADSites.ps1</strong></p>
<pre class="PowerShellColorizedScript"><span style="color: #a9a9a9;">[</span><span style="color: #add8e6;">cmdletbinding</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #a9a9a9;">]</span>
<span style="color: #00008b;">param</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>            

<span style="color: #ff4500;">$Sites</span> <span style="color: #a9a9a9;">=</span> <span style="color: #008080;">[System.DirectoryServices.ActiveDirectory.Forest]</span><span style="color: #a9a9a9;">::</span><span style="color: #000000;">GetCurrentForest</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">Sites</span>            

<span style="color: #00008b;">foreach</span> <span style="color: #000000;">(</span><span style="color: #ff4500;">$Site</span> <span style="color: #00008b;">in</span> <span style="color: #ff4500;">$Sites</span><span style="color: #000000;">)</span> <span style="color: #000000;">{</span>            

 <span style="color: #ff4500;">$obj</span> <span style="color: #a9a9a9;">=</span> <span style="color: #0000ff;">New-Object</span> <span style="color: #000080;">-Type</span> <span style="color: #8a2be2;">PSObject</span> <span style="color: #000080;">-Property</span> <span style="color: #000000;">(</span>
  <span style="color: #000000;">@{</span>
   <span style="color: #8b0000;">"SiteName"</span>  <span style="color: #a9a9a9;">=</span> <span style="color: #ff4500;">$site</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">Name</span><span style="color: #000000;">;</span>
   <span style="color: #8b0000;">"SubNets"</span> <span style="color: #a9a9a9;">=</span> <span style="color: #ff4500;">$site</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">Subnets</span><span style="color: #000000;">;</span>
   <span style="color: #8b0000;">"Servers"</span> <span style="color: #a9a9a9;">=</span> <span style="color: #ff4500;">$Site</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">Servers</span>
  <span style="color: #000000;">}</span>
 <span style="color: #000000;">)</span>            

 <span style="color: #ff4500;">$Obj</span>
<span style="color: #000000;">}</span></pre>
<p><strong> Output</strong></p>
<p><a href="http://techibee.com/wp-content/uploads/2012/02/Get-ADSite.png"><img class="aligncenter size-full wp-image-1413" title="Get-ADSite" src="http://techibee.com/wp-content/uploads/2012/02/Get-ADSite.png" alt="" width="787" height="124" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://techibee.com/active-directory/powershell-get-active-directory-sites-and-subnets-list/1412/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Powershell: Move Computer accounts from default container to specific OU</title>
		<link>http://techibee.com/active-directory/powershell-move-computer-accounts-from-default-container-to-specific-ou/1383?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=powershell-move-computer-accounts-from-default-container-to-specific-ou</link>
		<comments>http://techibee.com/active-directory/powershell-move-computer-accounts-from-default-container-to-specific-ou/1383#comments</comments>
		<pubDate>Fri, 17 Feb 2012 19:10:40 +0000</pubDate>
		<dc:creator>Sitaram Pamarthi</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[computer accounts movement]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[powershell to move a computer from one ou to another]]></category>

		<guid isPermaLink="false">http://techibee.com/?p=1383</guid>
		<description><![CDATA[Whenever a computer is added to a windows domain, by default account will get created under Computers container. It is located right below the domain name in dsa.msc. The pull of it is, &#60;domainName&#62;\Computers. Today one of my friend has asked to know if there any quick script using which he can move all computers [...]]]></description>
			<content:encoded><![CDATA[<p>Whenever a computer is added to a windows domain, by default account will get created under <strong>Computers</strong> container. It is located right below the domain name in dsa.msc. The pull of it is, &lt;domainName&gt;\Computers.</p>
<p>Today one of my friend has asked to know if there any quick script using which he can move all computers from default computers container to OU of his choice in same domain. Since I don&#8217;t have a script already authored for this purpose, I quickly made the below.</p>
<p>This is a very basic version of computer accounts movement script. There might be some conditions processing like if name contains XYZ move to one OU or if name contains ABC move to different OU. You can accommodate such conditions in this script if you have little powershell knowledge(or let me know I can help you given some time).</p>
<p>Here is the code.</p>
<pre class="PowerShellColorizedScript"><span style="color: #a9a9a9;">[</span><span style="color: #add8e6;">cmdletbinding</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #a9a9a9;">]</span>            

<span style="color: #00008b;">param</span> <span style="color: #000000;">(</span>
<span style="color: #a9a9a9;">[</span><span style="color: #add8e6;">parameter</span><span style="color: #000000;">(</span><span style="color: #000000;">mandatory</span><span style="color: #a9a9a9;">=</span><span style="color: #ff4500;">$true</span><span style="color: #000000;">)</span><span style="color: #a9a9a9;">]</span>
<span style="color: #ff4500;">$TargetOU</span>
<span style="color: #000000;">)</span>            

<span style="color: #0000ff;">Import-Module</span> <span style="color: #8a2be2;">ActiveDirectory</span>
<span style="color: #ff4500;">$Domain</span> <span style="color: #a9a9a9;">=</span> <span style="color: #008080;">[ADSI]</span><span style="color: #8b0000;">""</span>
<span style="color: #ff4500;">$DN</span><span style="color: #a9a9a9;">=</span><span style="color: #ff4500;">$domain</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">distinguishedName</span>
<span style="color: #ff4500;">$SourcePath</span> <span style="color: #a9a9a9;">=</span> <span style="color: #8b0000;">"CN=Computers,"</span> <span style="color: #a9a9a9;">+</span> <span style="color: #ff4500;">$DN</span>
<span style="color: #ff4500;">$Computers</span> <span style="color: #a9a9a9;">=</span> <span style="color: #0000ff;">Get-ADComputer</span> <span style="color: #000080;">-Filter</span> <span style="color: #8a2be2;">*</span> <span style="color: #000080;">-SearchBase</span> <span style="color: #ff4500;">$SourcePath</span>
<span style="color: #00008b;">if</span><span style="color: #000000;">(</span><span style="color: #a9a9a9;">!</span><span style="color: #ff4500;">$Computers</span><span style="color: #000000;">)</span> <span style="color: #000000;">{</span>
 <span style="color: #0000ff;">write-host</span> <span style="color: #8b0000;">"No Computers are found in default container"</span>
 <span style="color: #00008b;">return</span>
<span style="color: #000000;">}</span>
<span style="color: #00008b;">foreach</span> <span style="color: #000000;">(</span><span style="color: #ff4500;">$Computer</span> <span style="color: #00008b;">in</span> <span style="color: #ff4500;">$Computers</span><span style="color: #000000;">)</span> <span style="color: #000000;">{</span>
 <span style="color: #00008b;">if</span><span style="color: #000000;">(</span><span style="color: #a9a9a9;">!</span><span style="color: #000000;">(</span><span style="color: #0000ff;">Move-ADObject</span> <span style="color: #ff4500;">$Computer</span> <span style="color: #000080;">-TargetPath</span> <span style="color: #ff4500;">$TargetOU</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">{</span>
  <span style="color: #ff4500;">$Status</span> <span style="color: #a9a9a9;">=</span> <span style="color: #8b0000;">"SUCCESS"</span>
 <span style="color: #000000;">}</span> <span style="color: #00008b;">else</span> <span style="color: #000000;">{</span>
  <span style="color: #ff4500;">$Status</span> <span style="color: #a9a9a9;">=</span> <span style="color: #8b0000;">"FAILED"</span>
 <span style="color: #000000;">}</span>
 <span style="color: #ff4500;">$OutputObj</span> <span style="color: #a9a9a9;">=</span> <span style="color: #0000ff;">New-Object</span> <span style="color: #000080;">-TypeName</span> <span style="color: #8a2be2;">PSobject</span>
 <span style="color: #ff4500;">$OutputObj</span> <span style="color: #a9a9a9;">|</span> <span style="color: #0000ff;">Add-Member</span> <span style="color: #000080;">-MemberType</span> <span style="color: #8a2be2;">NoteProperty</span> <span style="color: #000080;">-Name</span> <span style="color: #8a2be2;">ComputerName</span> <span style="color: #000080;">-Value</span> <span style="color: #ff4500;">$Computer</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">Name</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">tostring</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>
 <span style="color: #ff4500;">$OutputObj</span> <span style="color: #a9a9a9;">|</span> <span style="color: #0000ff;">Add-Member</span> <span style="color: #000080;">-MemberType</span> <span style="color: #8a2be2;">NoteProperty</span> <span style="color: #000080;">-Name</span> <span style="color: #8a2be2;">SourcePath</span> <span style="color: #000080;">-Value</span> <span style="color: #ff4500;">$SourcePath</span>
 <span style="color: #ff4500;">$OutputObj</span> <span style="color: #a9a9a9;">|</span> <span style="color: #0000ff;">Add-Member</span> <span style="color: #000080;">-MemberType</span> <span style="color: #8a2be2;">NoteProperty</span> <span style="color: #000080;">-Name</span> <span style="color: #8a2be2;">DestinationPath</span> <span style="color: #000080;">-Value</span> <span style="color: #ff4500;">$TargetOU</span>
 <span style="color: #ff4500;">$OutputObj</span> <span style="color: #a9a9a9;">|</span> <span style="color: #0000ff;">Add-Member</span> <span style="color: #000080;">-MemberType</span> <span style="color: #8a2be2;">NoteProperty</span> <span style="color: #000080;">-Name</span> <span style="color: #8a2be2;">Status</span> <span style="color: #000080;">-Value</span> <span style="color: #ff4500;">$Status</span>
 <span style="color: #ff4500;">$OutputObj</span>
<span style="color: #000000;">}</span></pre>
<p>&nbsp;</p>
<p>When I executed this script in my test domain for testing purpose it went fine and generated below output. This script is not depending on any external modules/cmdlets like quest tools. I uses ActiveDirectory module which comes with RSAT(or windows 2008 domain controllers). Needless to say that you need ADWS(active directory web services) installed if all your domain controllers are Windows 2003. This is not required if atleast one DC is having windows 2008 R2 OS where ADWS is default.</p>
<p><strong>Output:</strong></p>
<p><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAzQAAADUCAIAAADFvPE/AAAgAElEQVR4nO2dwXEsuY5F5cpz5ZswNrUJY9Ms/7JdmKWWvZ3Fn1AoMgngAiSTqKoTcRb5mEwSvLhEsiV11dfff//777///ddff/3rX//6+vNfn8b39z/f3/8cDwMAAADg//nkw9l/TmaczwAAAKARn3w4AwAAAGjH78PZ758kXX6eVPghU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mXlWInSXM52teH6t/oX1eT3Eoq0XZO7r4+G2H38r6ZGNOWUtkYV70x8t5OcA7fbfmZVLrkfOiw4Pc814rOroVu+0L8dawc2ooXzdlkFAcX8+LgLXSsUqfyfYleoaDKL511huO4zyC39b6bSb1zrzWP5cwo0/4yD1Zw1szYu6F79YEeIxu+6JbPN1AH/REHzgD360J8AzsCwAAkGjyIbQAAAAA8PWHwxkAAABAKzicAQAAADSCwxkAAABAIzicAQAAADSCwxkAAABAIzicAQAAADSCwxkAAABAIzicAQAAADSCwxkAAABAIzicAQAAADSCwxkAAABAIzicAQAAADSCwxkAAABAIzicAQAAADSCwxkAAABAIzicAQAAADSCwxkAAABAIzicAQAAADSCwxkAAABAIzicAQAAADSCwxkAAABAIzicAQAAADSCwxkAAABAIzicAQAAADTi9+Hs+/ufCz/9ho0+hUd2sy+YVssEAACAF+byk7Pfh4yf62GjT+qRx4412cPlvsEBAAAAxuw4nA1/6nb5p9OhA7WQGi4EAAAAXozs4UzB7z/8Xaf1iPW7Uf93r/cBnf73kGZ+vcv5DAAAAKYYHs78c0/Iqh87WT+xc36SZ523ZqYIOy9ZPgAAAMDXH/cnZ3cKf3CWQvyJWngwsn7gN3k4U5bGyQwAAACmUA5n4k+Mhv2tf6Z+7OQPGD7u3M0ezvy7nMwAAABglh2HM/+R8Dekwx99ZX+tGUYlDquf3jiZAQAAwAKszzm79HNuWRQe+f2sP8iwXYz/fsbyp1AWlVrm//zvfw857wYAAAA4zod/Q8CRH3dxOAMAAACTTz6czfxsbwYOZwAAAGDyyYczAAAAgHZwOAMAAABoBIczAAAAgEZwOAMAAABoBIczAAAAgEZwOAMAAADow/8BuffNdQxqYLQAAAAASUVORK5CYII=" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://techibee.com/active-directory/powershell-move-computer-accounts-from-default-container-to-specific-ou/1383/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>PowerShell: How to get nested Active Directory group members</title>
		<link>http://techibee.com/active-directory/powershell-how-to-get-nested-active-directory-group-members/1297?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=powershell-how-to-get-nested-active-directory-group-members</link>
		<comments>http://techibee.com/active-directory/powershell-how-to-get-nested-active-directory-group-members/1297#comments</comments>
		<pubDate>Sun, 01 Jan 2012 18:51:25 +0000</pubDate>
		<dc:creator>Sitaram Pamarthi</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[activedirectory]]></category>
		<category><![CDATA[Get AD Group Membership recursivly using PowerShell]]></category>
		<category><![CDATA[powershell]]></category>

		<guid isPermaLink="false">http://techibee.com/?p=1297</guid>
		<description><![CDATA[This post helps you to understand how to query nested group members using powershell. The MS given ActiveDirectory powershell module doesn&#8217;t provide a direct way to get all the members part of a security group. This information is useful because you can know who all will get permissions granted to a particular security group if [...]]]></description>
			<content:encoded><![CDATA[<p>This post helps you to understand how to query nested group members using powershell. The MS given <strong>ActiveDirectory</strong> powershell module doesn&#8217;t provide a direct way to get all the members part of a security group. This information is useful because you can know who all will get permissions granted to a particular security group if the security group has sub groups inside it. If there is just one or two levels of sub groups, then maybe we can spend time and write code for querying those groups as well by parsing their names. But how we can handle the situation where we don’t know how many sub groups the group we are querying has and how many levels are there?</p>
<p>To address this requirement I have written a small powershell function that helps you to get all direct and indirect members of a security group in active directory.</p>
<pre class="PowerShellColorizedScript"><span style="color: #00008b;">function</span> <span style="color: #8a2be2;">Get-ADNestedGroupMembers</span> <span style="color: #000000;">{</span>
<span style="color: #a9a9a9;">[</span><span style="color: #add8e6;">cmdletbinding</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #a9a9a9;">]</span>
<span style="color: #00008b;">param</span> <span style="color: #000000;">(</span>
<span style="color: #008080;">[String]</span> <span style="color: #ff4500;">$GroupName</span>
<span style="color: #000000;">)</span>            

<span style="color: #0000ff;">import-module</span> <span style="color: #8a2be2;">activedirectory</span>
<span style="color: #ff4500;">$Members</span> <span style="color: #a9a9a9;">=</span> <span style="color: #0000ff;">Get-ADGroupMember</span> <span style="color: #000080;">-Identity</span> <span style="color: #ff4500;">$GroupName</span>
<span style="color: #ff4500;">$members</span> <span style="color: #a9a9a9;">|</span> <span style="color: #0000ff;">%</span> <span style="color: #000000;">{</span>
    <span style="color: #00008b;">if</span><span style="color: #000000;">(</span><span style="color: #ff4500;">$_</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">ObjectClass</span> <span style="color: #a9a9a9;">-eq</span> <span style="color: #8b0000;">"group"</span><span style="color: #000000;">)</span> <span style="color: #000000;">{</span>
        <span style="color: #0000ff;">Get-ADNestedGroupMembers</span> <span style="color: #000080;">-GroupName</span> <span style="color: #ff4500;">$_</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">distinguishedName</span>
    <span style="color: #000000;">}</span> <span style="color: #00008b;">else</span> <span style="color: #000000;">{</span>
        <span style="color: #0000ff;">return</span> <span style="color: #ff4500;">$_</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">distinguishedname</span>
    <span style="color: #000000;">}</span>
<span style="color: #000000;">}</span>            

<span style="color: #000000;">}</span></pre>
<p>In this code I am using <strong>Get-ADGroupMember </strong>cmdlet which is part of <strong>activedirectory</strong> module. This code uses recursive function call to query group members when a sub group is found.</p>
<p><strong>Usage:</strong></p>
<p><a href="http://techibee.com/wp-content/uploads/2012/01/adnestedgroups.png"><img class="aligncenter size-full wp-image-1298" title="adnestedgroups" src="http://techibee.com/wp-content/uploads/2012/01/adnestedgroups.png" alt="" width="608" height="109" /></a></p>
<p>Hope this helps… please feel free to post in comments section if you have any questions. This script can be enhanced to display objects of a particular type &#8212; for example, only computers, only users etc. I am doing it here …but let me know if you have the requirement, I will add the code for that as well.</p>
<p>You can export the output to a file using below command.</p>
<pre class='PowerShellColorizedScript'><span style='color:#0000ff'>Get-ADNestedGroupMembers</span> <span style='color:#000080'>-GroupName</span> <span style='color:#8b0000'>"Test1"</span> <span style='color:#a9a9a9'>|</span> <span style='color:#0000ff'>out-file</span> <span style='color:#000080'>-Filepath</span> <span style='color:#8a2be2'>c:\temp\test1.txt</span></pre>
<p>&nbsp;</p>
<p>Hope this helps&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://techibee.com/active-directory/powershell-how-to-get-nested-active-directory-group-members/1297/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>PowerShell: Adding a Domain Group to local administrators group on remote computer</title>
		<link>http://techibee.com/active-directory/powershell-adding-a-domain-group-to-local-administrators-group-on-remote-computer/1280?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=powershell-adding-a-domain-group-to-local-administrators-group-on-remote-computer</link>
		<comments>http://techibee.com/active-directory/powershell-adding-a-domain-group-to-local-administrators-group-on-remote-computer/1280#comments</comments>
		<pubDate>Sun, 01 Jan 2012 17:39:06 +0000</pubDate>
		<dc:creator>Sitaram Pamarthi</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[adding group tp local administrators on remote computer]]></category>
		<category><![CDATA[powershell]]></category>

		<guid isPermaLink="false">http://techibee.com/?p=1280</guid>
		<description><![CDATA[Adding domain groups to local administrators group on remote computers(servers/workstations) is most common activity any system administrator do. I got similar task today and realized that I don&#8217;t have a PowerShell function to do. We know it is simple and can build command on fly, but having a function is much more useful. So, I [...]]]></description>
			<content:encoded><![CDATA[<p>Adding domain groups to local administrators group on remote computers(servers/workstations) is most common activity any system administrator do. I got similar task today and realized that I don&#8217;t have a PowerShell function to do. We know it is simple and can build command on fly, but having a function is much more useful. So, I have written below function and added to my techibee module(will publish this soon).</p>
<p>This script takes three arguments. 1) ComputerName &#8212; on which you want to do this operation. 2)GroupName &#8212; that you want to add to the local administrators group of remote computer 3) DomainName &#8212; an optional parameter using which you can pass the domain name if the group you are adding belongs to different domain that of your computer is currently in.</p>
<pre class="PowerShellColorizedScript"><span style="color: #00008b;">function</span> <span style="color: #8a2be2;">Add-DomainGroupToLocalAdministrator</span> <span style="color: #000000;">{</span>
<span style="color: #00008b;">param</span> <span style="color: #000000;">(</span>
<span style="color: #a9a9a9;">[</span><span style="color: #add8e6;">parameter</span><span style="color: #000000;">(</span><span style="color: #000000;">Mandatory</span> <span style="color: #a9a9a9;">=</span> <span style="color: #ff4500;">$true</span><span style="color: #000000;">)</span><span style="color: #a9a9a9;">]</span>
<span style="color: #ff4500;">$ComputerName</span><span style="color: #a9a9a9;">,</span>            

<span style="color: #a9a9a9;">[</span><span style="color: #add8e6;">parameter</span><span style="color: #000000;">(</span><span style="color: #000000;">Mandatory</span> <span style="color: #a9a9a9;">=</span> <span style="color: #ff4500;">$true</span><span style="color: #000000;">)</span><span style="color: #a9a9a9;">]</span>
<span style="color: #ff4500;">$GroupName</span><span style="color: #a9a9a9;">,</span>            

<span style="color: #ff4500;">$DomainName</span>
<span style="color: #000000;">)</span>            

<span style="color: #00008b;">if</span><span style="color: #000000;">(</span><span style="color: #a9a9a9;">!</span><span style="color: #000000;">(</span><span style="color: #ff4500;">$DomainName</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">{</span>
    <span style="color: #0000ff;">Import-Module</span> <span style="color: #8a2be2;">ActiveDirectory</span>
    <span style="color: #ff4500;">$DomainName</span> <span style="color: #a9a9a9;">=</span> <span style="color: #000000;">(</span><span style="color: #0000ff;">Get-AdDomain</span><span style="color: #000000;">)</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">DNSRoot</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">ToString</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span>
<span style="color: #000000;">}</span>            

<span style="color: #00008b;">try</span> <span style="color: #000000;">{</span>            

    <span style="color: #ff4500;">$AdminGroup</span> <span style="color: #a9a9a9;">=</span> <span style="color: #008080;">[ADSI]</span><span style="color: #000000;">(</span><span style="color: #8b0000;">"WinNT://$ComputerName/Administrators,Group"</span><span style="color: #000000;">)</span>
    <span style="color: #ff4500;">$AdminGroup</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">Add</span><span style="color: #000000;">(</span><span style="color: #8b0000;">"WinNT://$DomainName/$GroupName,Group"</span><span style="color: #000000;">)</span>
    <span style="color: #0000ff;">Write-host</span> <span style="color: #8b0000;">"Successfully Added $GroupName to local administrators group of $computerName"</span>            

<span style="color: #000000;">}</span>
<span style="color: #00008b;">catch</span> <span style="color: #000000;">{</span>
    <span style="color: #0000ff;">Write-Error</span> <span style="color: #ff4500;">$_</span>
<span style="color: #000000;">}</span>            

<span style="color: #000000;">} </span></pre>
<p>Hope this helps&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://techibee.com/active-directory/powershell-adding-a-domain-group-to-local-administrators-group-on-remote-computer/1280/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get Group Policy permissions using powershell</title>
		<link>http://techibee.com/active-directory/how-to-get-group-policy-permissions-using-powershell/1259?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-get-group-policy-permissions-using-powershell</link>
		<comments>http://techibee.com/active-directory/how-to-get-group-policy-permissions-using-powershell/1259#comments</comments>
		<pubDate>Tue, 20 Dec 2011 19:08:09 +0000</pubDate>
		<dc:creator>Sitaram Pamarthi</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Group Policies]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[activedirectory]]></category>
		<category><![CDATA[gpo]]></category>
		<category><![CDATA[group policy]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[query gpo permissions using powershell]]></category>

		<guid isPermaLink="false">http://techibee.com/?p=1259</guid>
		<description><![CDATA[Using PowerShell, we can query who has permissions to a given GPO or a list of GPOs. We can do this either using Quest Active Roles cmdlets or by using native cmdlets that comes along with Windows 7 installation. In this post, I am going to demonstrate and show you the native method. To use [...]]]></description>
			<content:encoded><![CDATA[<p>Using PowerShell, we can query who has permissions to a given GPO or a list of GPOs. We can do this either using Quest Active Roles cmdlets or by using native cmdlets that comes along with Windows 7 installation. In this post, I am going to demonstrate and show you the native method. To use the native method, you must be running one of the following:</p>
<ul>
<li>Windows Server 2008 R2 on a domain controller</li>
<li>Windows Server 2008 R2 on a member server that has the GPMC installed</li>
<li>Windows® 7 with Remote Server Administration Tools (RSAT) installed. (RSAT includes the GPMC and the Group Policy cmdlets)</li>
</ul>
<p>GPMC(or RSAT) installation also installs a powershell module called <strong>grouppolicy</strong> using which we can query the GPOs. Before start dealing with GPOs, we should import this module by using <strong>import-module GroupPolicy</strong> command.</p>
<p>Below is the sample code that helps you get permissions of a give a GPO.</p>
<pre class="PowerShellColorizedScript"><span style="color: #00008b;">function</span> <span style="color: #8a2be2;">Get-GPOPermissions</span> <span style="color: #000000;">{</span>            

<span style="color: #00008b;">param</span><span style="color: #000000;">(</span><span style="color: #ff4500;">$GpoName</span><span style="color: #000000;">)</span>
<span style="color: #0000ff;">import-module</span> <span style="color: #8a2be2;">GroupPolicy</span>            

<span style="color: #ff4500;">$permsobj</span> <span style="color: #a9a9a9;">=</span> <span style="color: #0000ff;">Get-GPPermissions</span> <span style="color: #000080;">-Name</span> <span style="color: #ff4500;">$GPOName</span> <span style="color: #000080;">-All</span>
<span style="color: #00008b;">foreach</span> <span style="color: #000000;">(</span><span style="color: #ff4500;">$perm</span> <span style="color: #00008b;">in</span> <span style="color: #ff4500;">$permsobj</span><span style="color: #000000;">)</span> <span style="color: #000000;">{</span>            

    <span style="color: #ff4500;">$obj</span> <span style="color: #a9a9a9;">=</span> <span style="color: #0000ff;">New-Object</span> <span style="color: #000080;">-TypeName</span> <span style="color: #8a2be2;">PSObject</span> <span style="color: #000080;">-Property</span> <span style="color: #000000;">@{</span>
   <span style="color: #000000;">GPOName</span>  <span style="color: #a9a9a9;">=</span> <span style="color: #ff4500;">$GPOName</span>
   <span style="color: #000000;">AccountName</span> <span style="color: #a9a9a9;">=</span> <span style="color: #000000;">$(</span><span style="color: #ff4500;">$perm</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">trustee</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">name</span><span style="color: #000000;">)</span>
        <span style="color: #000000;">AccountType</span> <span style="color: #a9a9a9;">=</span> <span style="color: #000000;">$(</span><span style="color: #ff4500;">$perm</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">trustee</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">sidtype</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">tostring</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><span style="color: #000000;">)</span>
        <span style="color: #000000;">Permissions</span> <span style="color: #a9a9a9;">=</span> <span style="color: #000000;">$(</span><span style="color: #ff4500;">$perm</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">permission</span><span style="color: #000000;">)</span>
 <span style="color: #000000;">}</span>
<span style="color: #ff4500;">$obj</span> <span style="color: #a9a9a9;">|</span> <span style="color: #0000ff;">Select</span> <span style="color: #8a2be2;">GPOName</span><span style="color: #a9a9a9;">,</span> <span style="color: #8a2be2;">AccountName</span><span style="color: #a9a9a9;">,</span> <span style="color: #8a2be2;">AccountType</span><span style="color: #a9a9a9;">,</span> <span style="color: #8a2be2;">Permissions</span>            

<span style="color: #000000;">}</span>
<span style="color: #000000;">}</span></pre>
<p><strong>Below is the sample output:</strong></p>
<p><a href="http://techibee.com/wp-content/uploads/2011/12/gpo-permissions.png"><img class="aligncenter size-full wp-image-1268" title="gpo permissions" src="http://techibee.com/wp-content/uploads/2011/12/gpo-permissions.png" alt="" width="752" height="157" /></a></p>
<p>Hope this helps. I will continue writing some GPO related scripts in coming days.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://techibee.com/active-directory/how-to-get-group-policy-permissions-using-powershell/1259/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Get SCOM Root Management server name using Powershell</title>
		<link>http://techibee.com/active-directory/how-to-get-scom-root-management-server-name-using-powershell/1261?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-get-scom-root-management-server-name-using-powershell</link>
		<comments>http://techibee.com/active-directory/how-to-get-scom-root-management-server-name-using-powershell/1261#comments</comments>
		<pubDate>Tue, 20 Dec 2011 15:02:23 +0000</pubDate>
		<dc:creator>Sitaram Pamarthi</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SCOM]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[query SCOM RMS server using powershell]]></category>
		<category><![CDATA[Root management server using powershell]]></category>
		<category><![CDATA[SCOM RMS server]]></category>

		<guid isPermaLink="false">http://techibee.com/?p=1261</guid>
		<description><![CDATA[In this post you will learn how to query SCOM RMS server name of a specific SCOM group using powershell script. In all my SCOM scripts that I wrote so far, I hardcoded the SCOM RMS server name. Recently I came across a situation where RMS role is moved to another management server in same [...]]]></description>
			<content:encoded><![CDATA[<p>In this post you will learn how to query SCOM RMS server name of a specific SCOM group using powershell script.</p>
<p>In all my SCOM scripts that I wrote so far, I hardcoded the SCOM RMS server name. Recently I came across a situation where RMS role is moved to another management server in same SCOM group. With this change, obviously all my scripts will fail because the hard coded server is not a RMS server anymore and it has no intelligence to redirect my query to the current RMS sever.</p>
<p>That means we should have a dynamic way using which we can get RMS server automatically from some reliable source. SCOM installations creates a SCP(Service Connection Point) in Active directory for each SCOM group. So now I will show you how to query this SCP using powershell and get the RMS server name.</p>
<p>We can either choose to use build-in Activedirectory module or Quest AD Cmdlets to get information. The below code is based on activedirectory module which is available with Windows 2008 and Windows 7.</p>
<pre class='PowerShellColorizedScript'><span style='color:#00008b'>function</span> <span style='color:#8a2be2'>Get-ScomRMSServer</span> <span style='color:#000000'>{</span>            

<span style='color:#0000ff'>Import-Module</span> <span style='color:#8a2be2'>ActiveDirectory</span>
<span style='color:#ff4500'>$Domainname</span> <span style='color:#a9a9a9'>=</span> <span style='color:#000000'>(</span><span style='color:#0000ff'>Get-ADDomain</span><span style='color:#000000'>)</span><span style='color:#a9a9a9'>.</span><span style='color:#000000'>DistinguishedName</span><span style='color:#a9a9a9'>.</span><span style='color:#000000'>tostring</span><span style='color:#000000'>(</span><span style='color:#000000'>)</span>
<span style='color:#ff4500'>$SCOMObj</span> <span style='color:#a9a9a9'>=</span> <span style='color:#0000ff'>Get-ADObject</span> <span style='color:#000080'>-Filter</span> <span style='color:#8b0000'>"Name -eq 'SDKServiceSCP'"</span> <span style='color:#000080'>-SearchBase</span> <span style='color:#ff4500'>$domainname</span> <span style='color:#000000'>`
</span><span style='color:#000080'>-Properties</span> <span style='color:#8a2be2'>ServiceDNSName</span><span style='color:#a9a9a9'>,</span> <span style='color:#8a2be2'>ServiceClassName</span>
<span style='color:#ff4500'>$SCOMObj</span> <span style='color:#a9a9a9'>|</span> <span style='color:#0000ff'>select</span> <span style='color:#8a2be2'>serviceclassname</span><span style='color:#a9a9a9'>,</span> <span style='color:#8a2be2'>serviceDNSName</span>            

<span style='color:#000000'>}</span></pre>
<p>Thanks to my colleague(Deepesh) who helped with finding this.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://techibee.com/active-directory/how-to-get-scom-root-management-server-name-using-powershell/1261/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fix: Live Communications Server tab is not showing up in Active Directory Users and Computers MMC(dsa.msc)</title>
		<link>http://techibee.com/active-directory/fix-live-communications-server-tab-is-not-showing-up-in-active-directory-users-and-computers-mmcdsa-msc/1181?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fix-live-communications-server-tab-is-not-showing-up-in-active-directory-users-and-computers-mmcdsa-msc</link>
		<comments>http://techibee.com/active-directory/fix-live-communications-server-tab-is-not-showing-up-in-active-directory-users-and-computers-mmcdsa-msc/1181#comments</comments>
		<pubDate>Thu, 17 Nov 2011 18:16:40 +0000</pubDate>
		<dc:creator>Sitaram Pamarthi</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Windows 2008]]></category>
		<category><![CDATA[LCS tab not visible in dsa.msc]]></category>
		<category><![CDATA[lcs tab not visible in user properties]]></category>
		<category><![CDATA[live communications tab not opening]]></category>

		<guid isPermaLink="false">http://techibee.com/?p=1181</guid>
		<description><![CDATA[While having some discussion with my wife today, I came across an interesting scenario where &#8220;Active Directory Users and Computers&#8221; MMC is not showing the &#8220;Live Communications Server&#8221; tab in user properties though the LCS administrator tools are installed. I searched about same problem in internet and looks like many people have already experienced this. [...]]]></description>
			<content:encoded><![CDATA[<p>While having some discussion with my wife today, I came across an interesting scenario where &#8220;Active Directory Users and Computers&#8221; MMC is not showing the &#8220;Live Communications Server&#8221; tab in user properties though the LCS administrator tools are installed. I searched about same problem in internet and looks like many people have already experienced this. For some, enabling the &#8220;advanced features&#8221; option in dsa.msc MMC fixed the issue and some people installed the console on XP computers to work around the problem.</p>
<p>In the particular case where my wife did the troubleshooting, she found that LCS administrator tools are of 32-bit version and they were installed on a 64-bit OS server. So, what is the problem? 64-bit OS supports 32-bit right? what is the problem?.</p>
<p>The problem is that, when you launch dsa.msc MMC from run command, it will fire-up 64-bit version of MMC which looks like has some troubles in taking with 32-bit version of LCS tools. Hence, it is not loading the LCS related tabs in the properties of any user accounts.</p>
<p>To work around this problem, one can open dsa.msc in 32-bit mode by just simply typing the below command.</p>
<blockquote><p><span style="color: #0000ff;"><strong>dsa.msc -32</strong></span></p></blockquote>
<p>You can use the similar trick to launch any MMC in 32-bit mode. After opening, just look the process name in task manager, you will find mmc.exe*32 which indicates a 32-bit process name. You will find normal mmc.exe if you run mmc without -32 switch.</p>
<p>I somehow felt this is interested topic every systemadmin should aware. Hence authored this post.</p>
<p>Hope this helps. Happy learning&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://techibee.com/active-directory/fix-live-communications-server-tab-is-not-showing-up-in-active-directory-users-and-computers-mmcdsa-msc/1181/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>PowerShell: How to know the originating DC of a Active Directory object</title>
		<link>http://techibee.com/active-directory/powershell-how-to-know-the-originating-dc-of-a-active-directory-object/1160?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=powershell-how-to-know-the-originating-dc-of-a-active-directory-object</link>
		<comments>http://techibee.com/active-directory/powershell-how-to-know-the-originating-dc-of-a-active-directory-object/1160#comments</comments>
		<pubDate>Fri, 11 Nov 2011 18:13:20 +0000</pubDate>
		<dc:creator>Sitaram Pamarthi</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[ad metadata using powershell]]></category>
		<category><![CDATA[original DC of a object]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[query active directory metadata using powershell]]></category>

		<guid isPermaLink="false">http://techibee.com/?p=1160</guid>
		<description><![CDATA[Originating DC means the Domain controller on which the object is created first. From the originating DC, the changes will replicate to other DCs in the domain. Some times this information is useful/crucial to know where exactly the object is created. This helps is troubleshooting AD replication related issues and sometimes in forensic investigation. When [...]]]></description>
			<content:encoded><![CDATA[<p>Originating DC means the Domain controller on which the object is created first. From the originating DC, the changes will replicate to other DCs in the domain. Some times this information is useful/crucial to know where exactly the object is created. This helps is troubleshooting AD replication related issues and sometimes in forensic investigation.</p>
<p>When ever a object is created in active directory, it stores the originating DC name in the meta data of that object. Meta data is something which we can not see from the general AD management tools like dsa.msc or adssite.msc. To view meta data, either we need to use repadmin or the dotnet object. You all know how to use repadmin so in this post I will give you a powershell script which displays the metadata of a given object.</p>
<pre class="PowerShellColorizedScript"><span style="color: #ff4500;">$Domain</span> <span style="color: #a9a9a9;">=</span> <span style="color: #8b0000;">"techibee.com"</span>
<span style="color: #ff4500;">$objectDN</span> <span style="color: #a9a9a9;">=</span> <span style="color: #8b0000;">"cn=user1,cn=users,dc=techibee,dc=com"</span>
<span style="color: #ff4500;">$context</span> <span style="color: #a9a9a9;">=</span> <span style="color: #0000ff;">new-object</span> <span style="color: #8a2be2;">System.DirectoryServices.ActiveDirectory.DirectoryContext</span><span style="color: #000000;">(</span><span style="color: #8b0000;">"Domain"</span><span style="color: #a9a9a9;">,</span><span style="color: #ff4500;">$domain</span><span style="color: #000000;">)</span>
<span style="color: #ff4500;">$dc</span> <span style="color: #a9a9a9;">=</span> <span style="color: #008080;">[System.DirectoryServices.ActiveDirectory.DomainController]</span><span style="color: #a9a9a9;">::</span><span style="color: #000000;">findOne</span><span style="color: #000000;">(</span><span style="color: #ff4500;">$context</span><span style="color: #000000;">)</span>
<span style="color: #ff4500;">$meta</span> <span style="color: #a9a9a9;">=</span> <span style="color: #ff4500;">$dc</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">GetReplicationMetadata</span><span style="color: #000000;">(</span><span style="color: #ff4500;">$objectDN</span><span style="color: #000000;">)</span>
<span style="color: #ff4500;">$meta</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">values</span></pre>
<p>The above script takes two arguments, domain name and object DN and lists all the attributes and their originating DC names. Hope this helps&#8230;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://techibee.com/active-directory/powershell-how-to-know-the-originating-dc-of-a-active-directory-object/1160/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

