Skip to content

Instantly share code, notes, and snippets.

View dtewales's full-sized avatar
💭
me fail english? that's unpossible!

dtewales

💭
me fail english? that's unpossible!
View GitHub Profile
@dtewales
dtewales / README.md
Created June 10, 2025 09:27 — forked from andshrew/README.md
VMware Workstation VM encryption passwords saved in the the Windows Credential Manager

Retrieving VMware Workstation VM encryption passwords saved in the the Windows Credential Manager

When creating an encrypted VM, VMware Workstation gives you the option to remember the password. It does this by storing the password in the Windows Credential Manager.

VMware does not provide a way to retrieve this stored password, but it can be accessed via the Win32 CredReadW API function.

There are a number of PowerShell projects including PowerShell Credential Manager which provide access to this API, but in testing I found they were unable to correctly display the VMware password.

This PowerShell example has been tested using Windows PowerShell (v5.1) and PowerShell (v7) using VMwa

@dtewales
dtewales / Win_Server_2022_Evaluation_to_full_version.md
Created December 4, 2024 16:48 — forked from nosmall/Win_Server_2022_Evaluation_to_full_version.md
Upgrade Windows Server 2022 Evaluation (Eval) to Full Version Standard or Datacenter
@dtewales
dtewales / windows-tweaks.reg
Created October 15, 2024 11:04 — forked from y0lopix/windows-tweaks.reg
Useful tweaks for Windows 11 and Windows 10
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Search]
"BingSearchEnabled"=dword:00000000
"AllowSearchToUseLocation"=dword:00000000
"CortanaConsent"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search]
"AllowCortana"=dword:00000000
"DisableWebSearch"=dword:00000001
@dtewales
dtewales / disableServices.ps1
Created December 4, 2023 15:25 — forked from juandbc/disableServices.ps1
Script to disable unnecesary Windows services and improve the performance.
#####################################################################################################################
# Script to disable unnecesary Windows services and improve the performance.
#
# This use the command Set-Service, you can check the below link for more information
# https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/set-service?view=powershell-7
#
# You should check what service you want to disable, like Windows defender, Windows Search
# or Seclogon (necesary for some programs or games).
# Some services were removed in Windows 10.
#####################################################################################################################
@dtewales
dtewales / DevMachineSetup.ps1
Created October 12, 2023 14:27 — forked from codebytes/DevMachineSetup.ps1
DevMachineSetup
#Install WinGet
#Based on this gist: https://gist.github.com/crutkas/6c2096eae387e544bd05cde246f23901
$hasPackageManager = Get-AppPackage -name 'Microsoft.DesktopAppInstaller'
if (!$hasPackageManager -or [version]$hasPackageManager.Version -lt [version]"1.10.0.0") {
"Installing winget Dependencies"
Add-AppxPackage -Path 'https://aka.ms/Microsoft.VCLibs.x64.14.00.Desktop.appx'
$releases_url = 'https://api.github.com/repos/microsoft/winget-cli/releases/latest'
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
@dtewales
dtewales / gist:20a993de9c403d15569ccff4e8c47fe6
Created March 10, 2023 18:31 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@dtewales
dtewales / install_cygwin_sshd.txt
Created January 31, 2023 18:15 — forked from roxlu/install_cygwin_sshd.txt
Installing CYGWIN + SSHD for remote access through SSH on windows
Installing CYGWIN with SSH
1) Download cygwin setup.exe from http://www.cygwin.com
- Execute setup.exe
- Install from internet
- Root directory: `c:\cygwin` + all users
- Local package directory: use default value
- Select a mirror to download files from
- Select these packages:
- editors > xemacs 21.4.22-1
- net > openssh 6.1-p