changepk.exe /ProductKey VK7JG-NPHTM-C97JM-9MPGT-3V66T
C l i n t ' s H i n t s
Friday, July 17, 2026
Wednesday, July 8, 2026
winget update and all that jazz
If you find yourself longing for the command line and want to update all the stuff, this may fulfill your CLI needs.
powershell
# 1. Force the use of TLS 1.2 for secure asset downloading [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 # 2. Download and install the Winget bootstrap script from PowerShell Gallery Install-Script -Name winget-install -Force # 3. Run the installer script to download winget and its required libraries winget-install -ForceClose your current PowerShell window completely and open a new one to reload the paths.
(Sometimes you need to run this: Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass)
Restart your PowerShell to refresh your environment path variables.
# 4. Run this command to update
winget upgrade --all
Server 2019
If you want to do this for Server 2019, follow this modified solution.
# 1. Bypass the execution policy for this session Set-ExecutionPolicy Bypass -Scope Process -Force # 2. Force TLS 1.2 to download files securely [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 # 3. Download and register the specialized installation script Install-Script -Name winget-install -Force winget-install -Force
Because Server 2019 lacks the execution aliases, you must add the hidden
system folder where winget.exe is deployed directly to your environment path.
Run this block in the same PowerShell window
# Locate the installed application folder and add it to the system PATH $ResolveWingetPath = Resolve-Path "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe" if ($ResolveWingetPath) { $WingetPath = $ResolveWingetPath[-1].Path $SystemEnvPath = [System.Environment]::GetEnvironmentVariable('PATH', 'Machine') if ($SystemEnvPath -notlike "*$WingetPath*") { setx /M PATH "$SystemEnvPath;$WingetPath" } }
Now,
# 4. winget upgrade --all
Thursday, November 13, 2025
Windows 11 Network Refresh Without Reboot
# Full-Network-Reset.ps1
# Run as Administrator for full effect
Write-Host "Restarting network adapters..." -ForegroundColor Cyan
$adapters = Get-NetAdapter | Where-Object { $_.Status -eq 'Up' }
foreach ($adapter in $adapters) {
Disable-NetAdapter -Name $adapter.Name -Confirm:$false
Start-Sleep -Seconds 2
}
foreach ($adapter in $adapters) {
Enable-NetAdapter -Name $adapter.Name -Confirm:$false
Start-Sleep -Seconds 2
}
Write-Host "Flushing DNS cache..." -ForegroundColor Cyan
ipconfig /flushdns
Write-Host "Releasing IP address..." -ForegroundColor Cyan
ipconfig /release
Write-Host "Renewing IP address..." -ForegroundColor Cyan
ipconfig /renew
Write-Host "Resetting TCP/IP stack..." -ForegroundColor Cyan
netsh int ip reset
Write-Host "Resetting Winsock catalog..." -ForegroundColor Cyan
netsh winsock reset
Write-Host "Network reset complete. You may need to restart your computer." -ForegroundColor Green
Tuesday, June 24, 2025
.Net said .No so this says .Youbetterorelsebuddy
I was having trouble with .net framework install on new computers. I'm not sure why it didn't work repeatedly, but found that if you pop a flash drive in with windows 11 on it, and use the following command it works.
C:\Windows\System32>DISM.exe /Online /Enable-Feature /FeatureName:"NetFx3" /All /LimitAccess /Source:"D:\sources\sxs"
Friday, May 2, 2025
Inventory + Excel + VBA = ❤️
If you are like me and you have to look at a lot of spreadsheets with things like lists of inventory, you probably start seeing the cells dance as you try to track across the row. Is that just me? Maybe it is a touch of dyslexia.
I asked AI to help me find a solution and my AI buddy delivered. Thank you AI overlord ❤️
Here is a simple VBA code snippet that you can use to highlight the row of the active cell:
- Press Alt + F11 to open the VBA editor.
- In the VBA editor, find your workbook in the Project Explorer window.
- Double-click on ThisWorkbook to open the code window for the workbook.
- Copy and paste the following code into the code window:
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Excel.Range)Dim ws As WorksheetSet ws = Sh' Clear previous highlightsws.Rows.Interior.ColorIndex = xlNone' Highlight the active rowws.Rows(Target.Row).Interior.Color = RGB(255, 255, 0) ' Yellow colorEnd Sub
5. Close the VBA editor and save your workbook as a macro-enabled workbook (.xlsm).
Now, This code will highlight the row of the active cell in yellow. You can change the color by modifying the RGB values.
Thursday, March 27, 2025
Security and the boy who didn't want to go touch every computer because of a printer driver update...
DON'T DO THIS. I REPEAT DON'T DO THIS
Open Group Policy Editor:
- Press Windows + R to open the Run dialog.
- Type gpedit.msc and press Enter.
Navigate to Security Options:
- Go to Computer Configuration > Policies > Windows Settings > Security Settings > Local Policies > Security Options.
- Find the policy Devices: Prevent users from installing printer drivers.
- Set this policy to Disabled.
- Navigate to Computer Configuration > Policies > Administrative Templates > System > Driver Installation.
- Find the policy Allow non-administrators to install drivers for these device setup classes.
- Set this policy to Enabled.
- Click the Show button under the Options section and enter the following GUIDs:
- Class = Printer {4658ee7e-f050-11d1-b6bd-00c04fa372a7}
- Class = PNPPrinters {4d36e979-e325-11ce-bfc1-08002be10318}
Disable Point and Print Restrictions:
- In Group Policy Editor, navigate to Computer Configuration > Policies > Administrative Templates > Printers.
- Find the policy Point and Print Restrictions.
- Set this policy to Disabled.
Restart Your Computer
Friday, March 7, 2025
Windows print to PDF
dism /Online /Disable-Feature /FeatureName:"Printing-PrintToPDFServices-Features" /NoRestart
After it finishes, enter the following command and you should be good
dism /Online /Enable-Feature /FeatureName:"Printing-PrintToPDFServices-Features" /NoRestart
Awkward Introductions & Windows Hello
Monday, January 27, 2025
My New Friends for Windows Hello for Business
Wednesday, January 22, 2025
The Wizarding World of PowerShell Calendar Permissions
- Open the PowerShells and connect to the Exchanges:
Install-Module -Name ExchangeOnlineManagement - Log into the Exchanges:
Connect-ExchangeOnline -UserPrincipalName <your_username> - Take a look at who has access to a calendar:
Get-MailboxFolderPermission -Identity "Snoop@Dogg.com:\calendar" - Give permissions to Martha:
Add-MailboxFolderPermission -Identity "Snoop@Dogg.com" -User "martha@Dogg.com" -AccessRights Reviewer - When you finish, don't forget to close the session:
Get-PSSession | Remove-PSSession
Extra Credit: If you would like to see what rights Martha has to every account in your M365 tenet you can use the command below. This will take a long time if you have a lot of accounts.
Get-Mailbox | ForEach-Object {Write-Host "Processing mailbox: $($_.PrimarySmtpAddress)" Get-MailboxFolderPermission -Identity "$($_.PrimarySmtpAddress):\calendar" | Where-Object {$_.User -like "martha@Dogg.com"} | Select-Object Identity, User, AccessRights
Tuesday, July 9, 2024
Microsoft Entra hybrid device pending
Failure to launch? You can't unsee some things. That Terry Bradshaw scene in the forementioned movie still haunts me.
This part is from Microsoft...
Resolve Microsoft Entra hybrid devices in pending state
During the initial phase of the hybrid join process, the device state is expected to be pending until the registration process is complete.
A device may remain in a pending state for the following reasons that an admin can address:
Microsoft Entra Connect device synchronization changes
Problems could occur if a change made in Microsoft Entra Connect caused the device ID to be out of sync with the machine. Validate Microsoft Entra Connect is functioning as expected and there was no recent configuration changes.
Required Microsoft endpoints may be blocked by network
Devices must be able to communicate successfully with the following Microsoft endpoints:
- https://enterpriseregistration.windows.net
- https://login.microsoftonline.com
- https://device.login.microsoftonline.com
- https://autologon.microsoftazuread-sso.com (If you use or plan to use seamless SSO)
- Your organization's Security Token Service (STS) (For federated domains)
After confirming the above scenarios aren't contributing to the pending state, run the following command ”dsregcmd /leave” in an elevated command prompt and restart the device to attempt to rejoin the machine. Changes may take up to an hour to show in Microsoft Entra.
If the issue is persistent after following the steps above, for further assistance.
Step 1: Remove Stale Intune Enrollment Artifacts
Run these steps as local admin on the device.
1️⃣ Delete the EnterpriseMgmt scheduled tasks
Task Scheduler →
Task Scheduler Library →
Microsoft →
Windows →
EnterpriseMgmt
- You’ll see one folder with a long GUID
- Delete ALL tasks inside that folder
- Do NOT delete the EnterpriseMgmt root
2️⃣ Delete the matching enrollment registry key
Open Registry Editor and go to HKLM\SOFTWARE\Microsoft\Enrollments
Look for a GUID key that matches the one under EnterpriseMgmt
Confirm it contains a UPN value
Delete that GUID key
Step 2: Refresh Policy and Trigger Re‑Enrollment
Open a command prompt and enter
gpupdate /force
shutdown /r /t 0
There's no place like pro. There's no place like pro. There's no place like pro.
changepk.exe /ProductKey VK7JG-NPHTM-C97JM-9MPGT-3V66T
-
First, you need to locate the server with the PDC role. Open the command prompt and type: netdom /query fsmo Look for the PDC line L...
-
# Full-Network-Reset.ps1 # Run as Administrator for full effect Write-Host "Restarting network adapters..." -ForegroundColor C...