Search This Blog

Showing posts with label Perfomance. Show all posts
Showing posts with label Perfomance. Show all posts

Feb 14, 2012

User unable to connect to OCS because token size was too large

Hello ALL,

A small issue that occurred and I'd like to share. Simple but sometimes you need to read.
 

Issue:

A user was unable to connect to OCS with Office Communicator.

Symptoms:

 Error message was: Cannot sign in to Communicator. You may have entered your sign-in address, user name incorrectly, or the authentication service may be incompatible with this version of the program. If your sign-in information is correct and the problem persists, please contact your system administrator.

System Event log entry was:

The kerberos SSPI package generated an output token of size 12175 bytes, which was too large to fit in the token buffer of size 12000 bytes, provided by process id 6492.

The output SSPI token being too large is probably the result of the user blablabla@mpc.local being a member of a large number of groups.

It is recommended to minimize the number of groups a user belongs to. If the problem can not be corrected by reduction of the group memberships of this user, please contact your system administrator to increase the maximum token size, which in term is configured machine-wide via the following registry value: HKLM\SYSTEM\CurrentControlSet\Control\Lsa\Kerberos\Parameters\MaxTokenSize.



Solution:
Reduce the number of groups to which the user belongs.

Explanation: The user is not able to authenticate because the Kerberos token that is generated during authentication attempts has a fixed maximum size. Transports such as remote procedure call (RPC) and HTTP rely on the MaxTokenSize value when they allocate buffers for authentication. In Windows 2000 (the original released version), the MaxTokenSize value is 8,000 bytes. In Windows 2000 Service Pack 2 (SP2) and Microsoft Windows Server 2003 and and still remains in Windows 7 and Windows 2008 R2, the MaxTokenSize value is 12,000 bytes.

If a user is a member of more than 120 groups, the buffer that is determined by the MaxTokenSize value is not large enough. As a result, users cannot authenticate, and they may receive an "out of memory" error message.

This is why the default value is not a hard limit, the maximum recommended configuration is 65535 bytes or 64k. It is recommended that you do not set the MaxTokenSize greater than 65535 bytes or 64k. If you set the MaxTokenSize greater than 65535 bytes applications using Kerberos authentication could potentially fail.

If you want the another solution for this same case is change the MaxTokenSize.


Articles Related
===========

New resolution for problems with Kerberos authentication when users belong to many groups
http://support.microsoft.com/kb/327825

MaxTokenSize and Kerberos Token Bloat
http://blogs.technet.com/b/shanecothran/archive/2010/07/16/maxtokensize-and-kerberos-token-bloat.aspx


Feb 6, 2012

VSS - Consuming Free Disk Space


    ALL,

    This is a simple post but it can helps sometimes due misunderstanding about VSS or due missing configuration VSS properly.


    Symptom
    ============


    The folder 'System Volume Information' has been consuming all free space under drive D:\ (it can happens in other drive letter like C:\, E:\) 


    It's important always check all drivers you have on the Server to make sure where the VSS is configured.


    Solution
    ==============

    • Identified the Volume Shadow Copy was misconfigured and it's cause the lack of space.

    Volume “D:\”  was configured with default VSS configured
    Volume “C:\” hadn't any size limit configure properly and the Shadow Copy option was point to another volume "D:\" as the pic below:







    • Shadow copy storage was set to D: drive from C:
    • Configure the Size Limit properly and after that the Disk will release the free data again.


    Articles Related 
    ================
      
    This behavior usually happens on Windows Server 2003, Veritas Backup software is installed. In this case, Symantec has published an article with respect to this behavior and how to solve it.


    Microsoft also published an article with the same procedures:
    http://support.microsoft.com/kb/953617 - Disk space runs out on Windows Server 2003 based computers where Veritas backup is running

    ====================
    Credits by Luciano Brena

Jan 12, 2012

Event Viewer Cannot Startup / Service Unavailable

Hello!
I guess it could not be so helpful but yesterday I was trying simulate some action on my PC and check Event Viewer Logs and for my surprise what happened?!? My fuckin' Event Viewer wasn't working.

When I tried open the Event Viewer the MMC did not wokr the information was about "Service is unavailable".

Tried also sstartup using the command "net start eventlog" but the info was error 4201

Using the ERR.exe to find out the error

