PowerShell 7.3.6 support for New-LocalUser

Hi there,

Is there no support for New-LocalUser Cmdlet in PowerShell 7.3.6 ? I get this error message :slight_smile:
Password: ************

New-LocalUser: Could not load type ‘Microsoft.PowerShell.Telemetry.Internal.TelemetryAPI’ from assembly ‘System.Management.Automation, Version=7.3.6.500, Culture=neutral, PublicKeyToken=31bf3856ad364e35’

Get-LocalUser -Name ‘jason’ works just fine ?

kind regards,

Jason

Hi, welcome to the forum :wave:

Appears to have been acknowledged as a known problem on the issue you raised (I assume it’s you as the username is the same).

I can’t replicate it myself though, it creates the user without any errors on my Windows 10 machine:

PS E:\Temp> New-LocalUser -Name 'testUser1'
cmdlet New-LocalUser at command pipeline position 1
Supply values for the following parameters:
Password: ********

Name      Enabled Description
----      ------- -----------
testUser1 True

PS E:\Temp> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      7.3.6
PSEdition                      Core
GitCommitId                    7.3.6
OS                             Microsoft Windows 10.0.19045
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0
2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.