Change administrator name
#41
Posted 16 May 2005 - 12:49 PM
#42
Posted 16 May 2005 - 12:56 PM
MyDomain, on May 16 2005, 07:35 PM, said:
But the usual stuff, you mean you normal unattended awsners?
#43
Posted 17 May 2005 - 09:49 AM
Anyone any idea of how to get round this?
#44
Posted 17 May 2005 - 09:58 AM
Well i tryed it, but it didn't work.
i added the following in my cmdlines.txt
[COMMANDS] "REGEDIT /S tweaks.reg" "Cleanup.cmd" "renuser.exe "Administrator" "First Second""
I use a space in my name... maybe that is the reason why?
If so, what is the proper syntax?
Because renaming it without the quates around my name with the space it doesn't rename. I tested this when windows was running.
Thanks in advance
#45
Posted 17 May 2005 - 10:08 AM
DEL "%systemdrive%\Documents and Settings\Administrator\Start Menu\Remote Assistance.lnk"
Then you will have to change the Administrator part to the new name of your admin account. This is only likely to be a problem if you are going to install this on many differenet computers with different Administraor names.
#46
Posted 17 May 2005 - 10:24 AM
Since you are using a cmd file first, try adding the command to that instead
:: Renaming Admin account %~dp0renuser.exe Administrator "First Second"
#47
Posted 17 May 2005 - 10:32 AM
#48
Posted 17 May 2005 - 10:43 AM
And @rikgale
You can prefent that in a much easyer way...
set UserStart=%UserProfile%\Menu Start DEL /Q /F "%UserStart%\Windows Update.lnk"
Thanks for the quick reply!
[edit]
This only is usefull if you have the script running on that account ofcourse
[edit2] @Yzöwl's
I think i understand what you mean, add the command to the cleanup.cmd file like you posted it. So that the it will be done at the moment the cmdlines.txt calls on the cleanup.cmd... right?
#50
Posted 17 May 2005 - 10:48 AM
#52
Posted 17 May 2005 - 10:56 AM
renuser.exe Administrator "First Second"
inside my cleanup.cmd
like this:
cmdow @ /HID echo off FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\UXPCD_IDENT.txt SET CDROM=%%i: // Renaming Administrator Account renuser.exe Administrator "First Second" <-------First is your first name, Second you last... ofcrouse EXIT
Were "First Second" ofcourse is my first and last name.
#53
Posted 17 May 2005 - 02:41 PM
Because the name and profile did change, but, the log-in that is filled in is still Administrator.
So we have to change the name that he automaticly fills in...
Is there a way to tell windows which username to use when logging in.
tnx for the help so far
[edit]
Maybe found a way?
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon] "DefaultUserName"="Username"
Have not tryed it yet!
#54
Posted 17 May 2005 - 02:56 PM
#55
Posted 18 May 2005 - 04:42 AM
So to get the Documents and Settings folder plus you login name to change, but still be able to use autologin, you have to use this regtweak, along with the rename settings of Yzöwl...
Thanks!
#56
Posted 18 May 2005 - 05:06 AM
#57
Posted 18 May 2005 - 06:57 AM
rikgale, on May 17 2005, 05:53 PM, said:
Therefore if your running batch, Cleanup.cmd is located in F:\UWXPCD\$OEM$\Cleanup.cmd, and renuser.exe was also in that same location, %~dp0renuser.exe would mean F:\UWXPCD\$OEM$\renuser.exe.
#58
Posted 01 July 2005 - 02:45 PM
Andries, on Apr 26 2004, 02:22 AM, said:
I must change this after every unattended installation (for exclusive applications) but I would like that automatically if it is possible.
<{POST_SNAPBACK}>
What you can do is use the BUILTIN.EXE from OptimumX.com. It works great. I have been using it a while.
Put the builtin.exe in the $OEM$ directory.
install.cmd
@echo off ECHO Modifying Boot Timeout START "" /WAIT "%SystemRoot%\system32\bootcfg.exe" /timeout 4 ECHO Changing the Local Admin account START "" /WAIT "builtin.exe" /newname:WhatEverName
cmdlines.txt
[COMMANDS] ".\INSTALLS.CMD"
This will be run at T-12
Sing
This post has been edited by singk: 01 July 2005 - 02:47 PM
#59
Posted 18 July 2005 - 02:29 PM
renuser is a little harder to find, but it should not be necessary if you have the correct netuser.exe. Netuser can rename the local administrator account to "admin" via the following line:
netuser.exe administrator /name:admin
many thanks to those who posted here and to whomever wrote netuser.exe.
#60
Posted 19 July 2005 - 07:15 AM
http://www.msfn.org/...showtopic=22645
Cheers
**I've fixed the links in my posts for netuser.exe. I'll fix the renuser.exe one as soon as I can up it to my site.
This post has been edited by Jotnar: 19 July 2005 - 07:20 AM
- ← what is can SLDcodecpack1.5.exe switch
- Unattended Windows 2000/XP/2003
- Windows 2003: My Comp, IE, Network Places Dekstop Icons? →



Help


Back to top









