Setting up the lab environment – DNS resolution puzzle

I would prefer to have access from my local vlan and wireless vlan to the servers. But didn’t want to all dns traffic into the VM’s (and depend on a testing environment) Basically I want host resolution, and being able to utilizing the domain services in the testing environment, without interruption of my other services. This is the solution in went for was using Conditional Forwarders First the Hyper-V host: I Installed the DNS Server role within Windows Server 2016. Setup forwarders to google dns:               After that i will add the Conditional Forwards … Continue reading

Setting up the lab environment – Hyper-V: Virtual Machines

Now to the good stuff Usually when working with Hyper-V I use reference disks, mainly to save space on rather expensive disks. But is there much to gain when using deduplication? I was on sure, so asked in Tech Konnect The response from Tech Konnect confirmed, when using deduplication, it out wages the other issues with reference disks, rather than saving disk space. Since it’s not possible to create folders or groups within the Hyper-V Management Console, I will be using a naming standard: <Group> – <Generation> – <OS> – <hostname> The first Virtual Machine will be a Domain Controller, … Continue reading

Join Mac OS X to Active Directory

Simple script to join a Mac to domain #!/bin/bash HOST=”” DOMAIN=”” ADUSERNAME=”admin” ADPASS=”secretpassword” # Enable SSH echo “Enabling SSH” systemsetup -setremotelogin on launchctl load -w /System/Library/LaunchDaemons/ssh.plist # Add computer to Active Directory echo “Adding computer to Active Directory” dsconfigad -preferred $HOST -domain $DOMAIN -u $ADUSERNAME -p $ADPASS

Allowing non-Administrators to control Hyper-V

By default Hyper-V is configured such that only members of the administrators group can create and control virtual machines.  I am going to show you how to allow a non-administrative user to create and control virtual machines. Hyper-V uses the new authorization management framework in Windows to allow you to configure what users can and cannot do with virtual machines. Hyper-V can be configured to store it’s authorization configuration in Active Directory or in a local XML file.  After initial installation it will always be configured to use a local XML file located at \programdata\Microsoft\Windows\Hyper-V\InitialStore.xml on the system partition.  To … Continue reading

Unable to use Power Shell AD cmdlets on Remote Server

I came across this error when building a web service executing powershell cmdlets When executing the commands directly on the server worked without problems but when using New-PSSession to invoke the scripts I ended up with the following error: WARNING: Error initializing default drive: ‘Unable to contact the server. This may be because this server does not exist, it is currently down, or it does not have the Active Directory Web Services running.’. Unable to contact the server. This may be because this server does not exist, it is currently down, or it does not have the Active Directory Web … Continue reading