\>err 4201
# for decimal 4201 / hex 0x1069 :
ERROR_WMI_INSTANCE_NOT_FOUND winerror.h
# The instance name passed was not recognized as valid by a
# WMI data provider.
# 1 matches found for "4201"

Now we know it's a WMI issue. But how fix?

You probably read some articles and info on internet about rename the folder "RTBACKUP" ... Unfortunately it doesn't worked in my case ( my real case :-( )

Solution
==========

This issue happens because the SYSTEM account doesn’t have full control. And you should grant the permission. You've two options (command or GUI):

1. Right-click and choose "Run as Administrator". Type the following commands, then press "Enter"
Please note the space before the command and its parameter.

"takeown /f C:\windows\system32\logfiles\wmi\rtbackup
cacls C:\windows\system32\logfiles\wmi\rtbackup /G administrators:F
cacls C:\windows\system32\logfiles\wmi\rtbackup /G SYSTEM:F"

2. Under the RTBackup Folder go to the security tab, then click advanced.
Click the owner tab. Set yourself as the owner or administrator.
If the SYSTEM account is missing you should add this account and give the Full Permission. After completing Click OK
 
- After rebooting check and see if the Windows Event Log service is started in services.msc


Have FUN! Worked for Vista and Windows7

Nov 1, 2011

How to restore deleted Printers


Hello Everyone!

I worked in one issue that can happen to everyone and understand how to restore/rollback the situation to original state can save your neck.
For some reason there was a single Print Server with many Printers configured and by mistake these printers were deleted accidentally. Now we need to know to rollback these Printers to server.
In this scenario we've a Windows Server 2003.

Actions Taken
==============


    - If for some miracle you've the PrintMig backup of this Print Server, use it now and restore the Printers.
    - If not so we will need the Backup.
    - Checked the full backup of this server.
    - Depending the Backup Solution you will need to double check the way to restore the following folders and files:
    - The restore must contains the system state, system service and, C:\windows\system32\config
    - Finished the Backup Restore Process and restart the Server.
    - After restarting all Printers will be available again! And your neck is safe now :)


Solution
============

    - The solution is: BACKUP ALWAYS!

Nov 8, 2010

Slowness to Logon on citrix/terminal services environment

SYMPTOM
=======

On Windows Server 2003 the logon process is extremely slowness. The process to logon is around 15-20minutes.
After logging there isn't any issue with application or performance. Just during the process.

ENVIRONMENT
===========
Windows Server 2003 ENT SP2 (x64) – 16 GB RAM
Applications: Citrix Metaframe 4.5

SOLUTION
========

1. The First action to solve the issue is getting the "userenv.log". If it log "userenv.log" is not enabled please use the article http://support.microsoft.com/kb/221833 to do that. "How to enable user environment debug logging in retail builds of Windows"


2. For this case we could find some tips and information really important.
3. GPO starts at 13:00:04
4. And finished at 13:27:20 and then still loading others policies. If you enable Userenv logging on the problem server, it shows a delay related to Resultant Set of Policy (RSoP). Check the logs below:
------------------
USERENV(615c.4c80) 13:00:04:767 AllocAdmFileInfo: Adding File name <\\XYZ.domain.com\SysVol\XYZ.domain.com\Policies\{982E46A9-9CDE-45D9-B52B-E75BF7B682E8}\Adm\conf.adm> to the Adm list.
USERENV(615c.4c80) 13:00:04:767 AllocAdmFileInfo: Adding File name <\\XYZ.domain.com\SysVol\XYZ.domain.com\Policies\{982E46A9-9CDE-45D9-B52B-E75BF7B682E8}\Adm\inetres.adm> to the Adm list.
USERENV(615c.4c80) 13:00:04:767 AllocAdmFileInfo: Adding File name <\\XYZ.domain.com\SysVol\XYZ.domain.com\Policies\{982E46A9-9CDE-45D9-B52B-E75BF7B682E8}\Adm\system.adm> to the Adm list.
USERENV(615c.4c80) 13:00:04:767 AllocAdmFileInfo: Adding File name <\\XYZ.domain.com\SysVol\XYZ.domain.com\Policies\{982E46A9-9CDE-45D9-B52B-E75BF7B682E8}\Adm\wmplayer.adm> to the Adm list.
USERENV(615c.4c80) 13:00:04:767 AllocAdmFileInfo: Adding File name <\\XYZ.domain.com\SysVol\XYZ.domain.com\Policies\{982E46A9-9CDE-45D9-B52B-E75BF7B682E8}\Adm\wuau.adm> to the Adm list.
------------------

