Monday, October 18, 2021

Test telnet smpt office 365 port 587 with Powershell

Rum powershell command with

$creds = get-credential

Enter username & Password Email

copy and paste with this command

Send-MailMessage –From test@tv.com –To akka@global.net –Subject "Fwd: Test Email" –Body "Test SMTP Service from Powershell on Port 587" -SmtpServer smtp.office365.com -Credential $creds -UseSsl -Port 587

with attach file

Send-MailMessage –From test@tv.com –To akka@global.net –Subject "Fwd: Test Email" –Body "Test SMTP Service from Powershell on Port 587" -Attachments "C:\PS\SampleAttachment.txt" -SmtpServer smtp.office365.com -Credential $creds -UseSsl -Port 587

Ref. uncaoffice-365-test-smtp-on-port-587

https://infra.engineer/azure/56-office-365-test-smtp-on-port-587-using-powershell


Thursday, October 7, 2021

mount NTFS with dual boot windows 10 and ubuntu 20.04 (R/W)

 1. run this command on Windows 10 with Administrator (If not run this ubuntu will not R/W file on mount drive)

powercfg /h off

Ref: ntfs-3g

2. Add command on file /etc/fstab 

# mount NTFS drive

UUID=483C6CC03C6CAB20 /media/user/drive_c ntfs-3g defaults,uid=1000,gid=1000,rw 0 1

UUID=3874B76D74B72D0E /media/user/drive_d ntfs-3g defaults,uid=1000,gid=1000,rw 0 1

* Create folder for mount Path file

mkdir -p /media/user/drive_c

mkdir -p /media/user/drive_d

* For check disk NTFS on ubuntu run command

sudo blkid

* Allow user to RW file

uid=1000,gid=1000,rw