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

Create signature Outlook web app

Login to https://outlook.office.com/owa/ click on gear icon and select view all outlook setting on Email tab select compose and reply and fill in your signature Login to https://outlook.office.com/owa/ If you get error the text your types is too long, clean up the signature Copy to new word documents and save the document as web page Filtered closed word and reopen the doc (it should open in web browser) then select the text and copy then paste in to signature are in OWA...
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

Managing membership of Distribution and 365 Groups

Distribution Groups Login to https://outlook.office.com/owa/ Click gear icon select view all outlook settings Go to General then distribution groups https://outlook.office.com/mail/options/general/distributionGroups   Office 365 Groups Login to https://outlook.office.com/owa/ on left side Groups select mange groups and will take you to https://outlook.office.com/people/group/owner Select required group and click on Members tab and remomve or all ones your require...
Read More

Clear DNS Windows MacOS Linux

Windows CMD as admin ipconfig /flushdns   MacOS Applications> Utilities > Terminal 10.7, 10.8, and 10.9 10.10.4 and above - sudo killall -HUP mDNSResponder 10.10.1, 10.10.2, and 10.10.3 - sudo discoveryutil mdnsflushcache 10.5 and 10.6 - sudo dscacheutil -flushcache Enter mac login password (requires admin)   Linux Check if service is running - sudo systemctl is-active systemd-resolved.service sudo systemd-resolve --flush-caches  ...
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