PowerShell

Posts tagged with #powershell
Total: 17

Collections And Randomization

Randomize Collections in PowerShell

Posts | 2020-11-18 (updated 2025-10-23) | 2 min read
#powershell

Randomizing a collection is useful in a variety of situations and in most languages it is fairly straight forward.

Read more…

How To Grep With PowerShell

It's just like Bash, but more powerful!

Posts | 2020-09-30 (updated 2025-10-23) | 4 min read
#powershell
Series: Bash to PowerShell

Filtering data, from log or config files to data returned by an api, is an important operation to remove noise from it and make further analysis possible.

Read more…

How to Tail With PowerShell

How to Replace Tail in PowerShell

Posts | 2020-09-21 (updated 2025-10-26) | 3 min read
#powershell
Series: Bash to PowerShell

Printing the last or first, few lines of a file is a common operation in day to day operations. On Linux most people will, without thinking twice, use tail and it’s counterpart head to achieve this.

Read more…

Bash Utilities in Powershell

Replacing Common Bash Utilities in PowerShell

Posts | 2020-09-20 (updated 2025-10-23) | 1 min read
#powershell
Series: Bash to PowerShell

Whats the first thing coming to mind when seeing a command line?

For most people it is Linux, be it Ubuntu, Debian or RedHat. And it is completely understandable. A big part of our industry has a background in Linux and sees it as the superior system for quick scripts and the like.

Read more…

Vmware Tools Copy Files

Notes | 2020-09-17 (updated 2025-10-25) | 1 min read
#powershell #vmware

Docs

Copy To Guest

$vm = Get-VM -Name TEST
Get-Item "X:\yourfile.txt" | Copy-VMGuestFile -Destination "c:\temp" -VM $vm -LocalToGuest -GuestUser "Administrator" -GuestPassword "Pa$$w0rd"

Copy From Guest

$vm = Get-VM -Name TEST
Copy-VMGuestFile -Source c:\yourfile.txt -Destination c:\temp\ -VM $vm -GuestToLocal -GuestUser "Administrator" -GuestPassword "Pa$$w0rd"

PowerShell

Notes | 2020-01-01 (updated 2025-10-25) | 1 min read
#powershell #slashpage-uses

PowerShell holds a special place in my heart as it was the first ever tool I dived into deeply and used to automate my daily work.

To this day it runs a bunch of fundamental automations in my life.

vCenter Cert Bundle

Notes | 2019-05-13 (updated 2025-10-25) | 1 min read
#powershell #vmware

Errors connecting to vCenter or any ESXi server in the cluster without certificate errors?

VMware KB