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

Thursday, 5 March 2015

Windows 2012 - how to disable "run as administrator" requirement

So you've just installed Windows 2012..

The first thing you do is turn off UAC just like in Windows 2008 to stop it prompting you every time java wants to update.  Great! no more popups that you're just going to click ok to every time.

Then you remember you need to edit the hosts file, but what's this? You can't save it?  What's going on?

The answer is you need to edit it with notepad that's been "run as administrator".  But that's going to be a hassle isn't it, so how do you disable this and go back to Windows 2008 behaviour?

The answer is to edit a registry key which controls the EnableLUA setting:
HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA
Default value Windows 2008 = 0
Default value Windows 2012 = 1

You can do it via regedit or run the powershell below, in a powershell prompt that of course has been run as administrator:
Set-ItemProperty -Path "HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Name "EnableLUA" -Value "0"
The server needs to be rebooted which you can do from powershell too:
shutdown -r -t 0
Hey presto, no more prompts.

Credit to this post for the solution.

Wednesday, 4 March 2015

Network Policy Server Role won't install on Windows 2008

I recently had a weird issue while trying to install TMG 2010 (Microsoft Threat Management Gateway) on Windows 2008R2 where the pre-requisites wouldn't install and kept giving an 0x80072afc error

I narrowed this down to the Network Policy Server role which wouldn't install.

Googling the error "windows could not start the network policy server services" along with the error code "0x80072afc" revealed quite a few articles, mostly relating to missing permissions on the IAS folder within the system directory and/or active directory issues.

I decided to take a clone of another known-working TMG as a workaround, but on this box the Network Policy Server service wouldn't start which led me to believe it wasn't permissions related.


The fix I eventually found was much simpler.  I'd been trying to install TMG with the server in a workgroup and disconected from the network.

I plugged in the network card so the server picked up an IP from DHCP and Hey Presto! the TMG pre-req wizard then completed ok!

Wednesday, 24 September 2014

Equallogic setup.pl script not working with vCLI 5.5

Dell supply (with the VMware Multipath module) a perl setup script for their Equallogic arrays to aid configuring VMware host networking (distributed switches are not recommended for storage).

This script relies on both perl, and the VMware command line interface (vCLI) to connect to hosts.

The vCLI version usually needs to match the host ESXi version you're trying to connect to, but the latest v5.5 vCLI appears to be missing some modules.

The usual way to install them would be to use ppm or cpan, but ppm as implemented in the vCLI doesn't appear to have all modules listed and if you've installed vCLI to the default path, dmake.exe will have issues with the spaces in the path when installing modules with cpan.  The answer to this is to install it to a short directory name off the root (e.g. c:\vCLI)

Once you're able to install modules, from the vCLI run the following commands:
cpan
install CPAN
reload cpan
install SOAP::Lite
install MIME::Parser
install Data::UUID


This should install all the required components for the setup script. 

Unfortunately the UUID module isn't installed into the default include (@INC) path so you need to manually specify it.

You can do this either by setting an environment variable or my preferred option of manually specifying the path in the perl command to run the script.
First locate the module in your installation
dir c:\UUID.pm /S

Then run perl with the -I (capital i) parameter: 
perl -I C:\vCLI\Perl\site\lib\Data setup.pl

See this page for more information on non-default @INC paths: http://perlmaven.com/how-to-change-inc-to-find-perl-modules-in-non-standard-locations


Friday, 23 August 2013

Error building from Windows 2003 media "virtual media session already exists"

Recently I've had to rebuild a 9th Gen III server (PERC6 controller) from scratch over  DRAC connection.  There are a few ways to achieve this.  The recommended way is to use the Dell installation helper CDs which have over the years gone by a few different names:
Dell Server Assistant
Installation and Server Management
System Build & Update Utility
They work by slipstreaming drivers into a Windows 2003 installation off a Windows CD or an ISO presented  over a DRAC connection virtual media session.

Unfortunately I needed to install Windows 2003 (in order to get SP1 installed).  This meant using the ISM version 5.2 and the only version that supported this was for 9th Gen I servers (with a PERC5 controller).  Booting resulted in no hard disks detected.

So the other way to get the OS installed is to boot off Windows media (or DRAC Virtual Media) and press F6 for an OEM driver disk.

The drivers are easily downloadable from the Dell drivers page - you just need the hard disk unzip package which contains the .cat, .sys, .inf and oemsetup.inf files.  These then need to be turned into a floppy image and mounted via the drac.



This is where the "virtual media session already exists" error pops up.  I'm not sure the root cause but a workaround is to use the virtual flash.

In order to do this you need to upload the floppy image to the virtual flash and enable it under the virtual media configuration tab with the tickbox.



Once this is done, you need to change the boot order to the virtual flash is higher than the physical floppy or virtual floppy.

Once you've done all this, the windows setup wizard should find the perc6 driver mapped as A: on the virtual flash when you press F6.

For this guide, I used the latest DRAC version (1.65) and the Java Virtual Media plugin.