Tools of the Trade – Windows USB Download Tool

If you need a simple way to create a bootable Windows XP/Vista/7/8 USB memory stick. Microsoft has created a simple tool. It was created for Windows 7, but still does the trick 🙂

USB Download Tool

The tool will format your USB pen, make it bootable, then copy files from a specified .iso to the drive.

Get it here: http://www.microsoftstore.com/store/msusa/html/pbPage.Help_Win7_usbdvd_dwnTool

 

schtasks.exe or get-scheduledtasksinfo last run results codes.

Both the command line utility schtasks.exe” and the PowerShell command Get-ScheduledTaskInfo will return a column named “Last result”. The return codes differ from the last run result format you typically find in the UI.

Here is some of the status codes from last result:

0 - The operation completed successfully.
1 - Incorrect function called or unknown function called. 2 File not found.
10 - The environment is incorrect. 
267008 - Task is ready to run at its next scheduled time. 
267009 - Task is currently running. 
267010 - The task will not run at the scheduled times because it has been disabled. 
267011 - Task has not yet run. 
267012 - There are no more runs scheduled for this task. 
267013 - One or more of the properties that are needed to run this task on a schedule have not been set. 
267014 - The last run of the task was terminated by the user. 
267015 - Either the task has no triggers or the existing triggers are disabled or not set. 
2147750671 - Credentials became corrupted. 
2147750687 - An instance of this task is already running. 
2147943645 - The service is not available (is "Run only when an user is logged on" checked?). 
3221225786 - The application terminated as a result of a CTRL+C. 
3228369022 - Unknown software exception.

Windows Server 2012 core: domain controller computer account reset

I recently had a domain controller where the computer account had expired. All external authentication failed and i got error messages such as: “The Kerberos client received a KRB_AP_ERR_MODIFIED error from the server”

As this was a Domain Controller and FSMO role keeper a domain re-join was not possible.

Solution (from command line):

  • Stop the KDC service: “Net stop “kerberos Key Distribution Center”
  • Delete kerberos tickets: “klist purge”
  • Reset password: “netdom resetpwd /s:[workingdc] /ud:domain\user /pd:*”
  • restart server: “shutdown -r”

System Center 2012: The order in witch you upgrade System Center 2012 components is very important.

“In an environment that includes two or more components of Microsoft System Center 2012, the order in which you upgrade those components to System Center 2012 Service Pack 1 (SP1) is very important.”

Personally I recommend using this order also for cumulative updates and update rollups.

Upgrade Path

Read more here: http://technet.microsoft.com/en-us/library/jj628203.aspx

Installing .NET Framework 3.5 on Windows 8 and Server 2012 without Internet connection.

If you are using the Windows operating system, the .NET Framework may already be installed on your computer. Specifically, the .NET Framework 4.5 is included with Windows 8 and installed on your computer with the Windows 8 operating system. However, if you install an app that requires a specific version of the .NET Framework, the app’s setup program might install the .NET Framework on your computer or prompt you to install it. For example, the .NET Framework 3.5 is not automatically installed with Windows 8. To run apps that require the .NET Framework 3.5 on Windows 8, you must enable version 3.5 on your computer. There are two ways you can do this: by installing or running an app that requires the .NET Framework 3.5 (that is, by installing the .NET Framework 3.5 on demand), or by enabling the .NET Framework 3.5 in Control Panel. Both options require an Internet connection.

http://msdn.microsoft.com/en-us/library/hh506443.aspx

Microsoft, Infrastructure planning and design guides

Yes! They exist, If you are planning an implementation of a Microsoft System Center 2012 or other Microsoft Products or just seeking information on what is new, recommended planning steps or an overview of the product architecture. The Infrastructure Planning and Design (IPD) Guide Series provides you with quick an concrete information specified to each Product.

Great Tools whether you are a product specialist, receiving customer, a technical sales resource or project manager. Read up!

http://technet.microsoft.com/en-us/solutionaccelerators/ee395430

Force BSOD on a client or server

Some times you may need to force a BSOD on a Client or server for testing purposes. There is a feature in Windows that let’s you do this:

  • Start regedit
  • Locate the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\kbdhid\Parameter
  • Create DWORD Value: CrashOnCtrlScroll
  • Assign CrashOnCtrlScroll Value 1
  • Exit Registry Editor.

You will now be able to BSOD Your Client/server With right ctrl and hitting scroll Lock twice.

IIS – The HTTP headers are already written to the client browser.

If you are getting this error from a ASP web application: error ‘ASP 0156 : 80004005’ Header Error, The HTTP headers are already written to the client browser. Any HTTP header modifications must be made before writing page content.

Please check that buffering is enabled in IIS.

  • In the IIS management console, navigate to your website
  • Select the ASP node.
  • Set “Enable buffering” to True