I recently needed to set up a Win10 Hyper V, and then join it to a domain over a VPN connection. The first issue that I faced was that Cisco Anyconnect VPN client detected the virtual machine as a Remote Desktop Connection and refused to allow it to connect. I solved this by switching from Enhanced Session to Basic Session by clicking this on the toolbar of the virtual machine:
My second issue was that, even after successfully joining the machine to the domain, there was no Switch User option (I needed to switch to a domain user while on the VPN in order for it to authenticate to the domain server and build the local profile for the domain user). No matter where I looked there was no option. Not in the power options, not via Alt+F4, nowhere.
I solved this by invoking tsdiscon.exe directly via a run line. Bear in mind that it’s my understanding tsdiscon.exe is not available in Win 10 Home edition, though I don’t know why anyone would build a virt of Home edition.
Save this file. You can double click it to test it. After having confirmed it works, create a task pointed to it in Windows Task Scheduler. Modern Windows OSes should natively run a vb script in scheduler. If not, use CScript to launch the script:
I use the mighty Pi-Hole to streamline my browsing experience. Sometimes, though, the ole Hole can get in my way, blocking something I need to see. If it’s a one time deal, and not something I want to whitelist (which Pi-Hole has thankfully made easy to do via the web interface as of the latest edition), I wanted an easy way to temporarily switch DNS servers.
Enter QuickSetDNS, a groovy little exe that can do just that. Download QuickSetDNS and unpack it into the destination of your choosing. There’s no installer – it’s a simple standalone exe. Fire it up, right click in the whitespace and create a new DNS server entry. I’ve got one for my Hole, and one that points to Google’s public DNS servers.
After creating your entries, right click on one and choose Copy SetDNS Command Line. Then right click on your desktop and create a new shortcut. Paste the SetDNS command line in for the location of the shortcut and click Next. Name it something informative, and save it. Do the same with your other DNS entries in QuickSetDNS.
There. Now you have shortcuts you can double click to change your local DNS settings.
At my POE we use virtual printers for all manner of file production. It’s annoying. What’s more annoying is when it’s time to upgrade a server using virtual printers. Thankfully there’s a way to sorta kinda help the process, by sorta kinda easing the migration process. The following screenshots are from Windows 2012 R2. If you’re using a different Windows OS level your mileage may vary. It’s my understanding that the titles of some of this differs by OS.
What’s happening here is, because the notes demand to use Segoe Print as the font, you’re changing what font Segoe Print actually is. Replace the .ttfs with fonts of your choice.
There are also a myriad of shortcuts for modifying existing note text:
Ctrl+B – Bold text Ctrl+I – Italic text Ctrl+T – Strikethrough Ctrl+U – Underlined text Ctrl+Shift+L – Bulleted (press once) or Numbered (press twice) list Ctrl+Shift+> – Increased text size Ctrl+Shift+< – Decreased text size Ctrl+A – Select all Ctrl+Shift+A – Toggles all caps Ctrl+L – Left aligns text Ctrl+R – Right aligns text Ctrl+E – Centers text Ctrl+Shift+L – Small Alpha list (3rd), Capital Alpha list (4th), small roman (5th), Capital roman (6th) Ctrl+1 – Single-space lines Ctrl+2 – Double-space lines Ctrl+5 – Set 1.5-line spacing Ctrl+= – Subscript Ctrl+Shift++ – Superscript
I’m using some older Windows programs – abandonware stuff by this point – on Ubuntu Mate via Wine. I needed to install some custom fonts for these programs to use and had a bit of a time finding straightforward instructions on doing so. Turns out it’s easy. The fonts I needed are TrueType, so that’s all I’ve tested with.
Navigate to home/YOURUSERHOME/.wine/drive_c/windows/fonts
You will have to enable hidden files in order to see the .wine directory, and if you haven’t done so already you’ll need to open the fonts directory as administrator (from the windows directory right click the fonts directory and choose Open as Administrator). Dump your font(s) into that directory. Then open a prompt and enter:
sudo fc-cache -fv
This will rebuild the font information caches for fontconfig system. Then you should be good to go.
“Some index files failed to download.” That’s the error I got upon running apt-get update, after having Ubuntu Mate notify me that some of my updates are, er, out of date. The indexes that failed to download were related to Flux, which I really liked having on my Windows machines. Turns out that, as of this writing, the repository of Vivid Vervet (Ubuntu 15) for Flux ain’t there. Take a look for yourself and see. I suppose I could install an older version, but since I wasn’t interested in getting into any compatibility issues I decided to bail on Flux for now.
But I couldn’t uninstall Flux. It isn’t installed. I need to get rid of the repository information. You’d think that would be as simple as remove-apt-repository blah blah, since adding it is a simple add-apt-repository, but nope. There’s no remove-apt-repository. Ultimately I opened the path /etc/apt/sources.list.d as admin, and removed the associated list and save files. Reran apt-get update and voila – both the errors and the nag referring to out of date updates disappeared.
We’ve used a variety of third party tools to monitor Active Directory domain account changes. They’ve all either been expensive or kind of sucked (or, unfortunately, both). But if you’re running a relatively new OS on your controller you can use the magick of Powershell to ship you alerts on account changes! Powershell can monitor the local Security Event Log on your controller and ship you an email when events matching your description are entered. Here’s an example Powershell script: