Home
Microsoft 365
Linux
Windows
Powershell
Cloud Computing
    Citrix Xendesktop
    Citrix XenApp
Useful links
About
  • Home
  • Microsoft 365
  • Linux
  • Windows
  • Powershell
  • Cloud Computing
    • Citrix Xendesktop
    • Citrix XenApp
  • Useful links
  • About
ajni.IT -
Microsoft 365•Windows Client OS•Windows Server

Outlook NEW is being rolled out starting January 2025. Here is how you can block it.

December 18, 2024 by AJNI No Comments

These 3 registry keys will help you block the rollout of Outlook NEW which is like a lot of Microsoft products a half baked solution that is being pushed by force to push something new.

This key hides the “Try new Outlook” toggle in the top right:

HKEY_CURRENT_USER
Software\Microsoft\Office\16.0\Outlook\Options\General
name HideNewOutlookToggle
type REG_DWORD
data 0x1 (1)

These key disables migration to new Outlook:

HKEY_CURRENT_USER
Software\Microsoft\Office\16.0\Outlook\Options\General
name DoNewOutlookAutoMigration
type REG_DWORD
data 0x0 (0)

HKEY_CURRENT_USER
Software\Policies\Microsoft\office\16.0\outlook\preferences
name NewOutlookMigrationUserSetting
type REG_DWORD
data 0x0 (0)

Reading time: 1 min
Windows Server

FSLogix not saving OneDrive and Microsoft 365 Credentials (AVD, Citrix)

December 11, 2024 by AJNI No Comments

If OneDrive and Microsoft 365 credentials are not being saved in your FSLogix deployment (Azure Virtual Desktop, Citrix etc.) this registry key might help you. There is also a corresponding GPO that does the same.

HKEY_LOCAL_MACHINE\SOFTWARE\FSLogix\Profiles

DWORD – RoamIdentity

Value – 1

Sources:

https://blog.rdorman.net/onedrive-avd-fslogix-password-prompts/

Reading time: 1 min
Powershell•Windows Client OS•Windows Server

Uninstall Windows Program through PowerShell

December 4, 2024 by AJNI No Comments

Here are 2 quick lines of code that help you uninstall a Program:

$Prog = Get-WmiObject -Class Win32_Product | Where-Object{$_.Name -match “ProgramName”}
$Prog.Uninstall()

Reading time: 1 min
Powershell•Windows Client OS•Windows Server

Deploy MS Store App with Powershell – Windows 10/11

November 24, 2024 by AJNI No Comments

If you need to deploy a MS Store App for example through Intune or GPO, here is my script:

First of all you need the App ID of the store app. Go to https://apps.microsoft.com/ search for the app and select it. In the URL you will see something like this: https://apps.microsoft.com/detail/9nw77489ngj0?hl=en-us&gl=US. 9nw77489ngj0 is the App ID.

Now the script:

Start-Transcript -Path “C:\3cx_msstore.log”

$appid=”9NW77489NGJ0″

winget install -e –id $appid –source msstore –accept-source-agreements –accept-package-agreements

winget upgrade –id $appid

Stop-Transcript

Reading time: 1 min
Azure•Cloud Computing•Windows Server

Azure Virtual Desktops session duration with Azure Log Analytics and Kusto Query Language (KQL)

November 13, 2024 by AJNI No Comments

This KQL query helps you compute the user’s session duration in the last 30 days.

WVDConnections
| where State in (“Started”, “Connected”, “Completed”) // Filter relevant states
| where TimeGenerated >= ago(30d) // Get records from the last 30 days
| summarize
StartTime = minif(TimeGenerated, State == “Started”), // Earliest time for “Started”
EndTime = maxif(TimeGenerated, State == “Completed”), // Latest time for “Completed”
HasConnected = countif(State == “Connected”) > 0, // Check for “Connected” event presence
SessionHostName = anyif(SessionHostName, State == “Started”) // Capture the server name associated with the session
by CorrelationId, UserName
| extend DurationMinutes = iff(HasConnected and isnotnull(StartTime) and isnotnull(EndTime),
datetime_diff(“minute”, EndTime, StartTime),
-1) // Use -1 as a placeholder for invalid durations
| where DurationMinutes >= 0 // Filter out invalid durations (those set to -1)
| extend SessionDurationHours = DurationMinutes / 60.0 // Calculate duration in hours
| project UserName, CorrelationId, StartTime, EndTime, DurationMinutes, SessionDurationHours, SessionHostName
| order by StartTime desc // Order by StartTime for clarity

The output looks something like this:

Reading time: 1 min
Page 3 of 21« First...«2345»1020...Last »

Like what you are reading? Buy me a coffee.

Tip Of the Day

  • Add Alias to Windows Fileserver (Server 2019, 2022, 2025)

    17 hours ago

Keep in touch

Oh hi there!
It’s nice to meet you.

Sign up to receive awesome content in your inbox, every month.

Check your inbox or spam folder to confirm your subscription.

Categories

  • AI & Deep Learning (1)
  • Azure (20)
  • Citrix XenApp (21)
  • Citrix Xendesktop (13)
  • Cloud Computing (40)
  • Coding (1)
  • Hyper-V (10)
  • Linux (8)
  • Microsoft 365 (26)
  • Powershell (21)
  • Security (7)
  • VDI (16)
  • Virtualization (21)
  • VMware (12)
  • Windows (21)
  • Windows Client OS (39)
  • Windows Server (92)

Archives

  • May 2025
  • April 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • April 2023
  • March 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • December 2020
  • November 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019

ajni IT © 2019