Friday, June 30, 2023

Live kernel memory dump from Task Manager

 

Here's another nice Windows 11 Moment 3 features.

You're now able to create live kernel dump files from Task Manager.
This is specially interesting for developers to collect information that they can then use to troubleshoot problems and improve their apps without having to force crash the system.

To create a live kernel dump:

  1. Open Task Manager
  2. Then Details
  3. Right-click the process and then select "Create live kernel memory dump file"

Adding seconds to the clock on Windows 11

 







You now have the ability to add seconds to your Windows 11 clock in the taskbar.

Just keep in my that to achieve this, will need to have already installed WIndows 11 May 2023 update (aka Moment 3).

To achieve that, just follow these steps:

  1. Open Settings

  2. Click on Personalization

  3. Then click the Taskbar option on the right side

  4. Expand the option Taskbar behaviors

  5. Check the option "Show seconds in system tray clock"

And that's it! 

Thursday, June 29, 2023

PS Scripts - Remove Windows Inbox Apps

 










Here's a nice script to remove all or specific Windows Inbox Apps like Xbox App, Skype, Bing Weather, etc.

# If running as a 32-bit process on an x64 system, re-launch as a 64-bit process
if ("$env:PROCESSOR_ARCHITEW6432" -ne "ARM64")
{
if (Test-Path "$($env:WINDIR)\SysNative\WindowsPowerShell\v1.0\powershell.exe")
{
& "$($env:WINDIR)\SysNative\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy bypass -NoProfile -File "$PSCommandPath"
Exit $lastexitcode
}
}
# Logging Preparation
$AppName = "WC_RemoveInboxApps_All"
$Log_FileName = "App-$AppName.log"
$Log_Path = "C:\ProgramData\Microsoft\IntuneManagementExtension\Logs\"
$TestPath = "$Log_Path\$Log_Filename"
$BreakingLine="- - "*10
$SubBreakingLine=". . "*10
$SectionLine="* * "*10
If(!(Test-Path $TestPath))
{
New-Item -Path $Log_Path -Name $Log_FileName -ItemType "File" -Force
}
function Write-Log {
[CmdletBinding()]
param(
[Parameter()]
[string]$Message
)
$timestamp = Get-Date -Format "dddd MM/dd/yyyy HH:mm:ss"
Add-Content -Path $TestPath -Value "$timestamp : $Message"
}
# Start logging [Same file will be used for IME detection]
Write-Log "Begin processing app removal..."
Write-Log $SectionLine
# STEP: Remove built-in Windows packages
Write-Log "Start - Remove built-in Windows packages"
Write-Log $SubBreakingLine
$builtinappstoremove = @(
"Microsoft.windowscommunicationsapps"
"Microsoft.Windows.Photos"
"Microsoft.SkypeApp"
"Microsoft.XboxSpeechToTextOverlay"
"Microsoft.XboxGamingOverlay"
"Microsoft.XboxGameOverlay"
"Microsoft.WindowsFeedbackHub"
"Microsoft.Wallet"
"Microsoft.StorePurchaseApp"
"Microsoft.MicrosoftEdge"
"Microsoft.MicrosoftEdge.Stable"
"Microsoft.People"
"Microsoft.MicrosoftStickyNotes"
"Microsoft.MicrosoftSolitaireCollection"
"Microsoft.MicrosoftOfficeHub"
"Microsoft.Microsoft3DViewer"
"Microsoft.Getstarted"
"Microsoft.GetHelp"
"Microsoft.BingWeather"
"Microsoft.ZuneVideo"
"Microsoft.XboxApp"
"Microsoft.Office.OneNote"
"Microsoft.WindowsAlarms"
"Microsoft.WindowsSoundRecorder"
"Microsoft.ZuneMusic"
"Microsoft.YourPhone"
"Microsoft.WindowsMaps"
"Microsoft.MicrosoftEdgeDevToolsClient"
"Microsoft.EdgeDevtoolsPlugin"
"Microsoft.Print3D"
"MicrosoftTeams"
"Microsoft.Xbox.TCUI"
"Microsoft.XboxGameOverlay"
"Microsoft.XboxIdentityProvider"
"Microsoft.XboxSpeechToTextOverlay"
)
foreach ($app in $builtinappstoremove) {
Write-Log "Attempting to remove $app"
Get-AppxPackage -Name $app -AllUsers | Remove-AppxPackage
Get-AppXProvisionedPackage -Online | Where-Object {$_.DisplayName -eq "$app"} | Remove-AppxProvisionedPackage -Online
Write-Log "Removed $app"
Write-Log $SubBreakingLine
}
Write-Log "END - All specified built-in apps were removed succesfully"
Write-Log $BreakingLine
view raw gistfile1.txt hosted with ❤ by GitHub

Monday, June 26, 2023

PS Scripts - Set Windows Registered User and Organization


Here's a quick and easy PowerShell script to set Windows registered owner and organization. The script will automatically set the owner as the logged user.

Tip: Use it during Autopilot deployment so you can have this information automatically added after the assigned user sign-in.

# Define registered organization name
$strCurrentUserName = $env:UserName
$strOrganizationName = "Your Organization Name"
$path = 'HKLM:\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion'
$key = try {
Get-Item -Path $path -ErrorAction STOP
}
catch {
#New-Item -Path $path -Force
}
New-ItemProperty -Path $key.PSPath -Name RegisteredOwner -Value $strCurrentUserName -Force
New-ItemProperty -Path $key.PSPath -Name RegisteredOrganization -Value $strOrganizationName -Force

Drivers and Firmware updates coming to Intune soon!

 


I think this may be one of the most requested features for Intune, and will be generally available during June 2023!
Microsoft will rollout a new feature that allows Intune admins to manage drivers and firmware updates for enrolled devices.


Acording to the roadmap, you'll soon get this feature and it allows a lot of customization, like selecting automatic drivers update, manual driver update with approving, etc.

Take a look at Microsoft presentation here:


Thursday, June 22, 2023

Windows Autopilot Ultimate Guide by Robin Hobo

 


If you're looking for the most comprehensive step-by-step guide for Windows Autopilot, I strongly recommend you to take a look to Robin Hobo's "Windows Autopilot – The ultimate step-by-step deployment guide".

It's just so simple, accessible and straight forward that you will start using Autopilot in a couple of hours.

So, go ahead and take a look to Robin Hobo's post:
Robin Hobo - Windows Autopilot – The ultimate step-by-step deployment guide