Seems that this works only with powershell 7.
In 5.1 i get:
Get-PSUIdentity : Could not load file or assembly ‘System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies. The system
cannot find the file specified.
At line:1 char:1
And it seems that the set-PSUidentity isn’t working either:
Set-PSUIdentity: Parameter set cannot be resolved using the specified named parameters. One or more parameters issued cannot be used together or an insufficient number of parameters were provided.
This should be the right command imo
Connect-PSUServer -ComputerName $psuinstance -AppToken $ENV:TestAppToken
Get-PSUIdentity -Name admin | Set-PSUIdentity -Name 'Admin' -Password ($newpass | ConvertTo-SecureString -AsPlainText -Force)
type or paste code here