Posts Tagged ‘Windows’

Deselect “automatically detect settings” in IE using GPP

Lately I struggled with finding a way to deselect “automatically detect settings” in IE for all users of a customer.


There are no GPO settings for this and the GPP IE settings doesn’t allow to set this for any IE versions before IE10 and the customer needs IE9 for compatibility issues with their SharePoint sites.

After much searching I found a way to set this  using GPP to set a registry setting.

  1. Create a new GPO or edit an existing one
  2. Navigate to User configuration – Preferences – Windows Settings – Registry
  3. Create a new registry item with the following values
    1. Name: DefaultConnectionSettings
    2. Action: Update
    4. Path: Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections
    5. Value Name: DefaultConnectionSettings
    6. Type: REG_BINARY
    7. Data: (make sure you copy the entire line below, it’s several hundred digits)


It should look like this then


This will always clear the “Automatically detect settings” on next logon or gpupdate

Prevent write-output to perform linebreak

November 20, 2014 Leave a comment

Sometimes you want to output some text and append an variable. Problem is that write-output usually performs a linebrak when appending.

$text = "some text."
Write-Output "this is " $text

Output will be:
this is
some text.

There are two ways you can solve this. One is to append the text to the variable before doing write-output. Second is to put the variable inside the quotation marks.

#Example 1
$text = "some text."
$textmessage = "This is " + $text
Write-Output $textmessage

#Example 2
$text = "some text."
Write-Output "this is $($text)"

“No logon servers are available” error after installing updates (SBS2008)

September 5, 2014 Leave a comment

Yesterday I was doing maintenance on a Windows Small Business Server 2008, the Windows Update patches installed successfully and the restart button was pushed. And then the problems started.. Server rebooted and had problems starting several services such as Active Directory Domain Services, DNS, Exchange, Cetificates and several more. Trying to logon to the server with my Domain Admin credentials gave me this error message: sbs_2008

The same error message came when I tried to logon to other servers in the domain. So what does the trick to fix this?

1. Logon to the server with the local administrator username and password (hit “.\administrator”, in username field to force the logon with local admin)
2. when logged into the server, check that services that supposed to be started are started. — as you noted when you did the logon, you got into safe mode…  strange? yes..
3. So, hit the “WIN + R” and type “MSCONFIG” 4. navigate to the “Boot” menu, and remove the “Safe boot – Boot options” hit Apply and restart your server.
5. Give the server some time to startup again and test the logon with an “domain admin” account   Worked for me 🙂  

Windows: New files temporarly not visibel for 3rd party applications

When new files are created on a Windows server some third party apps will not se the new file for a few seconds. This may cause unwanted delays. The reason is that the 3rd party applications uses the Directory Cache to poll for new files. This cache are updated every 10 seconds. To resolve this problem change the Registry string HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Lanmanworkstation\Parameters\DirectoryCacheLifetime (DWORD) to a value of 0. This will disable the cache and resolve the file doesn’t exist issue.

PS: always back up the registry before doing updates. If you do not… well…

DFS Replication error on Domain Controllers

November 20, 2013 Leave a comment

If you have DFS replication errors on one or more domain controllers, first find out witch domain controller that has the error.
log on to all your domain controllers and check the Event log -> Applications and Services Logs -> DFS Replication and look for Warnings.

In this example the domain controller had an dirty shutdown based on power failure.

If you find this one, the resolution is described in the event

1. first of all, take backup of your SYSVOL directory on all domain controllers (usually found under c:\windows\sysvol)
2. run the wmic command described in your event id in an elevated command prompt
3. the method should execute successful and the Return Value should be like 0;

When this is done, you should see an information event in event viewer:

Create a Windows Bootable usb pendrive (windows Vista, 7, 8, 8.1, 10, Server 2008, 2008R2, 2012 and 2012R2)

This procedure lets you install Windows from a usb pendrive. Works from Vista/2008 and later

First you need

* Usb pendrive of at least 4GB (Content will be erased)

* Windows installation medium or iso. Windows Vista or later

Prepare usb pendrive

* Insert the pendrive in an available port and copy any data you need to preserve to another locaiton

* Open an elevated commandprompt (“run as administrator”)

* Write “diskpart” and press enter

* Inside diskpart write “list disk” and identify the number for the pendrive.

* Enter the following command, in the example below the pendrive is disk 1 in diskpart.


* Copy the content of the Installation medium to the pendrive or extract the iso-file using 7-zip or similar program

Then you should be all set, remember the boot order in BIOS when you want to boot from the pendrive.

Tags: , ,
%d bloggers like this: