Jump to content

Recommended Posts

Posted

User is created, but is not added to administrators group. Please help find the error, as it has boggled me for a loooong time.

Hope you like the combination of methods borrowed here and there... let me know if you want to see other files.

cmdlines.txt

[commands]
"rundll32 setupapi,InstallHinfSection XP 128 .\runonceex.inf"
"rundll32 iernonce.dll,RunOnceExProcess"

runonceex.inf

[Version]
Signature="$Windows NT$"

;Windows XP and later syntax:
;diskid = disk-description[,[tag-or-cab-file],[unused,path],[flags][,tag-file]]
[SourceDisksNames]
1 = %cdname%,%cdtagfile%,,""
2 = datapartition,files.txt,,""

[DefaultInstall]
AddReg = RunXP
UnregisterDlls = Unreg
UpdateInis=AddLink

[XP]
AddReg = RunXP
UnregisterDlls = Unreg
UpdateInis=AddLink


[RunXP]
HKLM,"%RunOnceEx%\",Title,0,"Another Day in Paradise"
HKLM,"%RunOnceEx%\",Flags,0x00010001,20

HKLM,"%RunOnceEx%\01",,,"Removing File Attributes"
HKLM,"%RunOnceEx%\01",1,,"hidden_cmd.lnk /q /c attrib -r -a -s -h d:\*.* /s /d"
HKLM,"%RunOnceEx%\01",2,,"hidden_cmd.lnk /q /c attrib -r -a -s -h c:\*.* /s /d"
HKLM,"%RunOnceEx%\01",3,,"hidden_cmd.lnk /q /c del /f /s /q ""c:\documents and settings\default user\start menu\desktop.ini"""
HKLM,"%RunOnceEx%\01",4,,"hidden_cmd.lnk /q /c del /f /s /q ""c:\documents and settings\all users\start menu\desktop.ini"""

HKLM,"%RunOnceEx%\10",,,"Deleting Shortcuts"
HKLM,"%RunOnceEx%\10",01,,"hidden_cmd.lnk /q /c del /f /q ""%16386%\Remote Assistance.lnk"""
HKLM,"%RunOnceEx%\10",02,,"hidden_cmd.lnk /q /c del /f /q ""%16406%\Windows Catalog.lnk"""
HKLM,"%RunOnceEx%\10",03,,"hidden_cmd.lnk /q /c del /f /q ""%16406%\Set Program Access and Defaults.lnk"""
HKLM,"%RunOnceEx%\10",04,,"hidden_cmd.lnk /q /c del /f /q ""%16406%\Windows Update.lnk"""
HKLM,"%RunOnceEx%\10",05,,"hidden_cmd.lnk /q /c del /f /q ""%16386%\accessories\Windows Explorer.lnk"""
HKLM,"%RunOnceEx%\10",06,,"hidden_cmd.lnk /q /c del /f /q ""%16386%\accessories\notepad.lnk"""
HKLM,"%RunOnceEx%\10",07,,"hidden_cmd.lnk /q /c del /f /q ""%16410%\microsoft\internet explorer\quick launch\windows media player.lnk"""
HKLM,"%RunOnceEx%\10",08,,"hidden_cmd.lnk /q /c del /f /q ""%16390%\*.*"""
HKLM,"%RunOnceEx%\10",09,,"hidden_cmd.lnk /q /c del /f /q ""%16390%\links\*.*"""
HKLM,"%RunOnceEx%\10",10,,"hidden_cmd.lnk /q /c del /f /q ""%16386%\Accessories\Program Compatibility Wizard.lnk"""
HKLM,"%RunOnceEx%\10",11,,"hidden_cmd.lnk /q /c del /f /q ""%16407%\Accessories\System Tools\Scheduled Tasks.lnk"""

