Originally forked from https://gist.github.com/TW1920/39bf8d987f4c867658c0faf4bd1c0802 
I'm putting it in a code block for easy copy/paste:
# Install necessary tools & library
apt install unzip alien libncurses5 -y
# Download Originally forked from https://gist.github.com/TW1920/39bf8d987f4c867658c0faf4bd1c0802 
I'm putting it in a code block for easy copy/paste:
# Install necessary tools & library
apt install unzip alien libncurses5 -y
# Download | Drive Type | Form Factor | Connections | Key Type | Socket Type | 
|---|---|---|---|---|
| SATA HDDs | 3.5-inch, 2.5-inch | SATA3 ports | N/A | N/A | 
| SATA SSDs | 2.5-inch | SATA3 ports | N/A | N/A | 
| mSATA SSDs | Mini-SATA | mSATA ports | B key | B socket | 
| M.2 SATA SSDs | M.2 | M.2 SATA ports | B key | B socket | 
| M.2 NVMe SSDs | M.2 | M.2 NVMe ports | M key | M socket | 
| M.2 SATA/NVMe SSDs | M.2 | M.2 SATA/NVMe ports | B+M key | B+M socket | 
| <# | |
| . Create Self Signed Cert and export for portability and import to trusted root certificate store | |
| . | |
| #> | |
| $pwd = ConvertTo-SecureString -String (Read-Host -Prompt 'Enter Password' ) -Force -AsPlainText | |
| $domain = Read-Host -Prompt 'Enter Domain (eg: contoso.com)' | |
| $certpath = 'cert:\LocalMachine\My' | |
| $CertDetails = @{ | 
| <# This is a list of commands not a script, to be run line-by-line: | |
| # ------------------------------------------------------------------- | |
| #> | |
| # Create self signed cert: | |
| New-SelfSignedCertificate -Type Custom -Subject "CN=TUD" -KeyUsage DigitalSignature -KeyAlgorithm RSA -KeyLength 2048 -CertStoreLocation "cert:\LocalMachine\My" -FriendlyName "wvd" | |
| $password = ConvertTo-SecureString -String "tGWu9tzQy#l0hr" -Force -AsPlainText | |
| # note the fingerprint value for the key created in this: | |
| gci cert:\LocalMachine\My | |
| # create a working directory somewhere | 
| # Sets up Ansible and demonstrates some basic functionality | |
| # Run as root, if using sudo amend script accordingly, edit hosts file before running | |
| install-ansible () { | |
| echo deb "http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main" >> /etc/apt/sources.list | |
| apt-key adv --keyserver keyserver.ubuntu.com --recv-keys | |
| apt update;apt install ansible | |
| # basic test | |
| ansible localhost -m ping --ask-pass | |
| read -p "[ctrl] & [c] if this failed" | 
| #Remove a node from cluster: | |
| systemctl stop pve-cluster corosync | |
| pmxcfs -l | |
| rm /etc/corosync/* | |
| rm /etc/pve/corosync.conf | |
| killall pmxcfs | |
| systemctl start pve-cluster | |
| # install guest agent for linux | 
| Requires "Windows Server Backup from Roles" & Features | |
| wbadmin start backup -backuptarget:\\ipaddress\share -systemstate -vsscopy | |
| Boot DSRM on command line: | |
| bcdedit /set safeboot dsrepair | |
| shutdown /r /f /t 5 | |
| Exit DSRM: | |
| bcdedit /deletevalue safeboot | 
| { | |
| "combos": [ | |
| { | |
| "creationDateTime": "2019-02-05T12:15:49.613", | |
| "enabled": true, | |
| "keyword": "//reg", | |
| "modificationDateTime": "2020-10-07T10:37:08.869", | |
| "name": "registration-or-fees", | |
| "snippet": "Hi,\n\nAccording to our view of the campus database you are not currently registered as a student and I cannot access your full details in my view of the database in order to create your account.\nI would recommend you contact the Registrars/Part Time/Finance office and clarify if there is a delay, or if there is something outstanding that they require from you.\n\nAccording to our records there is an outstanding issue with your account such that the Finance/Registrars/Part Time Office has requested it to be put on hold. You will need to contact the Registrars/Part Time office to resolve this and they will then be in a position to remove the hold. Your login credentials will then become active again automatically. \n\nPart time student | 
| esxcli system syslog config set --loghost "tcp://<ipaddress-syslog-server>:514" | |
| esxcli system syslog reload | |
| esxcli network firewall ruleset set --ruleset-id=syslog --enabled=true | |
| esxcli network firewall refresh | |
| nc -z <ipaddress-syslog-server> 514 | |
| esxcli system syslog config get |