Category Archives: Scripting & programming

Somthing about Powershell, VB Script, C#, VB.NET

Git: Delete last x commits on github/gitlab

Hi,

this post describes if something went wrong and you want to delete the last n commits on gitlab.
Continue reading Git: Delete last x commits on github/gitlab

Powershell: Create a powershell module

Hi,

this describes the creation of an powershell module.

Continue reading Powershell: Create a powershell module

Windows: Reset, enable and configure Powershell remoting

Hi,

here are the steps to reset WinRM service and start from scratch.
Continue reading Windows: Reset, enable and configure Powershell remoting

Powershell: Use latest selenium version

Hi,

the selenium module from the powershell gallery outdated is outdated.
Continue reading Powershell: Use latest selenium version

Windows: Invoke-RestMethod =>The underlying connection was closed: An unexpected error occurred on a receive.

Hi,

Invoke-RestMethod or Invoke-WebRequest uses by default TLS 1.0. This protocal is outdated and would be not accepted by the most Webservers anymore.

Usually this results in the following error message:
The underlying connection was closed: An unexpected error occurred on a receive.

Continue reading Windows: Invoke-RestMethod =>The underlying connection was closed: An unexpected error occurred on a receive.