“Active Directory Users & Computers” on MS Windows 7

Background

Really missing “Active Directory Users and Computers” on my MS Windows box.

 

Download

Downloaded Remote Server Administration Tools for Windows 7 with Service Pack 1 (SP1) from here.

 

Installed

Installed Windows6.1-KB958830-x64-RefreshPkg.msu as my box is 64 bit.

 

Scripts

Documentation

As opted not to use GUI, needs to know the arguments to pass to the DISM installer.

Remote Server Administrative Tools roles

Link

       addsroles

List Features & Status

Script


dism /online /get-features /Format:Table | find "RemoteServerAdministrationTools-Roles"

 

Output

features-remoteserveradministrationtools-roles-ad

 

Enable Features & Status

Script


dism /online /enable-feature /featurename:RemoteServerAdministrationTools

dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Roles

dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Roles-AD

dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-DS

dism /online /enable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-DS-SnapIns

Output

enablefeature-20161021-0214pm

 

Usage

Access MMC

Launch through Window’s Start Menu

Administrative Tools \ Active Directory Users and Computers

startmenu

Use Functionality

Find Users, Contacts, and Groups

ad-findusers

References

  1. What Are the Remote Server Administration Tools?
    Link

 

Microsoft – Internet Information Server (IIS) – Error – The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

Introduction:

Post some mishaps trying to get IIS back working on one of our servers.   Btw, the OS is a MS Windows 2012 running IIS 8.

Error Message:

But, when we train a web browser against the web site, we are getting an error.

Here is the error message:

Error Message – Caption

The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

Most Likely Causes:

Here are the most likely causes:
•It is possible that a handler mapping is missing. By default, the static file handler processes all content.
•The feature you are trying to use may not be installed.
•The appropriate MIME map is not enabled for the Web site or application. (Warning: Do not create a MIME map for content that users should not download, such as .ASPX pages or .config files.)
•If ASP.NET is not installed.

Detailed Error Information:

Item Value
Module StaticFileModule
Notification ExecuteRequestHandler
Handler StaticFile
Error Code 0x80070032
Requested URL http://<webserver&gt;:80/cookingChannel/cover.aspx
Physical Path E:\Website\cookingChannel\cover.aspx

Review list of installed packages/features

Introduction

Let us go review list of MS Windows installed features.

Command Line

we will use dism…

rem get full list of installed features
dism /online /get-features /format:table

rem get list of installed packages that have net in their names
dism /online /get-features /format:table | find /I "net"

 

Output:

The page you are requesting cannot be served because of the extension configuration

  Tabulated Listing:

Item Value
NetFx3ServerFeatures Enabled
NetFx3 Enabled
IIS-NetFxExtensibility Disabled
IIS-NetFxExtensibility45 Disabled
IIS-ASPNET Disabled
IIS-ASPNET45 Disabled
WAS-NetFxEnvironment Disabled
AS-NET-Framework Disabled
NetFx4ServerFeatures Enabled
NetFx4 Enabled
NetFx4Extended-ASPNET45 Disabled

 Output:

  • It seems the IIS-ASPNET * features are disabled.  We know we need them as they allow IIS to use .Net Toolset.
  • Not sure as to what IIS-NetFxExtensibility * stand for
  • Also, not sure about NetFx4Extended-ASPNET45

Add packages – IIS-ASPNET *

Command Line

rem Syntax for adding feature
dism /online /enable-feature /featurename:&lt;feature-name&gt;

rem add IIS-ASPNET
dism /online /enable-feature /featurename:IIS-ASPNET

Error Message:

Deployment Image Servicing and Management tool Version: 6.2.9200.16384 Image Version: 6.2.9200.16384 Enabling feature(s) [===========================99.8%========================= ] Error: 50 The operation is complete but IIS-ASPNET feature was not enabled. A required parent feature may not be enabled. You can use the /enable-feature /all option to automatically enable each parent feature from the following list. If the parent feature(s) are already enabled, refer to the log file for further diagnostics. IIS-NetFxExtensibility, NetFx4Extended-ASPNET45 The DISM log file can be found at C:\Windows\Logs\DISM\dism.log

It is obvious that I need the following features, as well:

  • IIS-NetFxExtensibility
  • NetFx4Extended-ASPNET45

Add packages – IIS-ASPNET * (Add all dependencies)

Command Line

 


rem Add /all to ensure that dism installs dependencies, as well

rem Syntax for adding feature
dism /online /enable-feature /all /featurename:&lt;feature-name&gt; 

rem add IIS-ASPNET (including dependencies)
dism /online /enable-feature /all /featurename:IIS-ASPNET

rem add IIS-ASPNET v4.5
dism /online /enable-feature /all /featurename:IIS-ASPNET45

 

Error Message – HTTP Error 404.17 – The Requested content appears to be script…

With ASP.Net feature enabled, let us go

New error message:

Error Message – Caption – HTTP Error 404.17 – Not Found

HTTP Error 404.17 - Not Found
The requested content appears to be script and will not be served by the static file handler.

Error-IIS-404

Side Note:

Whenever I see 404, I am happy knowing that it is Savannah calling from Atlanta…But this one seems to be a different 404; not the good one.

Most Likely Causes:

Most likely causes:

  • The request matched a wildcard mime map. The request is mapped to the static file handler. If there were different pre-conditions, the request will map to a different handler.

Things you can try:

  • If you want to serve this content as a static file, add an explicit MIME map.

Detailed Error Information:

