__NTLMUser9X

NTLMUser9X

Controls remote access to unsupported versions of Windows.

On this page

Main example

List instances

# All instances of __NTLMUser9X, with the main properties
Get-CimInstance -ClassName __NTLMUser9X -Namespace 'root' |
    Select-Object -Property Name, Authority, Flags, Mask

Examples

Filter with WQL

# WQL filter evaluated by the provider: names starting with "a" (the WQL wildcard is %)
$cimParameters = @{
    ClassName = '__NTLMUser9X'
    Namespace = 'root'
    Filter    = "Name LIKE 'a%'"
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, Authority, Flags, Mask

The filter is evaluated by the WMI provider: less data is transferred than with Where-Object.

Query a remote computer (CIM session)

review before running
# Name of the remote computer
$computerName = 'SERVER01'
# The CIM session (WSMan by default) can be reused for several queries
$cimSession = New-CimSession -ComputerName $computerName
try {
    $cimParameters = @{
        CimSession = $cimSession
        ClassName  = '__NTLMUser9X'
        Namespace  = 'root'
    }
    Get-CimInstance @cimParameters |
        Select-Object -Property Name, Authority, Flags, Mask
} finally {
    Remove-CimSession -CimSession $cimSession
}

WSMan (WinRM) is used by default. For a host without WinRM, create the session with -SessionOption (New-CimSessionOption -Protocol Dcom). Add -Credential to use another account.

Show the class structure

# Class structure: properties, types and flags (Key, ReadOnly…)
$cimClass = Get-CimClass -ClassName __NTLMUser9X -Namespace 'root'
$cimClass.CimClassProperties |
    Select-Object -Property Name, CimType, Flags

Properties

5 of 5 properties
NameTypeAccessDescription
Authoritystringread/write

Domain to which a user name applies.

Code
# Value of Authority for each instance
$cimParameters = @{
    ClassName = '__NTLMUser9X'
    Namespace = 'root'
    Property  = @('Name', 'Authority')
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, Authority

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes Authority on the instance. -WhatIf shows the operation without running it.
# Target instance
$instance = Get-CimInstance -ClassName __NTLMUser9X -Namespace 'root' |
    Select-Object -First 1
$setParameters = @{
    InputObject = $instance
    Property    = @{ Authority = 'Example' }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
Flagssint32read/write

Inheritance flags.

0

No inheritance.

2

Apply to child namespaces, in addition to the current one.

Code
# Value of Flags for each instance
$cimParameters = @{
    ClassName = '__NTLMUser9X'
    Namespace = 'root'
    Property  = @('Name', 'Flags')
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, Flags

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes Flags on the instance. -WhatIf shows the operation without running it.
# Target instance
$instance = Get-CimInstance -ClassName __NTLMUser9X -Namespace 'root' |
    Select-Object -First 1
$setParameters = @{
    InputObject = $instance
    Property    = @{ Flags = 0 }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
Masksint32read/write

Bitmask that specifies access rights to the namespace in the Windows Management Instrumentation (WMI) repository. For bit values, see Namespace Access Rights Constants.

Code
# Value of Mask for each instance
$cimParameters = @{
    ClassName = '__NTLMUser9X'
    Namespace = 'root'
    Property  = @('Name', 'Mask')
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, Mask

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes Mask on the instance. -WhatIf shows the operation without running it.
# Target instance
$instance = Get-CimInstance -ClassName __NTLMUser9X -Namespace 'root' |
    Select-Object -First 1
$setParameters = @{
    InputObject = $instance
    Property    = @{ Mask = 0 }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
Namestringread/write

User name.

Code
# Value of Name for each instance
$cimParameters = @{
    ClassName = '__NTLMUser9X'
    Namespace = 'root'
    Property  = 'Name'
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes Name on the instance. -WhatIf shows the operation without running it.
# Target instance
$instance = Get-CimInstance -ClassName __NTLMUser9X -Namespace 'root' |
    Select-Object -First 1
$setParameters = @{
    InputObject = $instance
    Property    = @{ Name = 'Example' }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters
Typesint32read/write

Access allowed.

0

Access allowed.

2

Access denied.

Code
# Value of Type for each instance
$cimParameters = @{
    ClassName = '__NTLMUser9X'
    Namespace = 'root'
    Property  = @('Name', 'Type')
}
Get-CimInstance @cimParameters |
    Select-Object -Property Name, Type

Warning. Changes the system: check with -WhatIf first. An elevated console is often required.

# Warning: changes Type on the instance. -WhatIf shows the operation without running it.
# Target instance
$instance = Get-CimInstance -ClassName __NTLMUser9X -Namespace 'root' |
    Select-Object -First 1
$setParameters = @{
    InputObject = $instance
    Property    = @{ Type = 0 }
    WhatIf      = $true  # Remove this line to actually apply the change
}
Set-CimInstance @setParameters

Remarks

The __NTLMUser9X class is used as an input parameter for the __SystemSecurity::Get9XUserList and __SystemSecurity::Set9XUserList methods.

Inheritance

Superclass chain

  1. __SecurityRelatedClass
  2. __NTLMUser9X

Known subclasses

No known subclass.

Requirements

Namespace
root
Minimum client
Windows Vista
Minimum server
Windows Server 2008
DLL
All

Microsoft source

Source: Microsoft Learn

Descriptions, properties and methods come from the Microsoft documentation (MicrosoftDocs/win32 repository), published under the CC BY 4.0 licence. Formatting and translations are specific to this site; the PowerShell examples are written for it.