terça-feira, 1 de fevereiro de 2011

Removendo os Logs de Sincronização do WSUS

Clearing the Synchronization history in the WSUS console
You know how after you’ve been using WSUS for a while and you go into the admin console, then to the Synchronization node, you can end up waiting and waiting for the list to enumerate?  This is the list I’m talking about:

























Have you ever wished you could just clear that list and start fresh?  Well with a simple SQL script now you can.  To do this, the first thing you’ll need to do is fire up the SQL Server Management Studio and connect to whatever server your WSUS server is using.  In my case I’m using SQL Server 2008 so mine looks like this:

















Now if you’re using the Internal Database for WSUS then you’ll want to connect to \\.\pipe\MSSQL$MICROSOFT##SSEE\sql\query which is what I did below:










Next navigate to the SUSDB database:







































Right-click on SUSDB and select New Query:
























In the Query windows enter and execute the following query:
USE SUSDB
GO
DELETE FROM tbEventInstance WHERE EventNamespaceID = '2' AND EVENTID IN ('381', '382', '384', '386', '387', '389')
Just paste those three lines in the window and hit the Execute button:













On my system I get this.  Note the success at the bottom:














That’s about all there is to it so you can go ahead and close the SQL Management Studio.  Now when you go to the WSUS admin console it should look something like this:

 

segunda-feira, 31 de janeiro de 2011

Removendo as licenças do Terminal Server de um cliente do RDP

Se um cliente sem licença se conectar a um Terminal Server pela primeira vez, o Terminal Server emite para o cliente um token temporário de CAL (Licença de acesso do cliente) do Terminal Server. Após o usuário estar conectado na sessão, o Terminal Server instrui o Servidor de licença a marcar o token temporário de CAL do Terminal Server emitido como válido. Na próxima vez que o cliente se conectar, uma tentativa será feita para atualizar o token temporário de CAL do Terminal Server válido para um token de CAL do outro Terminal Server completo. Se nenhum token de licença estiver disponível, o token temporário de CAL do Terminal Server continuará a funcionar por 90 dias. A licença é armazenada no Registro do cliente.

Clientes de RDP de 32 bits armazenam a licença sob a chave HKEY_LOCAL_MACHINE\Software\Microsoft\MSLicensing

Fonte: http://support.microsoft.com/kb/187614/pt-br

sexta-feira, 24 de dezembro de 2010

Checkdisk (chkdsk) inicia toda vez que o Windows liga

Se isso está ocorrendo é provável que o HD esteja com problemas, porém para resolver esse problema basta copiar o conteúdo abaixo para um bloco de notas e savá-lo com a extensão (.reg) e em seguida executá-lo.

 Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession Manager]
"AutoChkTimeOut"=dword:0000000
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession Manager]
"BootExecute"=hex(7):61,00,75,00,74,00,6f,00,63,00,68,00,65,00,63,00,6b,00,20,
00,61,00,75,00,74,00,6f,00,63,00,68,00,6b,00,20,00,2a,00,00,00,00,00
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinlogon]
"SFCScan"=dword:00000000
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerMyComputercleanuppath]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,63,00,6c,00,
65,00,61,00,6e,00,6d,00,67,00,72,00,2e,00,65,00,78,00,65,00,20,00,2f,00,44,
00,20,00,25,00,63,00,00,00