Custom Search Box

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"