Is there a way to add (not register but add like local user account) ONLINE accounts on Win10 and specify their home directory? set it as admin?
I have found plenty of how-to regarding creating local admins but unfortunately none regarding ONLINE accounts. All I want to is to have same path for home directories across all my PCs.
Is there is equivalent for:
user username password /add
but for online accounts?
In theory:
PS> New-LocalUser -Name "MicrosoftAccount\SomeAccou[email protected]" -Description "Microsoft Account"
According to https://blog.netwrix.com/2018/09/18/how-to-add-delete-and-change-local-users-and-groups-with-powershell/
But...
However, there is still a bug that returns this message when running the command: “New-LocalUser: Cannot validate argument on parameter ‘Name’. The character length of the 36 argument is too long. Shorten the character length of the argument so it is fewer than or equal to “20” characters, and then try the command again.” As a result, the easiest way to get around this problem is to create a local account and then use the Settings app to link it with a Microsoft account.
(https://pureinfotech.com/create-new-user-account-powershell-windows-10/)