Other Articles
PowerShell:- Create an PowerShell script to output results to the Event Log
I had a request to check connectivity to a SQL server and to email the results, however I thought of doing something different. Have the application check the connectivity but create an Event ID and Event Log entry on Success and Failure and you can monitor that with...
PowerShell & PowerShell V7:- Find all scheduled tasks on your server.
Task schedular is brilliant because you can schedule things to run on certain days and times but what about if you looking for a scheduled task but there are so many folders to sift through to find them? PowerShell is the answer, you can run a single command to find...
PowerShell:- Increase the value of MaxMemoryPerShellMB.
In PowerShell you have a few options to increase the values of certain settings, in this example we will be looking at MaxMemoryPerShellMB setting that needs to be increased. The default value of 150mb might be fine in a small environment but in a larger environment...
PowerShell V7:- Upgrade from V7.0.3 to V7.1.0 from the command line.
If you are running PowerShell V7 like I am, when you launch it you will see a white box similar to the one below: In this article, we will be upgrading using the command line and below is the command: iex "& { $(irm https://aka.ms/install-powershell.ps1) }...
PowerShell V7:- Run Python scripts flawlessly
In my previous blog post on running Python scripts from PowerShell (Article Here), I was keen to test out the same thing but using PowerShell V7 instead of PowerShell V5.1 that comes with Windows 10. I used the same script as I did previously in PowerShell V7 and here...
PowerShell V7:- Get time skew of a machine
With commands run in PowerShell, I'm referring to the version that comes with Windows 10 (5.1), most scripts or commands run without error unless there is a problem with the script or command. I used a script from Idera to check skew on machines and this script works...
PowerShell 7.0.3:- Create an email message
In a previous article, we used Windows 10 which has PowerShell 5.1 to create a new email message. Here is the link to the article: http://everything-powershell.com/powershell-create-an-email-using-powershell/ In this article we will perform the same function but we...
PowerShell:- Create an email using PowerShell
In this article we are doing to perform two demonstrations for creating draft emails in Outlook from PowerShell. Option 1: Create an email draft however you need to open Outlook to see it.Option 2: Create an email draft but have the email open for you instead of...
PowerShell:- Enable PowerShell logging for more visibility.
One thing I have learnt is you cannot have too many log files. If you want visibility into what is running commands on your server or who is running commands or what is executing, you need to enable PowerShell logging. You get some really sophisticated malware that...
PowerShell:- Check your execution policy
You may have noticed that when you want to run that PowerShell script you downloaded it gives you an error. This is because windows is designed to protect the operating system. If you are running Windows Server, the default is set to remote signed. On Windows client...