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 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”...
by Edward van Biljon | Feb 20, 2020 | Windows Server 2016 PowerShell, Window Server 2012 R2 PowerShell, Windows Server 2008 R2 PowerShell, Windows Server 2012 PowerShell, Windows Server 2019 PowerShell
In any operating system, you may want to uninstall or remove a device like a network card for example that may be causing issues. Launching Device Manager does not show the device and as an example you cannot rename you network card because it says the device already...
by Edward van Biljon | Jan 22, 2020 | Windows Server 2016 PowerShell, Window Server 2012 R2 PowerShell, Windows Server 2012 PowerShell
With PowerShell you can pretty much do anything. In this article we disabled Netbios using a registry key, however you can do the same using WMI and PowerShell as well as removing the tick box for Lmhosts on a Network Card. To do this, you can run the following set of...
by edward | Aug 29, 2019 | Windows Server 2016 PowerShell, Window Server 2012 R2 PowerShell, Windows Server 2012 PowerShell
On one of my client’s server running Windows Server 2012 R2, when you launched PowerShell it would immediately crash with the error: and this would create windows events non-stop on the server as follows: At first you think you have the famous PowerShell Virus...