Pages

Friday, August 17, 2012

Recreating a missing virtual machine disk (VMDK) descriptor file

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1002511

Overview Steps

To create a virtual machine disk descriptor file:
  1. Identify the size of the flat file in bytes.
  2. Create a new blank virtual disk that is the same size as the original. This serves as a baseline example that is modified in later steps.

    Note: This step is critical to assure proper disk geometry.
  3. Rename the descriptor file (also referred to as a header file) of the newly-created disk to match the name of the original virtual disk.
  4. Modify the contents of the renamed descriptor file to reference the flat file.
  5. Remove the leftover temporary flat file of the newly-created disk, as it is not required.
Note: This procedure will not work on virtual disks configured with a Para-virtualized SCSI controller in the virtual machine.

You can see video: http://www.youtube.com/watch?feature=player_embedded&v=tQmZOavolPY

java - No XML content. Please add a root view or layout to your document.

Во время сборки и запуска в eclipse нужно переключиться на окно с файлом java кода. Это довольно давнишняя проблема дружбы eclipse и android

During the build and run in eclipse should switch to a window with a file java code. This is a fairly long-standing problem of friendship eclipse and android.   

Friday, July 27, 2012

Troubleshooting Group Policy by Using Log Files

Because Userenv tracks the Group Policy engine and registry-based Group Policy, it is the most frequently used log file for Group Policy troubleshooting.

To use userenv.log || gpsvc.log ( %windir%\debug\usermode\UserEnv.log or gpsvc.log in W7 ) you need to first enable verbose logging.

To enable verbose logging
  1. Log onto the client computer as the administrator and run Regedit.
  2. Locate the following key: KEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon.
  3. Right click Winlogon, select New, and then click DWORD Value.
  4. Enter the following name for the DWORD Value: UserEnvDebugLevel.
  5. Enter 30002 (see description below) as the hexadecimal value. This writes the userenv into userenv.log, located in the \%windir%\debug\usermode directory.
  6. Run "gpupdate /force" to ensure a full listing of total Group Policy processing and restart the machine.

-------------------------------------------------

Use Registry Editor to add or to modify the following registry entry:
Subkey:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Winlogon

Entry: UserEnvDebugLevel
Type: REG_DWORD
Value data: 10002 (Hexadecimal)
UserEnvDebugLevel can have the following values:
NONE 0x00000000
NORMAL 0x00000001
VERBOSE 0x00000002
LOGFILE 0x00010000
DEBUGGER 0x00020000
The default value is NORMAL|LOGFILE (0x00010001).

Note To disable logging, select NONE (0x00000000).

You can combine these values. For example, you can combine VERBOSE 0x00000002 and LOGFILE 0x00010000 to get 0x00010002. Therefore, if UserEnvDebugLevel is given a value of 0x00010002, LOGFILE and VERBOSE are both turned on. Combining these values is the same as using an OR statement.
0x00010000 OR 0x00000002 = 0x00010002
Note If you set UserEnvDebugLevel to 0x00030002, the most verbose details are logged in the Userenv.log file.

The log file is written to the %Systemroot%\Debug\UserMode\Userenv.log file. If the Userenv.log file is larger than 300 KB, the file is renamed Userenv.bak, and a new Userenv.log file is created. This action occurs when a user logs on locally or by using Terminal Services, and the Winlogon process starts. However, because the size check only occurs when a user logs on, the Userenv.log file may grow beyond the 300 KB limit.

Although the 300-KB limit cannot be modified, you can set the read-only attribute on the Userenv.bak file, and the Userenv.log file will grow indefinitely. You must only use this method temporarily, remove the read-only attribute on the Userenv.bak file as soon as you are finished troubleshooting.

    Tuesday, October 18, 2011

    Could not load file or assembly 'Microsoft.SqlServer.Sqm ...

    When you try to run SQL 2008 Management Studio on Windows 2008 R2 x64 you receive this error:

    Microsoft SQL Server Management Studio
    Cannot show requested dialog.

    Could not load file or assembly 'Microsoft.SqlServer.Sqm, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The module was expected to contain an assembly manifest. (SqlMgmt)

    Solution:

    Copy the file Microsoft.SqlServer.Sqm.dll located on
    C:\Program Files\Microsoft SQL Server\100\Shared to folder
    C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE and
    C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE.

    Wednesday, March 9, 2011

    Find Objects In Active Directory

    My Network Places -> Network Tasks: Search Active Directory.
    or
    from command line rundll32 dsquery,OpenQueryWindow.

    Active Directory Schema snap-in


    Notice that the Active Directory Schema snap-in is not available to add. The Active Directory
    Schema snap-in is installed with the Active Directory Domain Services role with the
    RSAT, but it is not registered, so it does not appear.

    At the command prompt, type the regsvr32.exe schmmgmt.dll command.

    Monday, February 28, 2011

    Hidden command prompt in Windows Server 2008 installation

    One reason why Windows Server 2008’s install is easy to use is because it is based on a MINWINPC (Mini PC) bootable environment, similar to the Windows PE environment. This means that a number of environment tools are available to the installation environment. Once the Windows manager is loaded, you can access this command prompt by pressing [Shift][F10].