Wednesday, July 31, 2013

Error 12339 and 12344 on Windows 2012 servers

12339
File Server Resource Manager failed to find the claim list 'Global Resource Property List' in Active Directory (ADsPath: LDAP://vhost01.iec.local/CN=Global Resource Property List,CN=Resource Property Lists,CN=Claims Configuration,CN=Services,CN=Configuration,DC=xxx,DC=local). Please check that the claims list configured for this machine in Group Policy exists in Active Directory.
12344
File Server Resource Manager finished syncing claims from Active Directory and encountered errors during the sync (0x80072030, There is no such object on the server.
).  Please check previous event logs for details.
Solution:
Upgraded AD Schema to Windows 2012 (version 56).

Wednesday, June 26, 2013

DHCP on server 2012 cluster

I had a problem with authorization of DHCP server on server 2012 Cluster. The server have teamed adapters with Convergent  Switch (I am not sue it was a problem), So then I try to authorize the server it cannot fully authorized (meaning it still think it is not authorized despite if you try to see authorized server you will see it, but with a bogus IP), and object in AD has the bogus IP address like 250.0.0.1. In event log I have the error:

Log Name:      System
Source:        Microsoft-Windows-DHCP-Server
Date:          6/26/2013 2:32:31 PM
Event ID:      1046
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      computername
Description:
The DHCP/BINL service on the local machine, belonging to the Windows Administrative domain domainname, has determined that it is not authorized to start.  It has stopped servicing clients.  The following are some possible reasons for this: 
So I went to "ADSI Edit"  found the object and change IP address in dhcpServers "Attribute Editor" to Real one:

 
After that just restart the DHCP server.

Wednesday, February 06, 2013

Mscorsvw.exe using 50 % of my CPU

mscorsvw.exe is precompiling .NET assemblies in the background. Once it's done, it will go away. To speed up the process run:

ngen.exe executequeueditems

From C:\Windows\Microsoft.NET\Framework64\v4.0.30319 or different .NET installation directory accordingly. 
I had the problem on Windows 2012 server with RDS session configuration.

Thursday, January 17, 2013

The WS-Management Service cannot process the request

Exchange 2010 sp2 try to run PowerSheel:
fix:
Recycle MSExchangePowerShellAppPool in IIS.

Thursday, October 25, 2012

Wednesday, October 17, 2012

Windows 7 Folder Redirection rename the Home folder in "My Documents

PowerShell script to fix the problem:
$myLocations="\\share1\allusers","\\share2\users","\\pshare3\AdminUsers"

foreach ($loc in $myLocations)
{

    set-location $loc
    $items=Get-ChildItem
    foreach ($item in $items)
    {
      if ($item.getType().name -like "DirectoryInfo")
      {
          cd $item.name
          if (test-path desktop.ini) {del .\desktop.ini -force}
          cd ..
      }
    }
}

Friday, September 28, 2012

PowerShell - get users from OU

$ulist=get-aduser -filter * -SearchBase "ou=?,dc=?,dc=?"
foreach ($user in $ulist)
{
$user.samaccountname
add-content -path c:\temp\?.csv $user.samaccountname
}

Wednesday, August 15, 2012

SharePoint Search problem after migration

After migrating from WSS 3.0 to Foundation 2010 cannot search inside a document.
Basically it shows in the document property "Pending", so the document waiting for approval.
Created a small PowerShell script to approve all documents on a site:
________________________________________________________________________

$mySite=Get-SPSite "http://yoursite"
$myWebSub=$mySite.AllWebs
foreach ($myWeb in $myWebSub)
{
    $myWeb=Get-SPWeb $myWeb.url
    $myWeb.url
    $myLIb=$myWeb.lists|where {($_.BaseTemplate -eq "DocumentLibrary")}
    foreach ($lib in $myLib)
    {
        $lib.Title
        $myDocs=$lib.Items
        foreach ($doc in $MyDocs)
        {
            $doc.name                             # only for information
            $doc.file.level                       # only for information
            if (($doc.file.level -eq "Draft") -or ($doc.file.level -eq "Pending")){$doc.file.Approve("script")}
            $doc.file.level                        # only for information
           
        }
    }
}

Thursday, June 28, 2012

Remove last (single) Lync 2010 server manually


Problem: What ever you do, you can not change first pool name, it can come back despite you uninstall the server, deleted databases and so on.
Solution:
  1. Remove the server application and databases and related directories from the server.
  1. Use ADSI to delete all highlighted subkeys, except subkeys under CN=Pools
 After deletion it should looks like this: