Showing posts with label Windows Server. Show all posts
Showing posts with label Windows Server. Show all posts

Wednesday, November 22, 2017

How to find a user’s SID (security identifier)?

image

The Problem:

You need to find out the security identifier (SID) for a user.)

The Solution:

Run the following command:

wmic useraccount get name,sid


--Neno

Thursday, February 20, 2014

List of Windows client OS versions and their Windows Server equivalents

Here’s a list of Windows versions and their Server equivalent:

Windows client version Windows Server version
Windows XP Windows Server 2003
Windows Vista Server 2008
Windows 7 Server 2008 R2
Windows 8 Server 2012
Windows 8.1 Server 2012 R2

--Neno

Monday, July 22, 2013

Windows Update Cleanup

Just recently I discovered an option in the Disk Cleanup feature of Windows 8 and Windows Server 2012 to clean up Windows updates.

In all cases I tried Windows Update cleanup freed up more than 2 GB.

However, be advised that the cleanup can take quite a while.

Windows Update cleanup deletes or compresses older versions of updates.

--Neno

Thursday, June 20, 2013

Configure for Web Deploy Publishing menu item missing in IIS Management Console

iis_logoLuckily, there is a solution:

  1. Use Web Platform Installer and install
    “Web Deploy 3.0 for Hosting Server”.
  2. Restart IIS Management Console.

Good luck!

--Neno

Saturday, March 16, 2013

How to fix: IE keeps asking for credentials

On a computer, where you have all necessary permissions, IE presents you the credentials prompt every time you try to open a site on that machine.

You have probably already tried one of the following:

  • Turned off User Account Control (UAC)
  • Turned off Internet Explorer Enhanced Security Configuration (IE ESC)
  • Added the URL to Trusted Sites in Internet Options

Try this:

  1. In IE, open Internet Options, Security tab, click on Sites.
  2. Unselect “Automatically detect intranet network” and check all checkboxes (so that it matches the following screenshot):

Does your IE always ask for crentials?

Tuesday, February 12, 2013

Hyper-V: Converting a VHD to a VHDX

Windows Server Hyper-V introduces a new file format: VHDX

On Windows Server 2012 there’s a new virtual hard disk format with the extension “VHDX”.

As the Virtual PC Guy states in his blog:

There are a number of advantages to this format:

  • Support for greater than 2TB disks
  • Better performance for dynamic and differencing disks
  • Better handling of different disk sector sizes
  • And more…

How to convert?

Will the size of my files change?

Yes, the new .VHDX files will probably be slightly larger.

Here’s an example of a sample conversion:

Description

VHD size (KB)

VHDX size (KB)

Change

System drive

22,316,615

22,581,248

(+ 1%)

Data drive

3,138,364

3,248,128

(+ 3%)

Monday, February 4, 2013

System Error 67 when trying to map a WebDAV folder using NET USE on Windows Server

windows-server-2012

The Problem

