In DHCP servers you can configure IP address reservations, meaning that you statically configure the IP addresses that you want the specific DHCP clients to get. This is sometimes desirable when you know your devices and want to ensure that their DHCP-assigned IP addresses won’t change, because of, you know, reasons. (Printers may or may […]
Tag: powershell
Compressed Data Between PowerShell and Python
I have built an application that transfers JSON data between remote PowerShell and Python components using Amazon SQS (Simple Queue Service). The size of the data is usually quite small, fitting nicely into the 256 KiB message size limit of SQS, letting me avoid complex multi-message handling or temporary S3 objects. In specific cases, however, […]
PowerShell Memos
This post contains some of my various and continuous memos for exploring and learning PowerShell. These are not organized in any particular order. Get-Alias (no explanation needed) Get-Command: Use when unsure which commands are available Get-Member: Shows the methods and properties of an object. Also shows the object type. Example: PS C:\> $name = “Markku” […]
Inter-Process Communication with Named Pipes between Python and PowerShell
I have a hunch that I may later need IPC between Python and PowerShell applications on Windows, so I did some research, and managed to make a small example of IPC using named pipes. Here the PowerShell app is the server, waiting for connections, and Python app is the client. simplepipeserver.ps1: simplepipeclient.py: The Python app […]