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
Nutrition for the ambitious .NET developer - since 2003
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
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
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.
--Neno
Luckily, there is a solution:
Good luck!
--Neno
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:
Try this:
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%) |
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
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:
%windir%\system32\inetsrv\appcmd unlock config -section:system.webServer/modules
More Information:
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”
Step 1: Verify Firewall exceptions are defined correctly:
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!
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.”
Steps to fix the problem (found here):
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).
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
You 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.
After restarting a Windows Server I got this error message:
The following solution from the Binary War blog worked for me:
Good luck!
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.
It's this dialog box:
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)
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
Warning: As a result of removing the backup files you will not be able to uninstall SP1 anymore.
Steps:
The Microsoft Knowledge Base has an answer (KB 234237):
If 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.