notes/technology/powershell

Local User Management Polyfill

Notes | 2022-01-13 (updated 2025-10-25) | 1 min read
#powershell

Older Versions of Windows 10 and all Windows Server 2012 systems have no local user management commandlets.

This is a working polyfill to allow scripts using local user management to run on old systems.

Source code

PSGallery package

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.