Showing posts from April, 2019

Powershell script to automatically send HTML emails using gmail smtp

Hi please find the script/code below which can be used (as a example  use case) for sending automated reminders for filling time-sheets  to all employees on every Friday(can be any day depending on when you schedule it to run using windows task scheduler as per your requirements) using gmail gsuite or any other email providers:

Things Required:
SMTP outgoing port(587) allowed through firewallsNo-reply email which will be used for sending emailsApplication password (as gmail blocks sending emails from scripts if direct credentials(username & normal password) are used and sends warning alerts and notifications to owner and eventually blocks the account if not rectified thus application password needs to be created and used to prevent that from happening,steps for creating same are given below)Server which runs 24x7 where we will place and schedule our scripts to run at specific time.(You can use your local PC systems and execute script manually by double clicking if required)Steps:

Part 2: List of Questions I have been asked in Interviews

This post is in continuation of Part 1
How will you minimize downtime during a migration will least human effort ? (Mirroring)What is listener?How does listener comes to know which is secondary and which is primary ?(IP SUBNETS)Can we take backups in Always on Secondaries ?What all types of backups can you take in always on secondaries ?(COPY ONLY else it breaks log chain)Why replication when logshipping is available?(Load balancing vs disaster recovery respectively)How many server instances are required for setting up mirroring?(2 without witness (manual failover),3 with witness (automatic failover)Can we set up automatic failover in mirroring without witness server instance?Can you please explain steps for installing mirroring ?Can you please explain steps for installing logshipping?Why do people upgrade and update sql server instances when they have to pay more money for licensing cost even if they are not using new features that are made available?(bug fixes,performance improvemen…

Popular posts from this blog

Enabling fixed Sidebar for blogger Contempo template for screen sizes smaller than 1440px

Adding copy to clipboard button to every google code prettify pre blocks in blogger

Solution: More Posts & Posts Links not working with Adsense Anchor ads on Touch screen mobiles in blogger

Query to Expand and List All logins within a SQL Server Group

Powershell script to automatically send HTML emails using gmail smtp

Adding code prettify to Blogger