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 -
Azure•Cloud Computing•Windows Server

Cannot Entra ID Join / Azure AD Join Computer error 8018000a

October 16, 2024 by AJNI No Comments

Having issue Azure AD joining a Windows 10 or 11 computer and getting error 8018000a? This script might help you. It deletes all keys except Context under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Enrollments

$EnrollmentsPath = “HKLM:\SOFTWARE\Microsoft\Enrollments\”
$Enrollments = Get-ChildItem -Path $EnrollmentsPath
$DiscoveryServerFullUrls = @(“https://wip.mam.manage.microsoft.com/Enroll”)
Foreach ($Enrollment in $Enrollments) {
$EnrollmentObject = Get-ItemProperty Registry::$Enrollment
if ($EnrollmentObject.”DiscoveryServiceFullURL” -in $DiscoveryServerFullUrls ) {
$EnrollmentPath = $EnrollmentsPath + $EnrollmentObject.”PSChildName”
Remove-Item -Path $EnrollmentPath -Recurse
& “C:\Windows\System32\deviceenroller.exe /c /AutoEnrollMDM”
}
}

References:

https://jocha.se/blog/tech/azure-ad-mdm-intune-error-8018000a

Reading time: 1 min
Citrix XenApp•Citrix Xendesktop•Hyper-V•VDI•VMware•Windows Server

Citrix Workspace App Session freeze and high response time

October 2, 2024 by AJNI No Comments

If you are having issues with some users having freeze issues and high response time in Citrix Director, this registry key might help you. It happens in conjunction with dedicated GPUs on notebooks. The key disabled GPU acceleration for Citrix Workspace App.

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Citrix\ICA Client\Graphics Engine] “HWacceleration”=dword:00000000

References:

https://support.citrix.com/s/article/CTX297140-screen-freezes-and-takes-a-few-seconds-to-return-to-normal-apps-also-flicker-when-open?language=en_US

Reading time: 1 min
Windows Client OS•Windows Server

Packet Capture in Windows without Wireshark

September 25, 2024 by AJNI No Comments

If you need to perform a packet capture under Windows without having to install Wireshark, here are some netsh commands:

netsh trace start capture=yes tracefile=c:\net.etl persistent=yes maxsize=4096 filemode=circular overwrite=yes report=no

When you are done with your capture do:

netsh trace stop

This will take some time.

You will see the files under C:\net.etl and net.cab

Reading time: 1 min
Citrix XenApp•Citrix Xendesktop•VDI

Citrix Netscaler Authentication with nFactor AAA

July 6, 2024 by AJNI No Comments

Classic Authentication Schemes will soon be deprecated in Citrix Netscaler and should be replaced with nFactor AAA.

Here is a quick tutorial on how to configure nFactor Authentication.

Security > AAA Application Traffic > Policies > Authentication > Basic Policies > RADIUS

Select Servers > Add

Name RADIUS_Server

Server IP xxxx

Secret

Also test the radius reachability

Security > AAA Application Traffic > Policies > Authentication > Basic Policies > LDAP

Select Servers > Add

Fill in all the information that apply to your domain

Security > AAA – Application Traffic, Policies, Authentication, Advanced Policies > Policy. Then, click “Add”

Do the same thing for RADIUS

Create AAA virtual server

Configuration > Security > AAA – Application Traffic > Virtual Servers

Import private certificate and root cert

Click on “No Authentication Policy”

Select Policy LDAP_Pol

Click on Select next to “Next Factor”

Add an authentication policy label

Continue

Policy Binding > Select RADIUS_Pol

Goto Expression > Select END and BIND the authentication Policy Label

Done

BIND

Continue

Add a login schema on the right side

Select “No Login Schema”

Select Policy

Bind and Done

Add nFactor to the Gateway virtual server

Citrix Gateway > Virtual Servers > select VIP > Add Authentication Profile on the right

Create > Ok > Done

If you get this error after logging in, you have to enable SSO on the Authentication Template

Go to Security > AAA Application Traffic > Login Schema > lschema_dual_factor_builtin > … Edit

Edit the profile again

Click on the pencil

> More > Check Enable Single Sign On Credentials > OK > OK

References:

https://community.citrix.com/tech-zone/build/deployment-guides/gateway-mfa/#_=_

Reading time: 1 min
Powershell•Windows Server

Check NTFS inheritance on Windows Fileserver with PowerShell

June 11, 2024 by AJNI No Comments

This quick script shows you if and where inheritance is deactivated. You can also set in the parameters how deep or how many levels inheritance is checked.

# Function to check inheritance up to the specified level
function Check-Inheritance {
    param (
        [string]$directoryPath,
        [int]$currentLevel,
        [int]$maxLevel
    )

    # Exit if current level exceeds max level
    if ($currentLevel -gt $maxLevel) {
        return
    }

    # Get the ACL of the directory
    $acl = Get-Acl -Path $directoryPath

    # Check if inheritance is disabled
    if ($acl.AreAccessRulesProtected) {
        Write-Output "$directoryPath - Inheritance is disabled"
    } else {
        #Write-Output "$directoryPath - Inheritance is enabled"
    }

    # Recursively check subdirectories if current level is less than max level
    if ($currentLevel -lt $maxLevel) {
        $subdirectories = Get-ChildItem -Path $directoryPath -Directory
        foreach ($subdir in $subdirectories) {
            Check-Inheritance -directoryPath $subdir.FullName -currentLevel ($currentLevel + 1) -maxLevel $maxLevel
        }
    }
}
# Function to check inheritance up to the specified level
function Check-Inheritance {
    param (
        [string]$directoryPath,
        [int]$currentLevel,
        [int]$maxLevel
    )

    # Exit if current level exceeds max level
    if ($currentLevel -gt $maxLevel) {
        return
    }

    # Get the ACL of the directory
    $acl = Get-Acl -Path $directoryPath

    # Check if inheritance is disabled
    if ($acl.AreAccessRulesProtected) {
        Write-Output "$directoryPath - Inheritance is disabled"
    } else {
        #Write-Output "$directoryPath - Inheritance is enabled"
    }

    # Recursively check subdirectories if current level is less than max level
    if ($currentLevel -lt $maxLevel) {
        $subdirectories = Get-ChildItem -Path $directoryPath -Directory
        foreach ($subdir in $subdirectories) {
            Check-Inheritance -directoryPath $subdir.FullName -currentLevel ($currentLevel + 1) -maxLevel $maxLevel
        }
    }
}

To execute the script:

Check-Inheritance -directoryPath $rootDirectory -currentLevel 1 -maxLevel 3 
Reading time: 1 min
Page 5 of 23« First...«4567»1020...Last »

Like what you are reading? Buy me a coffee.

Tip Of the Day

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

    1 day 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