Jump to content

Error 21?


nivek7

Recommended Posts

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:

; SHORT DESCRIPTION OF KEYS
;
; 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.

; NEW IN VERSION 2.1
; 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!

[Environment]

; 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

; KEYWORD DESCRIPTION
; 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.

[settings]
; 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
skipsoftware=1
skiprestart=1
nocancel=1
autologon=1
;autoexit=1
norestartchange=1

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

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

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

; SHORT DESCRIPTION OF SECTION USERS
;
; 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_ENCRYPTED_TEXT_PASSWORD_ALLOWED 0x0080
; #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.
;
; PREDEFINED VOLATILE ENVIRONMENT VARIABLES
; %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)

; PREDEFINED SHELL PATHS ARE FOLLOWING
; 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

[Users]

Default=1

User.1=New User
Group.1=1
Status.1=0x10028
Status.1=0x20000
;Script.1=logon.cmd
Comment.1=Your Newly Created User Account
;home.1=c:\%ThisUser%
;profile.1=%ThisHome%
;roamingprofile.1=%ThisHome%\roaming
; My Video.1=c:\%ThisUser%\Videos

;Domain.2=axp-vpc
;User.2=New Domain User
;Password.2=abc_12345_ssanz_48739722367475
;Group.2=1
;Status.2=0x0020
;Comment.2=This is a new domain user which will be created at specified domain

; Disable Administrator account
user.0=Administrator
status.0=0x002
Group.0=1
crypted.0=32

;user.2=cde
;password.2=4A3178034B307F044A314A31EA
;crypted.2=12


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

; KEYWORD DESCRIPTION
; 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
[Users.Operation]
; delete.0=ASPNET
; disable.0=New User@axp
; rename.0=new user@axp, new

thanks

Link to comment
Share on other sites


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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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...

Link to comment
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.

Benjamin

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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.

thanks

Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...