ADTasks.xml
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04">
<Obj RefId="0"> <TN RefId="0"> <T>System.Management.Automation.PSCustomObject</T> <T>System.Object</T> </TN> <MS> <S N="Title">AD Tasks</S> <Obj N="Items" RefId="1"> <TN RefId="1"> <T>System.Object[]</T> <T>System.Array</T> <T>System.Object</T> </TN> <LST> <Obj RefId="2"> <TNRef RefId="0" /> <MS> <I32 N="ItemNumber">1</I32> <S N="MenuItem">Get Domain Admins</S> <SBK N="Action">get-adgroupmember "Domain Admins" | Select Name</SBK> </MS> </Obj> <Obj RefId="3"> <TNRef RefId="0" /> <MS> <I32 N="ItemNumber">2</I32> <S N="MenuItem">Get Domain Controllers</S> <SBK N="Action">(Get-ADDomain).ReplicaDirectoryServers | Get-ADDomainController | Select Name,IPv4Address,IsGlobalCatalog</SBK> </MS> </Obj> <Obj RefId="4"> <TNRef RefId="0" /> <MS> <I32 N="ItemNumber">3</I32> <S N="MenuItem">Get FSMO Roles</S> <SBK N="Action">_x000D__x000A_$domain = Get-ADDomain_x000D__x000A_$forest = Get-ADForest_x000D__x000A_[pscustomobject]@{_x000D__x000A_Domain = $domain.name_x000D__x000A_Forest = $forest.Name_x000D__x000A_PDC = $domain.PDCEmulator_x000D__x000A_RIDMaster = $domain.RIDMaster_x000D__x000A_InfrastructureMaster = $domain.InfrastructureMaster_x000D__x000A_SchemaMaster = $forest.SchemaMaster_x000D__x000A_DomainNamingMaster = $forest.DomainNamingMaster_x000D__x000A_}_x000D__x000A_</SBK> </MS> </Obj> <Obj RefId="5"> <TNRef RefId="0" /> <MS> <I32 N="ItemNumber">4</I32> <S N="MenuItem">Check DC services</S> <SBK N="Action">_x000D__x000A_$dcs = (Get-ADDomain).ReplicaDirectoryServers_x000D__x000A_$svc = "DNS","KDC","ADWS","NTDS"_x000D__x000A_Get-Service -Name $svc -ComputerName $dcs | Sort Status,Computername |_x000D__x000A_Select @{Name="DomainController";Expression={$_.Machinename}},Name,Displayname,Status_x000D__x000A_</SBK> </MS> </Obj> </LST> </Obj> </MS> </Obj> </Objs> |