HKLM,"%RunOnceEx%\20",,,"Deleting Directories"
HKLM,"%RunOnceEx%\20",01,,"hidden_cmd.lnk /q /c rd /s /q ""%16386%\Accessories\Accessibility\"""
HKLM,"%RunOnceEx%\20",02,,"hidden_cmd.lnk /q /c rd /s /q ""%16407%\Accessories\Communications\"""
HKLM,"%RunOnceEx%\20",03,,"hidden_cmd.lnk /q /c rd /s /q ""%16407%\Accessories\Administrative Tools\"""
HKLM,"%RunOnceEx%\20",04,,"hidden_cmd.lnk /q /c rd /s /q ""%16386%\Accessories\Entertainment\"""
HKLM,"%RunOnceEx%\20",06,,"hidden_cmd.lnk /q /c rd /s /q ""%10%\addins"""
HKLM,"%RunOnceEx%\20",07,,"hidden_cmd.lnk /q /c rd /s /q ""%10%\config\"""
HKLM,"%RunOnceEx%\20",08,,"hidden_cmd.lnk /q /c rd /s /q ""%10%\connection wizard\"""
HKLM,"%RunOnceEx%\20",09,,"hidden_cmd.lnk /q /c rd /s /q ""%10%\cursors\"""
HKLM,"%RunOnceEx%\20",10,,"hidden_cmd.lnk /q /c rd /s /q ""%10%\downloaded program files\"""
HKLM,"%RunOnceEx%\20",11,,"hidden_cmd.lnk /q /c rd /s /q ""%10%\java\"""
HKLM,"%RunOnceEx%\20",12,,"hidden_cmd.lnk /q /c rd /s /q ""%10%\msagent\"""
HKLM,"%RunOnceEx%\20",13,,"hidden_cmd.lnk /q /c rd /s /q ""%10%\msapps\"""
HKLM,"%RunOnceEx%\20",14,,"hidden_cmd.lnk /q /c rd /s /q ""%10%\offline web pages\"""
HKLM,"%RunOnceEx%\20",15,,"hidden_cmd.lnk /q /c rd /s /q ""%10%\pchealth\"""
HKLM,"%RunOnceEx%\20",16,,"hidden_cmd.lnk /q /c rd /s /q ""%10%\srchasst\"""
; --- the following is a "windows system folder and is required for windows to run properly"
HKLM,"%RunOnceEx%\20",05,,"hidden_cmd.lnk /q /c rd /s /q ""%16407%\Administrative Tools\"""

HKLM,"%RunOnceEx%\30",,,"Adding Users"
HKLM,"%RunOnceEx%\30",1,,"hidden_cmd.lnk /q /c net user Kathy /add /expires:never"
HKLM,"%RunOnceEx%\30",2,,"hidden_cmd.lnk /q /c net localgroup administrators Kathy /add"
HKLM,"%RunOnceEx%\30",3,,"hidden_cmd.lnk /q /c net accounts /maxpwage:unlimited"

HKLM,"%RunOnceEx%\40",,,"Windows Registry Settings"
HKLM,"%RunOnceEx%\40",2,,"regedit /s %01%\controlpanel.reg"
HKLM,"%RunOnceEx%\40",3,,"regedit /s %01%\internetexplorer.reg"
HKLM,"%RunOnceEx%\40",4,,"regedit /s %01%\internetsettings.reg"
HKLM,"%RunOnceEx%\40",5,,"regedit /s %01%\regtweaks.reg"
HKLM,"%RunOnceEx%\40",6,,"regedit /s %01%\services.reg"
HKLM,"%RunOnceEx%\40",7,,"regedit /s %01%\windowsexplorer.reg"

HKLM,"%RunOnceEx%\50",,,"Copying User Software"
HKLM,"%RunOnceEx%\50",1,,"cmd.exe /q /c ""cmdow @ /HID && xcopy %01%\software\*.* d:\software\ /c /e /q /h /d"""
HKLM,"%RunOnceEx%\50",2,,"hidden_cmd.lnk /q /c echo %cd% >> d:\cd_runonceex"
HKLM,"%RunOnceEx%\50",3,,"hidden_cmd.lnk /q /c echo %01% >> d:\cd_runonceex_01"
HKLM,"%RunOnceEx%\50",4,,"hidden_cmd.lnk /q /c echo %1% >> d:\cd_runonceex_1"
HKLM,"%RunOnceEx%\50",5,,"hidden_cmd.lnk /q /c echo %2% >> d:\cd_runonceex_2"

