by Edward van Biljon | Jan 6, 2021 | Windows Server 2016 PowerShell, Windows 10 PowerShell, Windows Server 2012 PowerShell, Windows Server 2019 PowerShell
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...
by Edward van Biljon | Jan 4, 2021 | PowerShell, Window Server 2012 R2 PowerShell, Windows Server 2012 PowerShell, Windows Server 2016 PowerShell, Windows Server 2019 PowerShell
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...
by Edward van Biljon | Dec 25, 2020 | Windows Server 2016 PowerShell, Window Server 2012 R2 PowerShell, Windows Server 2012 PowerShell, Windows Server 2019 PowerShell
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...
by Edward van Biljon | Dec 24, 2020 | PowerShell, Window Server 2012 R2 PowerShell, Windows Server 2016 PowerShell, Windows Server 2019 PowerShell
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...
by Edward van Biljon | Dec 23, 2020 | PowerShell, Python, Windows Server 2012 PowerShell, Windows Server 2016 PowerShell, Windows Server 2019 PowerShell
If you want to use PowerShell to execute Python scripts, you need to have Python installed or you will receive the error below: Head over to the Microsoft store and download Python. I opted for Python 3.7 but there are newer versions out: After the install was done, I...
by Edward van Biljon | Aug 27, 2020 | Windows Server 2016 PowerShell, Windows Server 2012 PowerShell, Windows Server 2019 PowerShell
Quick PowerShell Script!! If you have a temp directory that has many items in, selecting all from Explorer and then deleting them takes longer than using a simple PowerShell command: Here is the command you can run: Get-ChildItem -Path “C:\Windows\Temp”...