28 May 2014

Hide User Accounts on Windows 7 Logon

To hide additional user accounts on Windows & Logon Use Regedit, also works for Vista.

Hide User Accounts in windows Vista and Windows 7

Open regedit and go to
HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon

  • In the left panel, right click on Winlogon and click New and click Key.
  • Type SpecialAccounts and press Enter
  • In the left panel, right click on SpecialAccounts and click New and click Key.
  • Type UserList and press Enter.
  • In right panel of UserList, right click on a empty area and click New then click DWORD (32bit) Value.
  • Type in the name of the user account that you want to hide and press Enter.eg: Everyday Account.
  • In the right panel, right click on the user account name and click Modify.
  • To hide the user account – Type 0 and click OK. (number zero not the letter)
    Whenever you want to use the account just unhide the it by typing 1 instead of zero.

L'utente "Guest" si chiama "GuestUser" Trovato qui.

Mouse settings not saved after reboot/restart

  • Open msconfig
  • Within the System Configuration dialogue box, click the Startup tab
  • Look for any entries named KHALMNPR or similar, and uncheck the box next to them (there may only be one)
  • Click OK and restart your computer
  • After the restart, change your mouse pointer speed and restart

Occhio anche a quando si re-installano i driver del mouse, o a quando si cambia la porta USB (vengono installati nuovi driver): bisogna disabilitare nuovamente Logitech Setpoint! Trovato qui.

14 May 2014

Office 2007/2003 e MSCOMM32.ocx

Dopo l'aggiornamento KB969898 ci sono problemi ad usare il controllo da Access, per il momomento l'unica soluzione che ho trovato è rimuovere l'aggiornamento in oggetto. Il problema si presenta con il messaggio:
ENG: 'Object doesn't support this property or method'
ITA: 'Metoto o proprietà non supportati dall'oggetto'
Info dettagliate sul perché e il percome.

Trovato qui.



Soluzione alternativa:

Internet Explorer was blocking the MSCOMM control. It likely does so for other activex controls that are installed from unsigned (won't pay a fee) projects.
HKEY_LOCAL_MACHINE\Software\Microsoft\InternetExplorer\ActiveXCompatibility\{648A5600-2C6E-101B-82B6-000000000014}
modify the compatibility flag to a value of 0.

Trovato qui.

06 May 2014

MSSQL - Sostituzione di stringhe con placeholder

DECLARE @s nvarchar(100)

EXEC xp_sprintf @s OUTPUT,  N'Ciao %s!!!!', 'Mondo'

PRINT @s

L'output generato è il seguente:
Ciao Mondo!!!!

Nota: E' supportato solo il parametro %s.

Documentazione su TechNet.