------------------
USERENV(615c.4c80) 13:27:20:218 LogRegistry RsopData: Successfully logged registry Rsop data
USERENV(615c.4c80) 13:27:37:312 CAdmFileLogger::Log: Logging \\XYZ.domain.com\SysVol\XYZ.domain.com\Policies\{982E46A9-9CDE-45D9-B52B-E75BF7B682E8}\Adm\wuau.adm
USERENV(615c.4c80) 13:27:38:124 CAdmFileLogger::Log: Logging \\XYZ.domain.com\SysVol\XYZ.domain.com\Policies\{982E46A9-9CDE-45D9-B52B-E75BF7B682E8}\Adm\wmplayer.adm
USERENV(615c.4c80) 13:27:38:187 CAdmFileLogger::Log: Logging \\XYZ.domain.com\SysVol\XYZ.domain.com\Policies\{982E46A9-9CDE-45D9-B52B-E75BF7B682E8}\Adm\system.adm
USERENV(615c.4c80) 13:27:38:265 CAdmFileLogger::Log: Logging \\XYZ.domain.com\SysVol\XYZ.domain.com\Policies\{982E46A9-9CDE-45D9-B52B-E75BF7B682E8}\Adm\inetres.adm
USERENV(615c.4c80) 13:27:40:671 CAdmFileLogger::Log: Logging \\XYZ.domain.com\SysVol\XYZ.domain.com\Policies\{982E46A9-9CDE-45D9-B52B-E75BF7B682E8}\Adm\conf.adm
USERENV(615c.4c80) 13:27:43:421 CAdmFileLogger::Log: Logging \\BRCAKP5500WAP\admin$\System32\GroupPolicy\Adm\wuau.adm
USERENV(615c.4c80) 13:27:43:577 CAdmFileLogger::Log: Logging \\BRCAKP5500WAP\admin$\System32\GroupPolicy\Adm\word11.adm
USERENV(615c.4c80) 13:27:45:421 CAdmFileLogger::Log: Logging \\BRCAKP5500WAP\admin$\System32\GroupPolicy\Adm\wmplayer.adm
USERENV(615c.4c80) 13:27:45:484 CAdmFileLogger::Log: Logging \\BRCAKP5500WAP\admin$\System32\GroupPolicy\Adm\system.adm
USERENV(615c.4c80) 13:27:45:609 CAdmFileLogger::Log: Logging \\BRCAKP5500WAP\admin$\System32\GroupPolicy\Adm\ppt11.adm
USERENV(615c.4c80) 13:27:47:359 CAdmFileLogger::Log: Logging \\BRCAKP5500WAP\admin$\System32\GroupPolicy\Adm\office11.adm
USERENV(615c.4c80) 13:27:47:453 CAdmFileLogger::Log: Logging \\BRCAKP5500WAP\admin$\System32\GroupPolicy\Adm\inetres.adm
USERENV(615c.4c80) 13:27:49:187 CAdmFileLogger::Log: Logging \\BRCAKP5500WAP\admin$\System32\GroupPolicy\Adm\excel11.adm
USERENV(615c.4c80) 13:27:49:343 CAdmFileLogger::Log: Logging \\BRCAKP5500WAP\admin$\System32\GroupPolicy\Adm\conf.adm
USERENV(615c.4c80) 13:27:51:343 LogAdmRsopData: Successfully logged Adm data
------------------

5. This issue may occur if RSoP logging is enabled and there is a large WMI repository on the problem server.
6. "The WMI repository is located at the following location: %windir%\System32\Wbem\Repository
RSoP uses the CIMOM database through WMI. When a computer logs on to a network, information such as the computer hardware, Group Policy Software Installation settings, Internet Explorer Maintenance settings, Scripts, Folder Redirection settings, and Security Settings, are written to the CIMOM database. When you start RSoP in logging mode, RSoP reports policy settings that have been applied using the information provided in the CIMOM database."
7. To fix create the Dword value following:
"HKLM\Software\Policies\Microsoft\Windows\System"
Create a new DOWRD "RSoPLogging = HEX 0"

Articles Used
=============
http://support.microsoft.com/kb/2020286
http://technet.microsoft.com/en-us/library/cc783154(WS.10).aspx