Beginners Guide to Tailscale ACLs in Headscale

This gallery contains 5 photos.

I have been hearing a lot about Tailscale and it’s ease of use in easily creating a secure mesh VPN for your systems. I was already a fan of Wireguard which was a plus to Tailscale for using it but … Continue reading

More Galleries | Leave a comment

Migrating your auto-complete history to a new Outlook 201X profile with Powershell

In the past with nk2 files, the migration from of Outlook Autocomplete addresses was a lot easier as you just copied the .nk2 file from %AppData%\Roaming\Microsoft\Outlook to the new profile.

As I found out, the steps to migrate the new cache files for Outlook 2010 and greater (Stream_Autocomplete*.*) require some extra steps as I found here:
https://blog.zensoftware.co.uk/2014/05/29/how-to-copy-the-auto-complete-information-to-a-new-outlook-profile/

To speed this up, I have made a powershell script to make this a bit easier. Please note that you will need to do the following first:
– send one message in the new Outlook profile.
– make sure that Outlook is closed.

The code is below:

cls
#Function from https://devblogs.microsoft.com/scripting/hey-scripting-guy-can-i-open-a-file-dialog-box-with-windows-powershell/

Function Get-FileName($initialDirectory)
{  
 [System.Reflection.Assembly]::LoadWithPartialName("System.windows.forms") |
 Out-Null
 $OpenFileDialog = New-Object System.Windows.Forms.OpenFileDialog
 $OpenFileDialog.initialDirectory = $initialDirectory
 $OpenFileDialog.filter = "All files (*.*)| *.*"
 $OpenFileDialog.ShowDialog() | Out-Null
 $OpenFileDialog.filename
} #end function Get-FileName


$Flag =0
$autocompletecachedir = "$($env:userprofile)\appdata\local\microsoft\outlook\roamcache"
if (get-process outlook -ErrorAction SilentlyContinue) {
"Outlook is currently open. Please close it to proceed."
$Flag = 1
}
If ($flag -eq 0){
$currentacc = get-childitem -path $autocompletecachedir -Filter stream_Autocomplete_*.dat|sort LastWriteTime -desc|select -first 1
If ($currentacc){$flag++}
If ($flag -gt 0) {
"Found the current Autocomplete Cache file:"
$currentaccpath = "$autocompletecachedir\$($currentacc.name)"

"Please find the old Autocomple files to restore."
$Oldaccpath = Get-FileName -initialDirectory "c:\"

if (test-path $oldaccpath){$flag++}
If ($flag -gt 1 ){
	"Found the old Autocomplete file to restore:"
	$Oldacc = get-item "$oldaccpath"
	$Oldacc
	""
    "Backing up current Autocomplete cache..." 
	&robocopy "$autocompletecachedir" "$autocompletecachedir\backup" $($currentacc.name) /njh /njs
	remove-item "$autocompletecachedir\$($currentacc.name)" -force
	"Restoring old Autocomplete cache..."
	&robocopy "$($Oldacc.directoryname)" "$autocompletecachedir" $($Oldacc.name) /njh /njs
	"Renaming $autocompletecachedir\$($Oldacc.name) to $($currentacc.name)"
	rename-item -path  "$autocompletecachedir\$($Oldacc.name)" -NewName "$($currentacc.name)"
}
Else{"No Autocomplete file found."}

}
else {
"No Autocomplete cache found. Aborting..."
}
"Done! Please check Outlook and confirm the results."
}

Hopefully this will be end of your google search for now!

Posted in Uncategorized | Leave a comment

Change HDMI Video / Sound via the command line in Windows 7

I recently was involved in getting a friend with nice big flat panel TV who wanted to display his computer on TV in a simple way The way you normally do it is manually enable both the video for HDMI and the sound for HDMI as well by digging into the control panel. Since he is a bit of a novice with computers, I decided to script the process for him.

The following is the batch file I gave him:

@echo off
cd\u
cd nircmd
Echo HDMI mode ON
DisplaySwitch.exe /external
nircmd.exe setdefaultsounddevice “Name of HDMI Sound” 0
Pause
Echo HDMI mode OFF
nircmd.exe setdefaultsounddevice “Name of Internal Sound” 0
DisplaySwitch.exe /internal

This script will enable the TV display and change the Default Sound Device to HDMI Then Pause. If you hit a key again, it will change the settings back.

To use this script you will need:

1. The names of the sound devices on this system. You get these in Windows 7 by going to Start > Control Panel> Manage Audio Devices. Your HDMI TV will need to plugged into the computer.

Sound Device in Windows 7

My devices were “SAMSUNG-1” for HDMI sound and “Speakers / Headphones” for internal sound.

2. The tool Nircmd from the site www.nirsoft.net. Make a folder on root of the c: drive called c:\u\nircmd and extract the nircmd files there.

3. Open notepad and copy the the batch file commands above into it and modify the sound devices names as stated in item 1. Save the file C:\U\ChangeDisplay.cmd

The command DisplaySwitch.exe is built into Windows 7.

Now you can just run the command C:\U\ChangeDisplay.cmd to enable and disable HDMI Video and Sound.

Posted in Cool Gadgets, Scripting | Leave a comment

What if they made Zelda into an 80’s Teen movie….

Posted in Uncategorized | Leave a comment

Man do I feel old!

Check out this recent question on http://superuser.com/. Wow, I am old!

Posted via email from Dwayne’s posterous

Posted in Tech support, Uncategorized | Leave a comment

Check out this video of a Father and son who launched a balloon into space and took video!

Posted in Cool Gadgets, Uncategorized | Leave a comment

A Troll is born

Check out this video on YouTube:

Posted via email from Dwayne’s posterous

Posted in Uncategorized | Leave a comment

Awesome 404 not found web page!

Posted in Uncategorized | Leave a comment

This is creepy / awesome: BigDog project reflex testing

 

Posted in Uncategorized | Leave a comment

Funny Tech Support Calls: Why can’t get Pacman off my Internet?

When Google changed their home page to display a playable Pacman game for the day a while ago, a lot of people had a great time playing and remembering stuffing quarter after quarter into this game. Some people did not quite get what was going on though….

Check out this Tech support call to Google about the change to the Google home page:

Posted in Funny, Tech support | Leave a comment