travis' brain dump

Installing ADFS to Server Core (2016)

by on Oct.03, 2016, under Tech Stuff

This post assumes you have already completed your installation of Windows Server 2016 and configured IP addressing, domain join, etc.
(* this can easily be accomplished by running ‘sconfig.cmd’ when you first login, it’s not worth a full post)

To get started, login as a domain administrator for the system and complete the following commands on the prompt presented:

– ‘powershell’
– ‘Install-WindowsFeature ADFS-Federation’

This should install all necessary items for deploying ADFS on the system.

Another key component will be your SSL cert. Whatever you will be using (preferably a certificate for or * I recommend you export it out with private key in PFX format. Once completed, you’ll need to make sure you copy your certificate pfx out to the machine and then execute the following:

– ‘certutil -importpfx <Path to certificate file>’

You can confirm your certificate installation and snag the thumbprint by executing the following:

– ‘dir cert:\LocalMachine\My’

If you’re setting up the first machine in a farm execute the following:

– ‘Install-AdfsFarm -CertificateThumbprint:<thumbprint> -FederationServiceDisplayName:”Test Lab” – FederationServiceName:”” -GroupServiceAccountIdentifier:”DOMAIN\adfs_service`$” -OverwriteConfiguration’

Additionally if you want to allow for logins using an email address as username, run the following:

– ‘Set-AdfsClaimsProviderTrust -TargetIdentifier “AD AUTHORITY” -AlternateLoginID mail -LookupForests’

This should get the initial setup of ADFS running for you on the main machine.
To add additional machines to the farm (up to four using WID) you install everything the exact same with exception to the last command. Instead of installing the farm, you will add a node. You will execute this from each member node you wish to add, assuming SERVER1 is the name of the initial ADFS instance you setup.

– ‘$ADFSCred = Get-Credential’ (input the service account credentials you listed above)
– ‘Add-AdfsFarmNode -ServiceAccountCredential $ADFSCred -PrimaryComputerName SERVER1 -CertificateThumbprint <thumprint> -OverwriteConfiguration’

You should see a success message. If you do not, you can troubleshoot by testing out the farm configuration with the following commands:

– ‘$ADFSCred = Get-Credential’ (input the service account credentials)
– ‘Test-AdfsFarmJoin -ServiceAccountCredential $ADFSCred -PrimaryComputerName SERVER1’

** If you are planning on upgrading your farm from 2012R2, as I am in this instance, you will need to take some additional steps. You can swing over all of your operations by making your 2016 instance the primary then removing the 2012R2 instance from the farm. I’ll be posting an additional post on this later once I’ve got 2016 running.

Leave a Comment more...

Disk Cleanup Utility on Win 2008 R2

by on Jul.06, 2016, under Tech Stuff

Ok, so the convenience of using the disk cleanup utility is sometimes nice for a quick cleanup of service pack files, etc. But it’s missing on 2008 R2. What a pain.

Two ways to get this:

  1. Install the desktop experience. Not the best route as this installs all kinds of stuff you don’t want on your server but it works.
  2. Manually copy the files from that overgrown beast that is WinSxS (finally something it’s good for) and run the utility directly. (my preference)

To install, copy the following files to the correct destination:

  • cleanmgr.exe
    • copy from: c:\windows\winsxs\amd64_microsoft-windows-cleanmgr_31bf3856ad364e35_6.1.7600.16385_none_c9392808773cd7da\cleanmgr.exe
    • copy to: c:\windows\system32
  • cleanmgr.exe.mui
    • copy from: c:\windows\winsxs\amd64_microsoft-windows-cleanmgr.resources_31bf3856ad364e35_6.1.7600.16385_en-us_b9cb6194b257cc63\cleanmgr.exe.mui
    • copy to: c:\windows\system32\en-us
  • Install the following update: (reboot may be necessary)


Leave a Comment more...

Vera Scene/Device Mode Manipulation

by on Feb.11, 2016, under Tech Stuff

Anyone who’s into home automation with Vera devices, this is for you. Just filing this one under ‘random things I don’t want to forget’.

Use this Luup code in a scene to modify your home mode on an action. For instance, you come inside or wake up in the morning and disarm your alarm but want the home mode to change from Night, Away, etc to Home.

luup.call_action(“urn:micasaverde-com:serviceId:HomeAutomationGateway1″,”SetHouseMode”, {Mode = value}, 0)

Where Mode = value, value = 1 – Home, 2 – Away, 3 – Night, 4- Vacation

ex Scene Configuration:

Step 1 Trigger – ‘Vista Alarm is DISARMED’
Step 2 Device Actions – Leave Empty
Step 3 Finish the Scene – Use the provided code under the section ‘ Also, execute the following Luup code:’
luup.call_action(“urn:micasaverde-com:serviceId:HomeAutomationGateway1″,”SetHouseMode”, {Mode = 1}, 0)

Leave a Comment more...

Updating HP Virtual Connect Modules With VCSU

by on Aug.20, 2015, under Tech Stuff

Ok, since there really isn’t a very good tutorial out there on this nor are there good resources to find the right links to this stuff, here’s a post for you and for me.

So you need update your Virtual Connect Module, right? Should be just as easy as updating the OA, right? riiiiight. Because HP, that’s why.

Ok, so a few things you’ll need:

1. A current version of the VCSU -> Click Here <-
2. A current version of the VCM firmware. (make sure you get the right firmware for your device type)
a. Flex-10/10D Module
b. FlexFabric 10Gb/24-port Module
c. FlexFabric-20/40 F8 Module
3. You don’t need this, but it’s handy. VCSU Useful Commands.

Now that you’ve made it through all that, the easy part. First we’re going to check the current version of the module, do this by running the vcsu utility with the following:

.\vcsu.exe -a version -i ( -u OA.Admin -p OA,Admin.Pass -vcu VCU.Admin -vcp VCU.Admin.Pass 

(yes, you really want to pass all of those lovely credentials, even if they are the same login/password for both the OA and the VCU)

You should then see some results sort of like this:


Now to update. This is very similar to your version check, except changing version to update and adding the switch and path at the end.

.\vcsu.exe -a update -i ( -u OA.Admin -p OA,Admin.Pass -vcu VCU.Admin -vcp VCU.Admin.Pass -l ‘c:\path\to\firmware.bin’

You should now see something like the following:


At this point you should now be updated.

I’ll try to keep these updated with the most current links as I update my equipment, however, if someone hits it and it’s out of date, please let me know and I’ll go update it.


Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!