Using Certify the web for lets encrypt certificates

Go to cloudflare and login click profile icon select my profile go to api tokens tab create new custom token Give token a name give the following permissions Zone Zone Edit Zone DNS Edit Zone Resources Include all zones IP Address filtering none (unless you wanted to restrict access, I have not as my IP is dynamic) TTL Blank Continue to summary Create token Copy API Token Install Certify the web application https://certifytheweb.com/home/ For authentication we will use DNS verification via Cloudflare API On Certify the web go to Settings stored credentials add new stored credentials Select Cloudflare DNS API Set credentials name to easily identify fill in the api token in the api token field click save   on manage certificates page new certificate click okay on prompt about registering a new contact select certificate authority of lets encrypt enter email address,( notify you of upcoming renewals if required, invalid email addresses will be rejected by certificate authority Agree to the terms click register contact   On new certificate window leave slecte site as no IIS side selected add the required domain name and click + Go to authorization tab change challenge type to dns-01 DNS update method - cloudflare...
Read More

Using PowerShell to Test a Remote Connection

Test-NetConnection www.google.com ComputerName : www.google.com RemoteAddress : 216.58.204.228 InterfaceAlias : Ethernet 3 SourceAddress : 192.168.0.13 PingSucceeded : True PingReplyDetails (RTT) : 17 ms   Test-NetConnection www.google.com -Port 80 ComputerName : www.google.com RemoteAddress : 216.58.204.228 RemotePort : 80 InterfaceAlias : Ethernet 3 SourceAddress : 192.168.0.13 TcpTestSucceeded : True   Test-NetConnection www.google.com -TraceRoute ComputerName : www.google.com RemoteAddress : 216.58.204.228 InterfaceAlias : Ethernet 3 SourceAddress : 192.168.0.13 PingSucceeded : True PingReplyDetails (RTT) : 26 ms TraceRoute : 192.168.0.1 0.0.0.0 62.252.112.45 0.0.0.0 62.253.175.34 212.250.14.74 74.125.242.97 172.253.71.201 216.58.204.228   Test-NetConnection www.google.com -port 80 -InformationLevel Quiet True...
Read More

Add signature to Outlook client

Open a new email message. On the Message menu, select Signature > Signatures. Under Select signature to edit, choose New, and in the New Signature dialog box, type a name for the signature. Under Edit signature, compose your signature. Under Choose default signature for new messages select your signature, for replies is you want to use the same signature select the signature name or create a new signature. On Outlook for MacOn the Outlook menu, select Preferences.Under Email, select Signatures.Select Add to add a new signatureIn the Signature editor, type the text that you want to include in your signature.After you are done creating your signature, close the editor window Under Choose default signature for new messages select your signature, for replies is you want to use the same signature select the signature name or create a new signature. close the Signatures window.     ...
Read More

Bulk update VHD Location on Hyper-V Host

used for is you have already moved the files, for instance I updated from using the computer name \\storage\ to the FQDN   get Excel file get-VMHardDiskDrive -VMName * | select VMName,ControllerType,ControllerNumber,ControllerLocation,Path | Export-Csv -Delimiter ";" -Path "c:\temp\vmvhdloc.csv" In excel file update path to what you want it to be (note this does not move the file) import-csv c:\temp\vmvhdloc.csv | ForEach-Object { set-VMHardDiskDrive -VMName $_.VM -ControllerType $_.CT -ControllerNumber 0 -ControllerLocation $_.CL -Path $_.newpath } get-vm * | Get-VMHardDiskDrive  ...
Read More

Storage space does not mount after reinstalling Server OS

Reason server is not configured to use the old storage space setup Server Manager->File and Storage Services->Volumes->Storage Pools Right-click storage pool and choose “Set Read-Write access" and OK on the prompt Set drive to automatically mount update alls virtual drives to automount Get-VirtualDisk | Set-VirtualDisk -IsManualAttach $False...
Read More

Delete folder via CMD on Windows

run command prompt as admin cd to the location of folder DEL /F/Q/S *.* > NUL    (this deletes all files all the folder structure) used cd.. to navigate to parent folder RMDIR /Q/S foldername (this deletes the folder and all subfolders) DEL /F/Q/S *.* > NUL /F -- forces the deletion of read-only files. /Q -- enables quiet mode. You are not ask if it is ok to delete files (if you don't use this, you are asked for any file in the folder). /S -- runs the command on all files in any folder under the selected structure. *.* -- delete all files. > NUL -- disables console output. This improves the process further, shaving off about one quarter of the processing time off of the console command. RMDIR /Q/S foldername /Q -- Quiet mode, won't prompt for confirmation to delete folders. /S -- Run the operation on all folders of the selected path. foldername -- The absolute path or relative folder name, e.g. o:/backup/test1 or test1...
Read More

Unifi Controller install Ubuntu

1 cd /tmp/ 2 wget https://dl.ubnt.com/unifi/5.9.29/unifi_sysvinit_all.deb 3 sudo dpkg -i unifi_sysvinit_all.deb 4 sudo apt-get install -f 5 sudo dpkg -i unifi_sysvinit_all.deb 6 sudo service unifi status 7 sudo service unifi start 8 sudo service unifi status 9 sudo apt-get install -f 10 sudo dpkg -i unifi_sysvinit_all.deb 11 java -version 12 apt-get update 13 sudo apt-get update 14 sudo apt-get install default-jre 15 sudo add-apt-repository ppa:webupd8team/java 16 sudo apt-get update 17 sudo apt-get install oracle-java8-installer 18 java -verstion 19 sudo service unifi status 20 sudo service unifi start 21 sudo service unifi status 22 sudo nano /etc/init.d/unifi 23 sudo service unifi status 24 sudo service unifi restart 25 sudo service unifi status 26 sudo service unifi restart 27 sudo service unifi status 28 ifconfig 29 history...
Read More