News: What’s new in C# 11.
You can read more about this features on the official webpage. The following features are available in the 6.0.200 version of the .NET SDK. They’re available in Visual Studio 2022 version 17.2. These are currently preview features and any feature may change before its final release. generic attributes; static abstract… Continue Reading News: What’s new in C# 11.
Web – save snippets across web and Visual Studio Code.
PowerShell tips – part 023.
You need to run on admin this command:
1 | Enable-WindowsOptionalFeature -Feature Microsoft-Hyper-V-Management-PowerShell |
This script will show if the Hyper-V is enabled or not.
1 2 3 4 5 6 7 | $hyperv = Get-WindowsOptionalFeature -FeatureName Microsoft-Hyper-V-All -Online # Check if Hyper-V is enabled if($hyperv.State -eq "Enabled") { Write-Host "Hyper-V is enabled." } else { Write-Host "Hyper-V is disabled." } |
Web – Online snippet generator.
Web – Show trophies in your GitHub README.md.
Here’s how to enhance your GitHub page with your trophies. You had to add the following source code to the README.md page, replacing YOUR_GITHUB_ACCOUNT with your GitHub account name.
1 | [](https://github.com/YOUR_GITHUB_ACCOUNT/github-profile-trophy) |
An example can be seen at my GitHub webpage.
Windows – Windows 8.1 activation settings commands.
Use these commands with administrator privileges. I’m using a licensed Windows 8.1 purchased with my old laptop, and I found these commands useful for information about activation settings:
1 2 3 4 5 | C:\Windows\system32>slmgr.vbs /dli C:\Windows\system32>slmgr.vbs /dlv C:\Windows\system32>slmgr.vbs /rilc |
The last command show all licenses for your Windows.
Windows – fix with SFC using the Windows recovery media.
Most users know how to use the SFC command and in this tutorial, I will show you how to fix it with Windows recovery media. The Windows recovery media can be downloaded from the Windows official website, see the Window 10 download. The System File Checker known as the SFC… Continue Reading Windows – fix with SFC using the Windows recovery media.