(same as above)

What does “HTTP Error 404.17 – The requested content appears to be script” mean?

Did not know where to go with the error :

<pre><code>HTTP Error 404.17 - Not Found
The requested content appears to be script and will not be served by the static file handler.

… So took to Google and found a very helpful MS Posting that suggests reviewing Application pool.  The specific URLs are:

Wow Microsoft really did a good job per listing all the HTTP Status Codes, and also providing pointed recommendations per each error.

Reminds me yet again of Joshua Radin’s They bring me to you ( here).

So let us go list our web site and application pools…

Document Web sites and Application Pools

Via appcmd.exe, let us list Web Sites and Application Pools:

Document Web sites


rem syntax - list specific web site and virtual directories 
rem under that site
rem c:\windows\system32\inetsrv\appcmd.exe list apps /site.name:"&lt;web site name&gt;"

rem sample : list web sites
c:\windows\system32\inetsrv\appcmd.exe list apps /site.name:"Default Web Site"

Document Application Pools



rem syntax - list app pools
rem c:\windows\system32\inetsrv\appcmd.exe list apppools

rem sample : list App Pools
c:\windows\system32\inetsrv\appcmd.exe list apppools

Output (Screen Shot):

appcmd - list appppols (filtered)

Output (Tabulated):

Item Value
Managed Version (MdgVersion) v4.0
Managed Mode (MdgMode) Classic
State Started

It seems that we are configured to target 4.0, but I know our application should be targeting .Net 2.0.  So let us go change that quickly.


c:

cd c:\windows\system32\inetsrv
appcmd.exe set apppool /apppool.name: "App Pool - Eph Web User" /managedRuntimeVersion:v2.0

  Output:

</pre>
<pre><code>APPPOOL object "App Pool - Eph Web User" changed

References

IIS and ASP.Net Modules

Deployment Image Servicing and Management Technical Reference (DISM)

Using appcmd.exe

Technical: Microsoft – OS – Windows Server 2012 – Regain Windows GUI\Shell

Technical: Microsoft – OS – Windows Server 2012 – Regain Windows GUI\Shell

Background

The web is full of advises, but some of them are a bit in-complete.

On Friday evening, I downloaded and installed SharePoint 2010 Foundation Services.

Woke up to play around with it on Saturday.  Everything look good, but as I started to feel my way around with stsadm I started having problems.

Specifically what problems, well the big one, the Configuration Administration Web page was coming up empty.

I thought of trying to employ “SharePoint Diagnostic Studio 2010 (SPDiag 3.0) (SharePoint Server 2010)” downloadable from http://technet.microsoft.com/en-us/library/hh144782(v=office.14).aspx.

As the diagnostic tool needs a 64-bit box I needed to have it run on the Windows 2012 Server itself.

But, more problems! Something of the sort that the SharePoint diagnostics targets PowerShell v2, while on the other hand Window 2012 now comes installed with PowerShell v3.

Messed up my Server Box

I tried everything to try to get my Windows 2012 to cooperate, but no help came.  So finally took that one advice that says to uninstall PowerShell 3.0.

BTW, PowerShell and other tools are now productized as Windows Management Framework.

In the middle of uninstall, Microsoft warned me plenty as to which products are dependent on MS Windows Management Framework.  But, it was 3.00 AM Sunday morning and I really needed to see if uninstalling PowerShell 3.0 will help.

So went ahead and threw caution to the wind.  The uninstall of Windows Management Framework took a long time.

The machine rebooted and uninstall continued.

Another reboot occurred and upon coming back no GUI.

Fix

Searched the net and advises ranged from using Sconfig to PowerShell to re-install the GUI.

Fix – Sconfig

I tried Sconfig as documented in http://www.howtogeek.com/111967/how-to-turn-the-gui-off-and-on-in-windows-server-2012/.  But, on my screen the option to “Restore Graphical User Interface” is not showing up.

SConfig

It is possible, that the option to “Restore Graphical User Interface” is not showing up as I did not use this tool to remove the GUI and thus the toolkit is not really identifying the system as completely lacking the GUI.

Fix – PowerShell

Unfortunately, I had uninstalled PowerShell and the executable is no longer active on my computer.

Fix – DSIM

And, another option was to use dsim.

Dsim stands for “Deployment Image Servicing and Management”.

To use it per our purpose, please issue the following commands:



dism /online /enable-feature /featurename:servercore-fullserver /all 
dism /online /enable-feature /featurename:Server-Gui-Shell /all
dism /online /enable-feature /featurename:Server-Gui-Mgmt /all

Each command should be entered on its own.  And, please wait for each command to process and complete, before entering the next.

You will be asked if you want to restart upon each component completion, but please respond as “No” until you have completed the last command.

Addendum:

Audio (2013.10.07)

On Monday (10/7/2013), I found out that I can no longer hear YouTube. The speakers icon at the far bottom right corner of my desktop was on point and suggested that the “Audio Service might not be running.

Checked through the Services Applet and confirmed that the “Windows Audio” Service is indeed configured for manual start-up. Changed it back to “Automatic”.

Wireless Devices (2013.10.09)

On Wednesday (10/9/2013) confirmed that the wireless networking device is conclusively offline.

To bring it back up, you can use DISM or Powershell.

DISM:

From command line, issue:


dism /online /Enable-Feature /all /FeatureName:WirelessNetworking

Powershell:

Start powershell.exe and issue this command:

add-windowsfeature wireless-newtworking

 

References