Jump to content

jb3rry

Member
  • Posts

    28
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Posts posted by jb3rry

  1. prathapml

    Tried your way and and could not find the differences. I have tried doing this in a couple of different places using different methods.

    secedit /configure on the inf files

    rundll32.exe on the inf files

    No matter what I try (Other than manually importing the inf through mmc) These 3 and only these 3 setting are not set.

    Password History

    Password Length

    Minimum Password Age

    Any insight would be great.

  2. Here is the original code that was in my start.cmd. I then later moved to RunnceEX.

    ECHO Adjusting Profiles

    ECHO Please wait...

    start /wait %systemdrive%\install\Admin.vbs

    In the RunOnceEx I was have problems every now and then where the VBS script was not being associated with Wscript and would not run.

    Someone on this board recommeded using Trying the code below and it has worked every since. This way there is not an association problem.

    REG ADD %KEY%\215 /VE /D "Massaging Local Admin" /f

    REG ADD %KEY%\220 /V 1 /D "WScript.exe %CDROM%\Software\vbs\admin.vbs" /f

    Hope this helps

  3. This has come up in numerous post....

    Below is the code I Call from RunOnceEx....

    Afterwards you do need to reboot or else the administrator group will still show "Administrator" After reboot the administrator group will show the new name for administrator.

    RunOnceEx

    REG ADD %KEY%\215 /VE /D "Renaming Local Admin" /f

    REG ADD %KEY%\220 /V 1 /D Wscript.exe "%CDROM%\Software\vbs\admin.vbs" /f

    ------------------------------------------------------------------------

    'vbscript

    On Error Resume Next

    strComputer = "."

    strCompPass = "Password12"

    strRemoveHA = "HelpAssistant"

    strRemoveSup = "SUPPORT_388945a0"

    strRemoveAdmin = "Administrator"

    Set WshShell = WScript.CreateObject("WScript.Shell")

    Set WshNetwork = WScript.CreateObject("WScript.Network")

    Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & "." & "\root\default:StdRegProv")

    strComputer = WshNetwork.ComputerName

    'Renaming Admin

    Set oMachine = GetObject("WinNT://" & strComputer)

    Set oInfoUser = GetObject("WinNT://" & strComputer & "/Administrator,user")

    set oUser = oMachine.MoveHere(oInfoUser.ADsPath,"NEWNAME")

    'Reseting Admin Password

    Set objUser = GetObject("WinNT://" & strComputer & "/NEWNAME, user")

    objUser.SetPassword "Password12"

    objUser.SetInfo

    'Renaming Guest

    Set oMachine = GetObject("WinNT://" & strComputer)

    Set oInfoUser = GetObject("WinNT://" & strComputer & "/Guest,user")

    set oUser = oMachine.MoveHere(oInfoUser.ADsPath, "NoGuest")

    'Reseting Guest Password

    Set objUser = GetObject("WinNT://" & strComputer & "/NoAccess, user")

    objUser.SetPassword "&*UIer78aB#4"

    objUser.SetInfo

    'Disabling Guest Account

    Set objUser = GetObject("WinNT://" & strComputer & "/NoAccess")

    objUser.AccountDisabled = True

    objUser.SetInfo

    'Deleting Help Assistant Account, Support Account

    Set objComputer = GetObject("WinNT://" & strComputer & "")

    objComputer.Delete "user", strRemoveHA

    objComputer.Delete "user", strRemoveSup

  4. Below is the code I Call from RunOnceEx....

    Afterwards you do need to reboot or else the administrator group will still show "Administrator" After reboot the administrator group will show the new name for administrator.

    RunOnceEx

    REG ADD %KEY%\215 /VE /D "Renaming Local Admin" /f

    REG ADD %KEY%\220 /V 1 /D Wscript.exe "%CDROM%\Software\vbs\admin.vbs" /f

    ------------------------------------------------------------------------

    'vbscript

    On Error Resume Next

    strComputer = "."

    strCompPass = "Password12"

    strRemoveHA = "HelpAssistant"

    strRemoveSup = "SUPPORT_388945a0"

    strRemoveAdmin = "Administrator"

    Set WshShell = WScript.CreateObject("WScript.Shell")

    Set WshNetwork = WScript.CreateObject("WScript.Network")

    Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & "." & "\root\default:StdRegProv")

    strComputer = WshNetwork.ComputerName

    'Renaming Admin

    Set oMachine = GetObject("WinNT://" & strComputer)

    Set oInfoUser = GetObject("WinNT://" & strComputer & "/Administrator,user")

    set oUser = oMachine.MoveHere(oInfoUser.ADsPath,"NEWNAME")

    'Reseting Admin Password

    Set objUser = GetObject("WinNT://" & strComputer & "/NEWNAME, user")

    objUser.SetPassword "Password12"

    objUser.SetInfo

    'Renaming Guest

    Set oMachine = GetObject("WinNT://" & strComputer)

    Set oInfoUser = GetObject("WinNT://" & strComputer & "/Guest,user")

    set oUser = oMachine.MoveHere(oInfoUser.ADsPath, "NoGuest")

    'Reseting Guest Password

    Set objUser = GetObject("WinNT://" & strComputer & "/NoGuest, user")

    objUser.SetPassword "&*UIer78aB#4"

    objUser.SetInfo

    'Disabling Guest Account

    Set objUser = GetObject("WinNT://" & strComputer & "/NoGuest")

    objUser.AccountDisabled = True

    objUser.SetInfo

    'Deleting Help Assistant Account, Support Account

    Set objComputer = GetObject("WinNT://" & strComputer & "")

    objComputer.Delete "user", strRemoveHA

    objComputer.Delete "user", strRemoveSup

  5. I have created a couple of unattended installs using NLite & also CDimage Pro...

    every so often during the install I will get and Error during runonceEx asking about what program to choose to run the VBS script.

    Has anyone else seen this? If so what files are it tied to that may have been deleted during the Source reduction.

  6. Just wanted to say thanks to MSFN.....I am new to this board and it is filled with a plethra of information. I also want to thank those that contribute and hope I will one day soon.

    I know its corny but I am glade we have a free site with the quality of expertise at our finger tips.

  7. Is there a preferred or recommended way to set up and unattended XP cd for use with RIS? for example INF vs RunonceEx? My current CD is based off RunOnce.

    I am also looking at being able to tie in an unattended install of Office from a network drive.

    Any opinions or recommendations would be appreciated.

×
×
  • Create New...