PowerShell blog posts

How to run PowerShell in Docker with custom modules

How to run PowerShell in Docker with custom modules

Sypalo.com

How to run PowerShell in Docker with custom modules | DevOps

The idea of launching PowerCLI with the necessary modules in the Docker container has long been brewing, and finally I have taken up this issue. One of the reasons was that PowerShell “broke down” on my Windows 10 machine, or rather, it works, but the Get-Credential command returns an error. The second reason is simply the desire to experiment on the topic. It turned out the truth is not so simple, details below. To run...

Tags: cloud virtualization containers docker powershell

Read more
PowerShell one-liners cheat sheet

PowerShell one-liners cheat sheet

Sypalo.com

PowerShell one-liners cheat sheet | DevOps

Over 10 years of automating daily routine tasks, quite a few short scripts have been collected to perform various tasks with Active Directory, Cisco UCS, NetApp, VMWare vSphere/vCenter, etc. And I also found an interesting video on Channel9 about combining commands into one line. And here's my PowerShell one-liner cheat sheet: Get PowerShell version: Get-Host | Select Version Get your public IP address: (Invoke-RestMethod ipinfo.io/json).ip Get Windows uptime (-Since parameter will show you last boot...

Tags: scripts automation powershell

Read more