On Windows Server, you get the following error message when trying to map a WebDAV folder (in this case: HiDrive's online storage) using NET USE <driveletter>: <URL>:

System error 67 has occurred.

The network name cannot be found.

The Solution

  1. Add the Desktop Experience feature.
    This will install the required Web Client service.
    Note: Be aware this requires a restart.

Friday, January 25, 2013

How to fix error ‘This configuration section cannot be used at this path’ when running ASP.NET apps

Problem description:

You receive the error message:

HTTP Error 500.19 - Internal Server Error

This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false

How to resolve:

  1. Make sure ASP.NET is installed, as described here.
  2. Unlock the configuration section using the command:

%windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/modules

More Information:

Sunday, January 20, 2013

FTP Service for IIS: client connection times out on LIST command

The Problem

You installed the FTP Service for IIS, but after connecting clients time out on list command:

“Error: Connection timed out”

“Error: Failed to retrieve directory listing”

The Solution

Step 1: Verify Firewall exceptions are defined correctly:
SNAGHTMLad2ffe9

Step 2: Disable stateful FTP filtering (see here):

netsh advfirewall set global StatefulFTP disable

Step 3: Restart FTP Service

net stop ftpsvc

net start ftpsvc

Good luck!

Wednesday, January 16, 2013

How to add the Desktop Experience feature in Windows Server 2012

It is hidden under “User Interfaces and Infrastructure”…

No worries, Desktop Experience has not disappeared, it was just moved.

Wednesday, December 26, 2012

How to fix: Your current security settings do not allow this file to be downloaded (IE)

When trying to download a file in IE you receive the following error message:

“Security Alert: Your current security settings do not allow this file to be downloaded.”

Your current security settings do not allow this file to be downloaded.

Steps to fix the problem (found here):

  1. Start Internet Explorer.
  2. Click Tools » Options.
  3. Click on the Security tab.
  4. Select the Internet Zone.
  5. Click on the Custom Level button and then scroll down to Downloads.
  6. Make sure to set File download to Enable.
  7. Click OK.

IE2

IE3

Monday, December 24, 2012

Recycle IIS app pool using the command line

To recycle an application pool on demand, run:

appcmd recycle apppool /apppool.name:string

… where string is the name of the application pool that you want to recycle (Source).

Monday, October 24, 2011

How to store credentials for automated logon in Windows Credential Manager via command line

Beginning with Windows Vista/Server 2008 you can add credentials to Credential Manager on the command line using Cmdkey.exe

Cmdkey /add:Servername /user:User /pass:Password

Wednesday, August 3, 2011

Event Log Error: SideBySide (Event ID: 33)

Side By Side error is caused by a Security UpdateYou are seeing an error like this in the event log?

Activation context generation failed for "C:\Windows\system32\conhost.exe". Dependent Assembly Microsoft.Windows.SystemCompatible,processorArchitecture="amd64",publicKeyToken="6595b64144ccf1df",type="win32",version="6.0.7600.16816" could not be found. Please use sxstrace.exe for detailed diagnosis.

Cause: it's a known issue with a security update (deployed through Windows Update).

Try this: install Windows Server 2008 R2 Service Pack 1.

Monday, August 1, 2011

BOOTMGR is missing after Windows Server restart

After restarting a Windows Server I got this error message:

What an unplesant situation...

The following solution from the Binary War blog worked for me:

  1. Boot from Windows Server CD/DVD.
  2. Click Repair your computer
  3. Choose Command Prompt.
  4. Run x:\sources\recovery\StartRep.exe
  5. At the end of the repair process, the Wizard will ask to restart the machine (which will now hopefully boot normally).

Good luck!

Friday, May 27, 2011

Listing all members in an Active Directory group

Is it possible to find out if a user is part of an Active Directory security group?You can use the command line to list all members of an Active Directory group like this:

NET GROUP "group name" /DOMAIN

Alternatively you could also use the dsget command.

Sunday, May 22, 2011

.REG file to turn off the Shutdown Event Tracker

Wha tis the Shutdown Event Tracker?

It's this dialog box:

One of the most annoying dialogs on non-production servers...

Why is there a Shutdown Even Tracker?

Shutdown Event Tracker provides a simple and standard mechanism one can use to consistently document the reasons for shutting down or restarting the computer. This information is used to analyze the root causes of shutdowns and develop a more complete understanding of the system environment.
(Source: Microsoft KB 555541, Author: Soumitra Sengupta, MVP)

How do I enable/disable it?

You can use a registry key or group policies to turn it on/off.

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Reliability

Name: ShutdownReasonUI
Type: REG_DWORD
Value: 0 = disabled | 1 = enabled

Download .REG file: DisableShutdownEventTracker.reg

Further information:

Monday, March 14, 2011

How to Remove Windows Server 2008 R2 Serivce Pack 1 (SP1) Backup Files

Clean your system after applying Windows SP1Warning: As a result of removing the backup files you will not be able to uninstall SP1 anymore.

Steps:

  1. Make sure the "Desktop Experience" is installed.
    (Note that if you need to install it, it requires a restart and it takes some time to install on the next boot)
  2. Run "Disk Cleanup" (cleanmgr.exe)
  3. Click on "Clean up system files"
    How to remove the backup folder of SP1
  4. Select "Service Pack Backup Files"
    This is the only official way to delete SP1 backup files
  5. Click "OK" to start the cleaning (it can take quite some time, but will give you ~ 1-2 GBs)

Wednesday, March 2, 2011

How to assign "Allow log on locally" rights to a Domain Controller

Schloß

The Microsoft Knowledge Base has an answer (KB 234237):

  1. Run mmc
  2. Add Group Policy Management snap-in
  3. Browse to your domain, right-click and click Edit
  4. Open the path Default Domain Controllers Policy\Computer Configuration\Windows Setting\Security Settings\Local Policies\User Rights Assignment
  5. Edit Log On Locally settings

Tuesday, February 8, 2011

Using Host Headers in IIS7 / Why is the host headers text box disabled?

Cannot enter host headers in IIS 7If you want to run two sites on the same port you will need a Wildcard Certificate. Eath site will be assigned a different host header (= URL) in IIS (e.g. site1.yourdomain.com and site2.yourdomain.com).

What if the host name text box remains disabled although I have a Wildcard certificate?

The friendly name of the Wildcard certificate needs to start with an "*" (e.g. *.yourdomain.com) as you can read here.

You can still use the command line though to set the host headers appropriately.