Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 

Sign in to follow this  

Error 21?

Recommended Posts

nivek7    0

Sorry if this has been posted before but...

Error 21: Shell folder environment strings are disabled. Can't load user profile. (Windows 2000: Enable SeTcbPrivilege privilege)

this comes in the window where i can click "finish"

here is my install.ini:

; description.x  = Description of the installable software
; command.x  = command that should be executed to install the software
; hidden.x  = if 1, this sub command will not be showed in list view control
; selected.x  = if software will be installed by default (checked in list view control)
; file.x.y  = file that should be checked against specified version (greater/less/exists comparison)
; key.x.y  = registry key that should be checked against specified data (greater/less comparison)
; ... whereby x is a continuous number of sub commands (command.x) and y is a continuous number
; of unique (enumeration)
; Default keys that will be used if not specified:
; selected = 1 (Note this is the selection key for entire section)
; hidden = 0 (section specific invisibility)
; collapsed = 0
; hidden.x = 0
; description.x = <missing description>
; selected.x = 0
; key.comparison.x = and
; file.comparison.x = and
; collapsed.x = 0
; Strings in command.x, key.x.y and file.x.y will be expanded if necessary.

; There can be theoretically up to 65535 enrties per subtree
; Note: One key "key.a.b.c.d.e.f.g.h...=" must not exceed 255 characters entirely
; To create a sub tree just append sublevel indizes to commands like:
; command.0="command 1"
; command.1="command 2"
; command.0.0="sub command 0.0"
; command.0.0.0="sub command 0.0.0"
; command.0.0.1="sub command 0.0.1"
; ... Will create following sub tree:
; "command 1"
;     "sub command 0.0"
;         "sub command 0.0.0"
;         "sub command 0.0.1"
; "command 2"
; Remark: If you hidden a tree, also each of it's subtrees will be hidden also if not specified explicitly
; Root Tree (section name) will never be hidden!


; DefaultHome will set the home directory that will used as default for each new user
; if none is specified by the user
; MozillaFireFoxVersion=HKLM:Software\Mozilla\Mozilla Firefox\CurrentVersion
; MozillaFireFoxPath=HKLM:Software\Mozilla\Mozilla Firefox\%MozillaFireFoxVersion%\Main\Install Directory

DefaultProfilesDir = HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ProfilesDirectory

; Favorites=%systemroot%\My Favorites

; dimension.update=1 will write WIHU windows size to ini file. Next time WIHU is started, it will adjust
; it's size to corresponding dimension.width and dimension.height parameters.

; dimension.update=1
; dimension.width=800
; dimension.height=500
; PageHeaderTitle.x and PageHeaderSubTitle.x sets the header title or subtitle of
; specified page. First page is page 0.
; PageHeaderTitle.0=Title0
; PageHeaderSubTitle.0=SubTitle0
; PageHeaderTitle.1=Title1
; PageHeaderSubTitle.1=SubTitle1
; computer=xyz
; skipsettings=1

