A Power Shell Script can be scheduled using the Windows Task Scheduler. Once you have the PowerShell script ready, you could schedule the PowerShell script by launching the Windows Task Scheduler
- On the right click on Create Basic Task
- Then it would open up a small window which has three main tabs that you need to focus on-General, Triggers and Actions.
- On the General tab, select the radio button “Run whether a user is logged in or not”or otherwise depending on whether you want to run the script when the user is logged In.
- On the Triggers tab, specify the time/frequency when the script needs to run.
- On the Actions Tab, Choose the Action “Start a Program” from the Dropdown and enter PowerShell.exe. Then against the parameters specify the Path of the PowerShell script and click OK.
Now your PowerShell script would run at the scheduled time provided the system is powered ON.
Sending an email via PowerShell is pretty easy! All you need to know apart from the sender’s email address is the SMTP Server.
Here is a basic template of sending an email via Power Shell
$From = "YourEmail@domain.com"
$To = "Sender@Domain.com"
$Cc = "CC@YDomain.com"
$Subject = "Email Subject"
$Body = "Insert body text here"
$SMTPServer = "smtp.domain.com"
$SMTPPort = "587"
Send-MailMessage -From $From -to $To -Cc $Cc -Subject $Subject `
-Body $Body -SmtpServer $SMTPServer -port $SMTPPort -UseSsl `
There maybe times when you would need to compare two word documents. What is the best way to do it? Use a 3rd Party Tool? I don’t recommend doing that since Microsoft Word has got an Inbuilt feature to compare two documents.
As the picture describes-I have two Word Documents-
As you might notice the text look similar but there is a minor text change. Right now it is easy to spot the differences since the document only contains two lines. But what if we had documents that contained at least 100 pages? Doing it manually would be practically not feasible.
How to compare?
- On the Menu at the top, activate the Review Tab
- Click on Compare
- Select Compare Documents
- Choose the Original and the Revised Document.
- And then click OK
It would now show you the differences between the two documents-
npm also known as the node package manager is used to Install dependencies for a project. Dependencies are files that are needed in order for a project to compile and build successfully. Without Installing dependencies, the project would always run Into errors.
Node Package Manager is a one stop shop for Installing dependencies. Without a package manager life would be quite chaotic. One would have to go from one website to another in order to Install files since they are scattered all across the web. It’s akin to shopping in mall where you can get everything in one place rather than going to different stores across the street. It’s a matter of perception which you find more easier or convenient.
As discussed, node package manager allows you to Install all the required files from one place. All you would have to do is just type this command in a terminal or a command prompt.
Just like in Visual Studio, it is helpful to know the matching brace in the Power Shell Editor. If you are near the opening brace, it would tell you where the closing brace is and vice-versa.
Power Shell ISE is the Power Shell Editor for Windows. In order to find the matching brace, one would have to type the following keyboard shortcut
Outlook Web App is the Online Version of the Outlook Client. This obviously runs in the browser of choice. New or fairly new users of Office 365 might receive notifications Informing them that the Timezone has not been set in Outlook. This notification comes in a regular basis and it might get annoying. So, before this gets Into your nerves, here is how one would set up their Timezone in the Outlook Web App. 🙂
You would have to go to this link https://outlook.office365.com/owa/?path=/options/regional and then select your Timezone and format.