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.
- Create a new GPO or edit an existing one
- Navigate to User configuration – Preferences – Windows Settings – Registry
- Create a new registry item with the following values
- Name: DefaultConnectionSettings
- Action: Update
- Hive: HKEY_CURRENT_USER
- Path: Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections
- Value Name: DefaultConnectionSettings
- Type: REG_BINARY
- 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
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:
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.
$text = "some text."
$textmessage = "This is " + $text
$text = "some text."
Write-Output "this is $($text)"
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:
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 🙂
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…
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:
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.
SELECT DISK 1
CREATE PARTITION PRIMARY
SELECT PARTITION 1
FORMAT FS=NTFS QUICK
* 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.