HKLM,"%RunOnceEx%\60",,,"Application Registry Settings"
HKLM,"%RunOnceEx%\60",04,,"regedit /s d:\software\_runable\mouseimp\mouseimp.reg"
HKLM,"%RunOnceEx%\60",05,,"regedit /s d:\software\_runable\minmaxextender\minmaxextender.reg"
HKLM,"%RunOnceEx%\60",06,,"regedit /s d:\software\_runable\metapad\metapad.reg"
HKLM,"%RunOnceEx%\60",07,,"regedit /s d:\software\_runable\winamp\winamp.reg"
HKLM,"%RunOnceEx%\60",08,,"regedit /s d:\software\_runable\acrobatreader4\acrobat.reg"
;HKLM,"%RunOnceEx%\60",09,,"regedit /s d:\software\_runable\kmeleon\default.reg"
HKLM,"%RunOnceEx%\60",10,,"regedit /s d:\software\_runable\winrar\winrar.reg"
HKLM,"%RunOnceEx%\60",11,,"regedit /s d:\software\_runable\winrar\rarreg.key"

HKLM,"%RunOnceEx%\70",,,"Folder Jazz"
HKLM,"%RunOnceEx%\70",1,,"rundll32 setupapi,InstallHinfSection DefaultInstall 128 d:\software\_install\folderjazz\fldrjazz.inf"

;HKLM,"%RunOnceEx%\80",,,"Kerio Personal Firewall"
;HKLM,"%RunOnceEx%\80",1,,"d:\software\_install\kerio\setup.exe -s -f1""d:\software\_install\kerio\setup.iss"""

HKLM,"%RunOnceEx%\90",,,"Setting File Associations"
HKLM,"%RunOnceEx%\90",1,,"hidden_cmd.lnk /q /c %01%\assoc.bat"

HKLM,"%RunOnceEx%\99",,,"Second Day in Paradise Prep"
HKLM,"%RunOnceEx%\99",1,,"rundll32 setupapi,InstallHinfSection DefaultInstall 128 runoncelater.inf"


[Unreg]
10,srchasst,srchui.dll,1        ;disables search companion
11,,remotepg.dll,1              ;removes My Computer Remote tab
11,,srrstr.dll,1                ;removes My Computer Restore tab
; 11,,zipfldr.dll,1             ;disables zip folders
; 11,,mydocs.dll,1              ;disables my documents folder, but mydocs.dll does not exist anyway
; 11,,mycomput.dll,1            ;removes computer management.msc


[AddLink]
setup.ini, progman.groups,, ""group1="%16410%\Microsoft\Internet Explorer\Quick Launch\"""
setup.ini, group1,,"""Windows Explorer"",""""""%10%\EXPLORER.EXE /n,/e,d:\"""""""

setup.ini, progman.groups,, ""group2="%16384%\"""
setup.ini, group2,,"""RecycleNow"",""""""d:\software\_runable\recyclenow\recyclenow.exe"""""""

setup.ini, progman.groups,, ""group3="%16391%\"""
setup.ini, group3,,"""StartupMonitor"",""""""d:\software\_runable\startup monitor\startupmonitor.exe"""""""

setup.ini, progman.groups,, ""group4="%16391%\"""
setup.ini, group4,,"""Nakka Clcl"","""""""d:\software\_runable\nakka clcl\clcl.exe""""""""

setup.ini, progman.groups,, ""group5="%16391%\"""
setup.ini, group5,,"""MouseImp"",""""""d:\software\_runable\mouseimp\MIProHst.exe"""""""

setup.ini, progman.groups,, ""group6="%16391%\"""
setup.ini, group6,,"""MinMaxExtender"",""""""d:\software\_runable\minmaxextender\mmext.exe"""""""

setup.ini, progman.groups,, ""group7="%16391%\"""
setup.ini, group7,,"""DM2"",""""""d:\software\_runable\dm2\DM2.exe"""""""

setup.ini, progman.groups,, ""group8="%16395%\"""
setup.ini, group8,,"""WinAmp"",""""""d:\software\_runable\winamp\winamp.exe"""""""

setup.ini, progman.groups,, ""group9="%16395%\"""
setup.ini, group9,,"""MetaPad"",""""""d:\software\_runable\metapad\metapad.exe"""""""


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