Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Error 21?

- - - - -

  • Please log in to reply
15 replies to this topic

#1
nivek7

nivek7

    Take that!

  • Member
  • 40 posts
  • Joined 08-August 04
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


How to remove advertisement from MSFN

#2
booster

booster

    Junior

  • Member
  • Pip
  • 63 posts
  • Joined 02-January 04
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.

#3
BenjaminKalytta

BenjaminKalytta

    Developer

  • Member
  • PipPipPipPip
  • 609 posts
  • Joined 08-June 04
I presume here you are using windows 2000. if yes, there are problems when using WIHu in Windows 2000. if not please also send me your entire log file (/log=logile.log)

Benjamin

#4
nivek7

nivek7

    Take that!

  • Member
  • 40 posts
  • Joined 08-August 04
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

#5
BenjaminKalytta

BenjaminKalytta

    Developer

  • Member
  • PipPipPipPip
  • 609 posts
  • Joined 08-June 04
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.

Benjamin

#6
nivek7

nivek7

    Take that!

  • Member
  • 40 posts
  • Joined 08-August 04
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...

#7
booster

booster

    Junior

  • Member
  • Pip
  • 63 posts
  • Joined 02-January 04
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


#8
BenjaminKalytta

BenjaminKalytta

    Developer

  • Member
  • PipPipPipPip
  • 609 posts
  • Joined 08-June 04
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

#9
nivek7

nivek7

    Take that!

  • Member
  • 40 posts
  • Joined 08-August 04
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...

#10
BenjaminKalytta

BenjaminKalytta

    Developer

  • Member
  • PipPipPipPip
  • 609 posts
  • Joined 08-June 04
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.

Benjamin

#11
nivek7

nivek7

    Take that!

  • Member
  • 40 posts
  • Joined 08-August 04
ok, thanks for your help. time for me to test it!

#12
nivek7

nivek7

    Take that!

  • Member
  • 40 posts
  • Joined 08-August 04
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?

#13
BenjaminKalytta

BenjaminKalytta

    Developer

  • Member
  • PipPipPipPip
  • 609 posts
  • Joined 08-June 04
WIHU will not prevent Windows from creating any user account. You may use WIHU only to modify or delete some existing Windows accounts.

Benjamin

#14
nivek7

nivek7

    Take that!

  • Member
  • 40 posts
  • Joined 08-August 04
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

#15
booster

booster

    Junior

  • Member
  • Pip
  • 63 posts
  • Joined 02-January 04
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.

#16
nivek7

nivek7

    Take that!

  • Member
  • 40 posts
  • Joined 08-August 04
I figured it out... it was a thing in the registry i had to delete and then it worked manually... but now i have to figure out how it got into the registry. btw, it was an incomplete msi installation thingy entry.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users