Overclock.net banner
1 - 10 of 10 Posts

·
Registered
Joined
·
130 Posts
Discussion Starter · #1 ·
im making a batch file that creates an account called ola and adds it too teh administrator group. the only problem is that im using a swedish version of xp and admin group is administratörer, ö isnt allowed in dos so can i create a new group without ö, in dos, that has admin powers??

code

Net user ola qwerty12 /add
net localgroup /add administratörer ola
 

·
Registered
Joined
·
130 Posts
Discussion Starter · #3 ·
need it in a program because it'll take to much time to do it manually on a lot of comps...
 

·
Registered
Joined
·
130 Posts
Discussion Starter · #4 ·
arent there any batch gurus on this forum??
 

·
Registered
Joined
·
130 Posts
Discussion Starter · #6 ·
well how do i do that in a batch file?
 

·
Registered
Joined
·
404 Posts
I think this might assist you. Make your code like this:

@ECHO OFF
MODE CON: CP SELECT=437
Net user ola qwerty12 /add
net localgroup /add administratörer ola

You can substitute MODE CON: CP SELECT=437 with GRAFTABL 437
(same thing)

What that will do is change the DOS Code Page to United States. When I tested this it worked for me and I hope it's your solution.

Xaine99

(Side note, just in case: ALT+NumPad 148 = ö if you need to type it within a DOS Console instead of pasting it from the CharMap.)
 

·
Registered
Joined
·
130 Posts
Discussion Starter · #8 ·
thx for the reply, but it doesnt work.
any other ideas are much appreciated!

the problem is that dos cant read the Ö in my batch file...
are there any way to create a new admin group and give it admin powers in dos/batch?
 

·
Registered
Joined
·
130 Posts
Discussion Starter · #9 ·
anyone??!
 

·
Registered
Joined
·
130 Posts
Discussion Starter · #10 ·
My god!
doesnt anyone know some sort of "fix" for this problem????
 
1 - 10 of 10 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top