;[Fully hidden commands, should'nt be displayed ]
;hidden = 1

;command.0=cmd.exe /c @echo Hidden 0
;description.0=(Should not be displayed)

;command.0.0=cmd.exe /c @echo Hidden 0.0
;description.0.0=(Should not be displayed)

; User.x = Will create a new user with specified name and set Password.x
; Group.x can be either 0, 1 or 2. 1 means that new user will be added to "Administrators" Group,
; 0 means "Users" group, 2 will cause WIHU not to move the user to any group.
; Status.x set account status. For valid numbers please look at NetUserAdd API in USER_INFO_1
; struct at "usri1_flags". Description can be found on
; http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/netmgmt/user_info_1_str.asp
; Here is a list of values.
; #define UF_SCRIPT                          0x0001
; #define UF_ACCOUNTDISABLE                  0x0002
; #define UF_HOMEDIR_REQUIRED                0x0008
; #define UF_LOCKOUT                         0x0010
; #define UF_PASSWD_NOTREQD                  0x0020
; #define UF_PASSWD_CANT_CHANGE              0x0040
; #define UF_DONT_EXPIRE_PASSWD           0x10000
; #define UF_MNS_LOGON_ACCOUNT            0x20000
; #define UF_SMARTCARD_REQUIRED           0x40000
; #define UF_TRUSTED_FOR_DELEGATION       0x80000
; #define UF_NOT_DELEGATED               0x100000
; #define UF_USE_DES_KEY_ONLY            0x200000
; #define UF_DONT_REQUIRE_PREAUTH        0x400000
; #define UF_PASSWORD_EXPIRED            0x800000
; ...
; Profile.x specifies the users profile path
; RoamingProfile.x specifies the roaming profile path
; Home.x specifies the path of the home directory for the new user
; Comment.x contains a comment to associate with the user account
; Script.x specifies the path for the user's logon script file.
;  The script file can be a .CMD file, an .EXE file, or a .BAT file.
; Domain.x Domain/Computer where to create the user. If none is specified
;  local system will be used.
; Default = x specifies the index of the user which should be used as default user
;  i.e. this which will be used for software installation.
; Crypted.x Do not change this, it will be generated automatically by calling "WIHU /EncryptIni"
;  and will be removed by "WIHU /DecryptIni"
;  If you remoce Crypted.x key, you have to adjust corresponding password.x key
;  otherwise password.x will not be decrypted correctly.
; If some of the specified users already exists, user data will be updated with this
; new one specified here.
; %ThisUser% Will be replaced by the corresponding user name
; %ThisHome% Will be replaced by the corresponding user home path (ONLY if specified here)
; %ThisProfile% Will be replaced by the corresponding user profile path (ONLY if specified here)

; Note: If you set one of this in here, it will be also set for newly created user
; Administrative Tools
; Cache
; CD Burning
; Cookies
; Desktop
; Favorites
; Fonts
; History
; Local AppData
; Local Settings
; My Music
; My Pictures
; My Video
; NetHood
; Personal
; PrintHood
; Programs
; Recent
; SendTo
; Start Menu
; Startup
; Templates

; My Video.x=%systemdrive%\Videos



User.1=New User
Comment.1=Your Newly Created User Account
; My Video.1=c:\%ThisUser%\Videos

;User.2=New Domain User
;Comment.2=This is a new domain user which will be created at specified domain

; Disable Administrator account


UserTestEnvVar1=Testdata 1 from users.ini [environment.0] section
UserTestEnvVar2=Testdata 2 from users.ini [environment.0] section

; delete.x=UserName@Domain, (whereby Domain is optional) will delete specified existing windows user account
; disable.x/enable.x=UserName@Domain, (whereby Domain is optional) will disable/enable specified existing windows user account
; Rename.x=FromUser@Domain, ToUser renames a user
; delete.0=ASPNET
; disable.0=New User@axp
; rename.0=new user@axp, new


Share this post

Link to post
Share on other sites

booster    0

Hi there..

At which point do you run WIHU ?

RunOnceEx.cmd ?

cmdlines.txt ?

I is not possible to run it directly from cmdlines.txt.

Programs will install fine. (mostly) but network operations will not work as the network is not startet at that point.

Share this post

Link to post
Share on other sites
nivek7    0

I run it from a cmd file which is called from cmdlines. I am also Windows XP...

Hmm... thats strange, i don't get the error when i run it "normally" but i get the error when i call it from the cmd file which is called by cmdlines... so i have to remake iso and test it again in vmware to log it... ill be about an hour.. hehe

Share this post

Link to post
Share on other sites

At this stage WIHU can't create and logon newly created users because system service "secondary logon" isn't started at this time.

Please use /SkipSettings switch here and use software installation only.


Share this post

Link to post
Share on other sites
nivek7    0

oh, i use runonceex for programs but i want to use wihu to make my users since i don't want a pre-named username and i want the person to make their own user. also i want the runonceex to install all the programs for that user...

Share this post

Link to post
Share on other sites
booster    0

You have to call WIHU from RunOnceEx.cmd

This is how I do:

REG ADD %KEY%\010 /VE /D "Calling WIHU" /f
REG ADD %KEY%\055 /V 1 /D "%CDROM%\$OEM$\Setups\wihu.exe /LOG=c:\wihu.log" /f

Share this post

Link to post
Share on other sites

I correct my self: Creating users at this stage is possible but logon isn't possible, i.e. settings user shell folder and user environment variables and also installing software as this new created user isn't possible.

Btw. I use [GuiRunOnce] section of winnt.sif to start WIHU.


Share this post

Link to post
Share on other sites
nivek7    0

If i call it from runonceex, would all the applications install under the new user? or would i have to do a restart first?

edit: oh and is there a command that MAKES you restart for sure? so i can use the norestartchange and that command...

Share this post

Link to post
Share on other sites

I don't know when RunOnceEx.cmd is called, but in case it is the same as GuiRunOnce there is no restriction calling WIHU.

And yes, with /NoRestartChange you can prevent users from disabling restart.

WIHU restarts the system by default.


Share this post

Link to post
Share on other sites
nivek7    0

one more thing... if i don't create the "Administrator" account that is called administrator in wihu, will windows create it anyways with the settings in winnt.sif?

Share this post

Link to post
Share on other sites
nivek7    0

ok, i still have a problem. all my programs install fine except alcohol 120%. it says the system administrator has set policies to disable this installation (it was something like that) i had no problems when i was using the .cmd to make pre-named users.


Share this post

Link to post
Share on other sites
booster    0

If you are installing from the new user you created, make sure it has admin rights or else Alcohol cannot install some of it's drivers.

May go for other programs too.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.