Jump to content

reganetal

Member
  • Posts

    8
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Posts posted by reganetal

  1. Yzowl,

    This is great! I read through the script and there is one thing I just dont understand

    CALL SET V=%%PASS:~0,%CNT2%%%

    It seems like this part of the code counts how many characters are in %pass%. Am I correct? But I am really unsure how it does this.

    ECHO/ NOTE&ECHO/ ¯¯¯¯&ECHO/&ECHO/ The First User added will be set as your Default User&ECHO/&ECHO/ It will have Administrator Account privileges&ECHO/

    Also, I noticed you wrote a lot of @echo/ ... is the / some kind of carriage return? And how do you get the upper ____ to make >>> characters? When I type that or paste it into my cmd window I get an underline.

    Lastly, maybe I misunderstand the default user part. When I run this script on my computer to test it out, it changes my settings so that "users must enter a user name and password to use this computer" is unchecked. Thats not what I want to do. I want each user to be required to login under their own name. I am using win2k right now so this may work out different on XP I am unsure.

    Thanks for all your help.

    Regan

  2. I do not want to add users via NET USER or OOBEINFO.INI methods. I want to add them later via a batch file.

    I am getting really frustrated. :realmad: I have been working on this batch file for hours and I can't seem to make it right. It seems like everything I do creates another error. I am going in circles. grrrr

    @Echo Off
    Echo.
    Title Add New Users
    Echo.
    set path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion"
    set /p addusers=Add New Users? Y/n:
    if "%addusers%"=="y" (goto proceed)
    Echo.
    Echo Note: The first added user will be set as default user
    set count=1
    :Proceed
    Echo.
    :Name
    set /p name=User Name?
    if "%name%"=="" Echo. & Echo Invalid Entry & Echo. & goto Name
    Echo.
    :Usertype
    Echo User Groups:
    Echo.
    Echo 1. Administrators: Have complete and unrestricted access to the computer/domain.
    Echo 2. Power Users: Possess most administrative powers with some restrictions.
    Echo 3. Users: Prevented from making accidental or intentional system-wide changes.
    Echo.
    set /p choice=User Group?
    if "%choice%"=="" Echo. & Echo Invalid Entry & Echo. & goto usertype
    if %choice% gtr 3 Echo. & Echo Invalid entry & Echo. & goto usertype
    if %choice%==1 set usertype=administrators
    if %choice%==2 set usertype=power users
    if %choice%==3 set usertype=users
    Echo.
    :Password
    set /p pass=Password?
    if "%pass%"=="" Echo. & Echo Invalid Entry & Echo. & goto password
    Echo.
    net user %name% %pass% /add
    net localgroup %usertype% %name% /add
    Echo.
    if "%count%"=="1" CALL Defaultautologon.cmd
    set /A count=%count%+1
    set /p addmore=Add More Users? Y/n:
    if "%addmore%"=="y" GOTO Proceed
    Echo.
    Echo Finished Adding Users
    net accounts /maxpwage:unlimited
    PING 1.1.1.1 -n 1 -w 3000 >NUL

    useraccounts.cmd

    echo REG ADD %path% /v DefaultUserName /d %name% else 
    echo REG ADD %path% /v DefaultPassword /d %pass% else

    Echo.

    set /p autologon=Allow %name% to Autologon? Y/n:
    if "%autologon%"=="" Echo. & Echo Invalid Entry goto setdefault
    if %autologon%==y Echo REG ADD %path% /v AutoAdminLogon /d 1
    GOTO :EOF

    Defaultautologon.cmd

    Thanks Regan

  3. I was wondering how do I add registry tweaks in a win2k unattended install.

    I tried putting "Regedit /s regtweaks.reg" in my cmdlines.txt file and that doesnt work. Can I call up another .cmd file and put something like this in it?

    cmdow @ /HID
    @Echo Off

    SET PATH=%SystemDrive%\reg.exe

    %Path% ADD regtweaks.reg /s /f

    EXIT

    Or do I need to call regedit.exe? I have a bunch of files I want to add.

    Thanks in advance

  4. Hi all,

    I am hoping someone could help me. I am attempting to make a win2k unattended cd with applications and I cant seem to get it to work. I followed through the tutorial and I can get my winnt.sif file to work. Although I have a few minor problems. (areacode=602) doesnt work.

    [Unattended]
       UnattendMode=DefaultHide
       OemSkipEula=Yes
       TargetPath=\WINNT
       OemPreinstall=Yes
       OemFilesPath=..\$OEM$

    [Data]
       AutoPartition=1
       MsDosInitiated="0"
       UnattendedInstall="Yes"

    [GuiUnattended]
       AdminPassword=password
       AutoLogon=Yes
       AutoLogonCount=3
       OEMSkipRegional=1
       TimeZone=15
       OemSkipWelcome=1
       AutoLogonAccountCreation=Yes

    [UserData]
       ProductKey=xxxx-xxxx-xxxx-xxxx
       OrgName=Computer
       ComputerName=*

    [Display]
       BitsPerPel=24
       Xresolution=1024
       YResolution=768
       Vrefresh=60

    [TapiLocation]
       CountryCode=1
       AreaCode= "602"

    [Identification]
       JoinWorkgroup=HOME

    [Networking]
       InstallDefaultComponents=No

    [NetAdapters]
       Adapter1=params.Adapter1

    [params.Adapter1]
       INFID=*

    [NetClients]
       MS_MSClient=params.MS_MSClient

    [NetServices]
       MS_SERVER=params.MS_SERVER

    [NetProtocols]
       MS_TCPIP=params.MS_TCPIP
       MS_NetBEUI=params.MS_NetBEUI

    [params.MS_TCPIP]
       DNS=Yes
       UseDomainNameDevolution=No
       EnableLMHosts=Yes
       AdapterSections=params.MS_TCPIP.Adapter1

    [params.MS_TCPIP.Adapter1]
       SpecificTo=Adapter1
       DHCP=Yes
       WINS=No
       NetBIOSOptions=0

    [Components]
       cdplayer=off
       accessopt=off
       rec=off

    [COMMANDS]

    ".\RunOnceEx.cmd"

    ;".\cleanup.cmd"

    "Regedit /s regtweaks.reg"
    "Regedit /s domainmaps.reg"
    "Regedit /s zonemaps.reg"
    "Regedit /s sguide_tweak_2k.reg"

    cmdow @ /HID
    @Echo Off

    SET PP=%SystemDrive%\Install\

    SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

    REG ADD %KEY% /V TITLE /D "Unattended Program Installation" /f

    REG ADD %KEY%\000 /VE /D "Adobe Reader 7.0" /f
    REG ADD %KEY%\000 /V 1 /D "%PP%AdbeRdr70_enu_full.exe  -q /s /v/qn" /f

    REG ADD %KEY%\001 /VE /D "AVG Free 7.0" /f
    REG ADD %KEY%\001 /V 1 /D "%PP%avg70free_323a539.exe /HIDE /Update_AVG" /f

    REG ADD %KEY%\002 /VE /D "Ad-Aware" /f
    REG ADD %KEY%\002 /V 1 /D "%PP%aawsepersonal.exe /silent" /f

    REG ADD %KEY%\003 /VE /D "SpyBot Search & Destroy" /f
    REG ADD %KEY%\003 /V 1 /D "%PP%spybotsd12.exe /silent /taskbarhide /autoupdate /autocheck /autofix /autoimmunize /autoclose" /f

    REG ADD %KEY%\004 /VE /D "Win Rar" /f
    REG ADD %KEY%\004 /V 1 /D "%PP%wrar341.exe /s" /f

    REG ADD %KEY%\005 /VE /D "Winamp 5.09" /f
    REG ADD %KEY%\005 /V 1 /D "%PP%Winamp5093.msi xfull=1 /qb" /f

    REG ADD %KEY%\006 /VE /D "IrfanView" /f
    REG ADD %KEY%\006 /V 1 /D "%PP%iview397.exe silent /desktop=1 /group=1 /allusers=1 /assoc=1" /f

    REG ADD %KEY%\007 /VE /D "IrfanView Plugins" /f
    REG ADD %KEY%\007 /V 1 /D "%PP%irfanview_plugins_397.exe /silent" /f

    REG ADD %KEY%\008 /VE /D "IE PowerTweaks" /f
    REG ADD %KEY%\008 /V 1 /D "%PP%pwrtwks.exe /silent" /f

    EXIT

    My structure looks like this

    cd
     |i386
     |$OEM$
        cmdlines.txt
        runonceex.cmd
        various reg files
        cleanup.cmd
        |$$
           |System32
             |cmdow.exe
        |$1
           |Install
             |Applications
                |Various application files as above

    If anyone can see what in the world I am doing wrong please let me know. Windows will install but I do not get any of the applications loaded or registry fixes.

    Take care

    Louree

×
×
  • Create New...