Windows 7 adding user to group “Użytkownicy pulpitu zdalnego” by batch script

Posted on

Windows 7 adding user to group “Użytkownicy pulpitu zdalnego” by batch script – Managing your servers can streamline the performance of your team by allowing them to complete complex tasks faster. Plus, it can enable them to detect problems early on before they get out of hand and compromise your business. As a result, the risk of experiencing operational setbacks is drastically lower.

But the only way to make the most of your server management is to perform it correctly. And to help you do so, this article will share nine tips on improving your server management and fix some problem about windows, net, , , .

When running bat to add user to remote desktop users group from batch script

net localgroup "Użytkownicy pulpitu zdalnego" %user% /add 

got error cause on output got “U┐ytkownicy pulpitu zdalnego” as group name (diffrent encoding?) and that give error that group don’t exist.

Please advise

Solution :

Solved

Save batch file as UTF-8 and change cmd codepage to UTF-8 with

chcp 65001

net.exe does not support names longer than 20 characters.
http://support.microsoft.com/kb/324639

Leave a Reply

Your email address will not be published.