Blog posts about windows

  • Major Microsoft code sample library

    January 18, 2011 | Tags: ASP.NET, Windows, Open source, C#, Snippet
    The Microsoft Community team provide an awesome collections of code samples over at CodePlex.

    Among these you can find:

    # ASP.NET Code Samples
    # Silverlight Code Samples
    # Windows Azure Code Samples
    # WPF Code Samples
    # Windows Forms Code Samples
    # Windows 7 Code Samples
    # Data Platform Code Samples
    # Office Development Code Samples
    # Windows Workflow Code Samples
    # Interop and Fusion Code Samples
    # Windows Base and .NET General Code Samples
    # Windows UI Code Samples
    # Security Code Samples
    # Windows Shell Code Samples
    # XML Code Samples
    # COM Code Samples
    # IPC and RPC Code Samples
    # Diagnostics Code Samples
    # Visual Studio Extensibility Code Samples
    # File System Code Samples
    # IIS Code Samples
    # Windows Service Code Samples


    You'll find the samples in the All-In-One Code Framework Sample Catalog.

    Or why not download the complete library?

  • Windows XP SP3 upgrade problem

    October 20, 2009 | Tags: XP, Windows, SP, Troubleshooting
    I had some problem upgrading my old Windows XP2 machine to XP3 today. Recieving error messages such as:
    Service Pack 3 setup error. Access is denied.
    Service Pack 3 setup error. Service Pack installation did not complete.
    Service Pack 3 Setup could not backup registry value HKCR\.wdp,\Content Type\' 5: Access is denied.

    Here is the solution:
    • Download and install the SubInACL.exe file from Microsoft
    • Create a .bat file with the following content:
      cd /d "%ProgramFiles%\Windows Resource Kits\Tools"
      subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f
      subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f
      subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f
      subinacl /subdirectories %SystemDrive% /grant=administrators=f /grant=system=f
      subinacl /subdirectories %windir%\*.* /grant=administrators=f /grant=system=f
      secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose
    • Run the bat file. Restart when it's done and try install SP3

    Notice! The script above is for the English version of Windows (where the admin group is named Administrators. If you run this in localized Windows XP you'll end up with something like this when you run the script:
    LookupAccountName : C:\windows\*.*:administrators 1337 Detta säkerhets-ID har felaktig struktur.
    Last Syntax Error:WARNING : /grant=administrators=f : Error when checking arguments
    Change all occurences in the script above from grant=administrators to grant=administratörer or whatever you admin group is named. If you need to use national characters in the group name use Edit from the command prompt in order to get proper encoding.

  • Can't log in to Windows after changing domain or workgroup?

    October 16, 2009 | Tags: Windows, Troubleshooting
    If you're having problem with logging into your Windows XP/2000/Vista/Whatever after you changed domain or workgroup. Here's the possible ways to solve it.

    Login using your local Administrator account. If you have forgotten the password try to reset the local Administrator password instead. You'll find a great tool for it here:

    http://home.eunet.no/~pnordahl/ntpasswd/