Gist b588efbfbdbd8c9b4be6d634dbc61483
✓ Published0🌍 Public
PPeleke
Last edited Sep 25, 2020
Created on Sep 25, 2020
This example shows a PowerShell script for preparing a Windows machine for remote management and cloning. It configures WinRM by setting memory and timeout limits, enabling basic authentication, and allowing unencrypted traffic, and it disables UAC and NLA through registry edits via `New-ItemProperty`. The code also invokes `Dism` to install .NET Framework 3.5, uses `cleanmgr.exe` for disk cleanup, and downloads Sysinternals' SDelete via `Invoke-WebRequest` to zero free space.
AI-generated description