Custom Search Box

Wednesday, July 8, 2020

Jenkins and DDNS OpenVPN

Jenkins is configured with BlueOcean and OpenVPN is now set to use quazmoz.hoptoo.org which is a free DDNS service from noip.com. My router is set to push changes to my public IP to noip.



Monday, June 22, 2020

Thursday, June 18, 2020

XRDP for the homelab

I wiped my Ubuntu server and installed xrdp which is working far better than guacamole. I believe there may be some bugs with the guac install for Ubuntu 20.04


Wednesday, June 17, 2020

Homelab

I set up my first homelab(took me long enough) using a mini-pc I bought off of Amazon. So far I have guacamole configured:





Aside from one tweak to the guide (run "enable" command first)


systemctl start guacd
systemctl enable guacd


It installed smoothly and works ok, I will probably install another solution however. It frequently disconnects and I haven't been able to determine why.

My next step is to mess around with VM solutions for Linux and possibly a VPN linux server.

Friday, June 5, 2020

How to add users to a Distribution List using Powershell

#Get all the names from an email or other list you have generated
#Text file must be manipulated first to contain only the name and email of each user.
#This can be accomplished by pasting all the names/emails into notepad, find and replace ; with , then save as csv.
#Open this csv with excel, copy/paste with transpose option then copy/paste into notepad and save as .txt
#Run the below on the .txt

$Users = Get-Content 'C:\Users\QMFAVO\Desktop\users.txt'

$Users  -replace " <.*""," | Out-File C:\Users\QMFAVO\Desktop\usersreadytoadd.csv

#Type "name," to the beginning of the file and save
#Copy/paste csv onto server
#Then run the below on the exchange server

$usersreadytoadd = Import-Csv 'C:\Users\QMFAVO\Desktop\usersreadytoadd.csv'

foreach ($User in $usersreadytoadd)
{
    Add-DistributionGroupMember -Identity "DistributionList@contoso.com" -Member "$($User.name.substring(1))"
}

#get rid of '
$Users = Get-Content 'C:\Users\QMFAVO\Desktop\usersreadytoadd.csv'

$Users  -replace "'""" | Out-File C:\Users\QMFAVO\Desktop\usersreadytoadd.csv

#get rid of commas
$Users = Get-Content 'C:\Users\QMFAVO\Desktop\usersreadytoadd.csv'

$Users  -replace ",""" | Out-File C:\Users\QMFAVO\Desktop\usersreadytoadd.csv

#usersreadytoadd.csv should have only Names in this format without quotes "John Smith"

Saturday, May 30, 2020

Setting Windows 10 Taskbar Clock to Display Hours, Minutes, and Seconds Using Powershell

It is not possible currently to set the clock on your Windows 10 taskbar using control panel settings to display seconds along with the hour and minute. However there is a way to do it using Powershell:

New-PSDrive HKU Registry HKEY_CURRENT_USER

$registryPath = "HKU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced"

$Name = "ShowSecondsInSystemClock"

$value = "1"
New-ItemProperty -Path $registryPath -Name $name -Value $value -PropertyType DWORD -Force