Jump to content

Password in .SIF file


Recommended Posts

During RIS-installation of Windows XP clients we want to use a default password for all computers. Ofcourse this is done like this:

[GuiUnattended]

AdminPassword=mypassword

But its readable for everyone, thats smart enough to locate the file. Tried to use EncryptedPassword-method, but then the password on the client cannot be used?

Any other solution to make sure that no one but the admins to know the administrator password on the client-computer.

Scenario :

Windows 2003 RIS

XP Clients

Link to comment
Share on other sites


windows does not copy winnt.sif file to hdd during/after installation...

it just reads the contents from cd

so if youre worried about someone opening the winnt.sif file from harddisk, dont be...

and if youre worried that someone might open the winnt.sif file from cd and see the password, you cant do anything about that i think...

Link to comment
Share on other sites

In what way did it not work?

I am curious to see why an encrypted password would not work.

But here is another solution.

Leave the password exposed and use your clean up batch file to change the password. Just compile the batch file so it is an .exe file. Harder to read and resets the password

net user administrator {New Password}

just bury the above command in your clean up batch file and compile it.

Link to comment
Share on other sites

sorry if this is impossible in an RIS sever, never dealt with them personally, I mostly deal in unix land when dealing with network stuffs, but can't you just simply set permissions so they can't read, write or execute the file?

Link to comment
Share on other sites

Depends on how he has RIS setup...if he has it so the user can do it, then no...cause the user would need read access to the files. Now if he made it so only a handful of people can use it, then he might be able to deny access to the file for everyone but the RIS users. Again, it's all in how he's running it...but a **** find suggestion none the less!

Link to comment
Share on other sites

Don't forget to encrypt your CDKey too. Here's the batch file I made to do mine.

ENC_CDKEY.CMD

@ECHO OFF
TITLE WindowsXP SP2 WINNT.SIF CDKey Encrypt
COLOR 74
MODE CON COLS=60 LINES=30
CLS
ECHO [Last Edited on 03-29-2005]

ECHO   *** Defining Variables
SET WORKDIR=%CD%
SET CDKEY=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
SET DAYS=60
REM MAX DAYS = 60 - MUST HAVE NON 0 VALUE

ECHO.
ECHO       This will refresh the encrypted CDKey on the
ECHO       WINNT.SIF file used in the setup of Windows.
ECHO.
ECHO       Note: This script must be run under WinXP.
ECHO       (press any key to continue)
PAUSE>NUL

ECHO   *** Reality Check
if not exist "%WORKDIR%\WINNT.SIF" goto ERR1
if not exist "%WORKDIR%\CDROOT\I386\WINNT32.EXE" goto ERR2
ECHO   - passed

ECHO   *** Clearing Log File
IF EXIST "%WINDIR%\WINNT32.LOG" DEL "%WINDIR%\WINNT32.LOG"

ECHO   *** Updating ProductKey entry in
ECHO       %WORKDIR%\WINNT.SIF with Volume License Key
ECHO       The encrypted key will be valid for *%DAYS%* days.
"%WORKDIR%\CDROOT\I386\WINNT32.EXE" /ENCRYPT:"%CDKEY%:%DAYS%" /UNATTEND:"%WORKDIR%\WINNT.SIF"
ECHO.
ECHO   *** Complete!
ECHO     The results of this operation shown below:
TYPE "%WINDIR%\WINNT32.LOG"
PAUSE
goto END

:ERR1
ECHO       !!! ERROR !!!
ECHO       %WORKDIR%\WINNT.SIF was not found.
ECHO       Please make sure this file is in the same
ECHO       directory as this script before executing.
PAUSE
goto END

:ERR2
ECHO       !!! ERROR !!!
ECHO       %WORKDIR%\CDROOT\I386\WINNT32.EXE was not found.
ECHO       Please check your directory structure.
PAUSE
goto END

:END
ECHO   *** End of script

Link to comment
Share on other sites

Correct my users (around 700) can reinstall their computeres themselfes, so they need the read-access. Tested this in the early days of the servers life.

I'm using the Setup Manager, maybe the problem is that it is an "imported" .SIF file, so I'll try make a new one and then the run once solution with a .EXE file that changes the password.

Thanks for your tips - will let you know what works.

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