윈 도 우 10pe빌드 프로젝트-10pese-finals 9-administrator.script질문
2018.04.07 21:59
노트패드로 열어보았습니다. 안에 내용중에 스위치투어드민부터 어드민서포트까지 글복사한 내용입니다.
요부분들이 pe부팅할때 관리자계정에 관한 부분 같습니다. 이 내용들을 혹시 windows-system32-pecmd.ini파일에 넣어줘야 할려나여 ?
아시는분 계시면 조언좀 부탁드립니다. 원클릭pe를 관리자계정으로 부팅하고 싶습니다. 음 어렵군요.
[SwitchToAdminQuestion]
If,ExistFile,%Target_sys%\winpeshl.ini,Begin
If,Not,ExistFile,%Target_sys%\winpeshl_dft.ini,FileRename,%Target_sys%\winpeshl.ini,%Target_sys%\winpeshl_dft.ini
End
FileCopy,%ProjectTemp%\SwitchToAdmin\SwitchToAdminSystem.cmd,%target_sys%
FileCopy,%ProjectTemp%\SwitchToAdmin\SwitchToAdminSystem.ini,%target_sys%
FileCopy,%ProjectTemp%\SwitchToAdmin\SwitchToSystem.ini,%target_sys%
Require_FileQ,choice.exe
//-
RegHiveLoad,Tmp_System,%RegSystem%
System,ERROROFF
RegWrite,HKLM,0x1,Tmp_System\Setup,CmdLine,"Pecmd.exe Main #$pWindir#$p\system32\SwitchToAdmin.ini"
RegHiveUnLoad,Tmp_System
//-
//- Run ctfmon.exe if exists in Target System (Copied from IME plugin)
If,ExistFile,%Target_sys%\ctfmon.exe,Begin
TXTReplace,%Target_sys%\SwitchToAdminLogon.ini,"//EXEC ctfmon.exe#$x//LOGO","EXEC ctfmon.exe#$xLOGO"
End
// CountDown to choose between System or Admininistrator session at startup. 3 seconds by default
If,Not,%CountDown_NumberBox%,Equal,3,TXTReplace,%Target_sys%\SwitchToAdmin.cmd,"Set t=3","Set t=%CountDown_NumberBox%"
//-
If,%Desktop_CheckBox%,Equal,False,Begin
TXTReplace,%target_sys%\SwitchToAdminLogon.ini,"CALL DesktopSessionShortcuts","//CALL DesktopSessionShortcuts"
//Add_Shortcut,Desktop,,#$pSystemRoot#$p\system32\tscon.exe,"Session System",,1,"#$pSystemRoot#$p\system32\imageres.dll#$c74"
//Add_Shortcut,Desktop,,#$pSystemRoot#$p\system32\tscon.exe,"Session Administrator",,2,"#$pSystemRoot#$p\system32\imageres.dll#$c74"
End
If,%StartMenu_CheckBox%,Equal,True,Begin
If,%StartMenu_RadioGroup%,Equal,0,Set,%Startmenu_Folder_Name%,"System Tools"
If,%StartMenu_RadioGroup%,Equal,1,Set,%Startmenu_Folder_Name%,%StartMenu_TextBox%
If,%Startmenu_Folder_Name%-,Equal,-,Set,%Startmenu_Folder_Name%,"System Tools"
//-
If,Not,%Startmenu_Folder_Name%,Equal,"System Tools",Begin
TXTReplace,%target_sys%\SwitchToAdminLogon.ini,"\System Tools\Session System","\%Startmenu_Folder_Name%\Session System"
TXTReplace,%target_sys%\SwitchToAdminLogon.ini,"\System Tools\Session Administrator","\%Startmenu_Folder_Name%\Session Administrator"
End
//Add_Shortcut,StartMenu,%Startmenu_Folder_Name%,#$pSystemRoot#$p\system32\tscon.exe,"Session System",,1,"#$pSystemRoot#$p\system32\imageres.dll#$c74"
//Add_Shortcut,StartMenu,%Startmenu_Folder_Name%,#$pSystemRoot#$p\system32\tscon.exe,"Session Administrator",,2,"#$pSystemRoot#$p\system32\imageres.dll#$c74"
End
Else,TXTReplace,%target_sys%\SwitchToAdminLogon.ini,"CALL StartMenuSessionShortcuts","//CALL StartMenuSessionShortcuts"
[Admin_Win10]
If,Not,ExistDir,%target_win%\SystemResources,DirMake,%target_win%\SystemResources
DirCopy,%Source_Win%\SystemResources\Windows.UI.Logon,%target_win%\SystemResources
//- LogonUI.exe support files -
Require_FileQ,Windows.UI.Xaml.dll
Require_FileQ,Windows.UI.Xaml.Resources.dll
Require_FileQ,Windows.UI.Logon.dll
Require_FileQ,MrmCoreR.dll
Require_FileQ,LogonController.dll
Require_FileQ,Windows.UI.dll
Require_FileQ,Windows.UI.Immersive.dll
Require_FileQ,CredProvDataModel.dll
Require_FileQ,wincorlib.dll
Require_FileQ,credprovs.dll
Require_FileQ,credprovhost.dll
// Dependencies for Win10 1709 build 16299.15 Fall creator update
If,Not,%Win10_1709%,Equal,Smaller,Begin
Require_FileQ,CredDialogBroker.dll
Require_FileQ,CredProv2faHelper.dll
End
// New in 14267
If,ExistFile,%Source_Sys%\credprovslegacy.dll,Require_FileQ,credprovslegacy.dll
// Xaml Host dll is required for 14393
If,ExistFile,%Source_Sys%\Windows.UI.XamlHost.dll,Require_FileQ,Windows.UI.XamlHost.dll
Require_FileQ,threadpoolwinrt.dll
Require_FileQ,FontGlyphAnimator.dll
Require_FileQ,usermgr.dll
Require_FileQ,usermgrcli.dll
Require_FileQ,usermgrproxy.dll
Require_FileQ,samcli.dll
Require_FileQ,shacct.dll
// AuthExt.dll and InputSwitch.dll are perhaps not really necessary
Require_FileQ,AuthExt.dll
Require_FileQ,InputSwitch.dll
//- Not needed File
//Windows.Globalization.dll,ucrtbase.dll,SmartcardCredentialProvider.dll,msvcp_win.dll,rasplap.dll,ngccredprov.dll,InputSwitch.dll,wlidcredprov.dll,certCredProvider.dll
//BioCredProv.dll,globinputhost.dll,rmclient.dll,IDStore.dll,msctfp.dll,AuthExt.dll,ngckeyenum.dll,Windows.Globalization.Fontgroups.dll,fontgroupsoverride.dll
[Admin_Support]
Require_FileQ,hnetcfg.dll
//- profsvc support
Require_FileQ,certca.dll
Require_FileQ,cscapi.dll
Require_FileQ,certcli.dll
Require_FileQ,cscdll.dll
Require_FileQ,activeds.dll
Require_FileQ,apprepapi.dll
Require_FileQ,msiltcfg.dll
Require_FileQ,ninput.dll
Require_FileQ,wmiclnt.dll
//- gpsvc support
Require_FileQ,gpsvc.dll
Require_FileQ,nlaapi.dll
Require_FileQ,adsldpc.dll
Require_FileQ,dfscli.dll
//- LogonUI.exe support
Require_FileQ,LogonUI.exe
Require_FileQ,userinit.exe
Require_FileQ,Sens.dll
Require_FileQ,SensApi.dll
Require_FileQ,mtxex.dll
// need for admin logon without network plugin
Require_FileQ,logoncli.dll
// Runas
Require_FileQ,runas.exe
// Connect to Another Session. tscon 1: connect to System session | tscon 2: connect to System session
Require_FileQ,tscon.exe
// optional, add Who I am
Require_FileQ,whoami.exe
//- User Profile Service need UsrClass.dat to avoids an error in Eventlog: ID 1542 Windows cannot load classes registry file
ExtractFile,%ScriptFile%,Folder,UsrClass.dat,%TargetProfilesUserDir%\AppData\Local\Microsoft\Windows
//-
//- Security Configuration Template (Logon as Administrator)
If,%SourceArch%,Equal,x86,Set,%SxSArch%,x86
Else,Set,%SxSArch%,amd64
DirCopy,%Source_Win%\WinSxS\%SxSArch%_microsoft-windows-p..al-securitytemplate_*,%target_win%\WinSxS
FileCopy,%Source_Win%\WinSxS\manifests\%SxSArch%_microsoft-windows-p..al-securitytemplate_*,%target_win%\WinSxS\manifests\
댓글 [2]
-
DarknessAngel 2018.04.08 06:59
-
복태취업했다 2018.04.08 09:19
감사합니다. 엔젤님. 우ㅏㄹ요일 출근해서 해봐야겠네요.
번호 | 제목 | 글쓴이 | 조회 | 등록일 |
---|---|---|---|---|
[공지] | 질문과 답변 게시판 이용간 유의사항 | gooddew | - | - |
73441 | 윈 도 우| rs4에서 한글NEO 단축키 오류 [1] | 현우민 | 928 | 04-08 |
73440 | 기 타| 게이밍 노트북 하나 장만 하려고 하는데요 [3] | 도우너2 | 274 | 04-08 |
73439 | 윈 도 우| 윈도우 7 업데이트가 안됩니다... [6] | 랜섬웨어 | 513 | 04-08 |
73438 | 소프트웨어| 안랩 세이프 트랜잭션 설치 오류 [6] | GSM | 846 | 04-08 |
73437 | 윈 도 우| RS4 바탕화면 오른쪽 끝에서 마우스 커서 사라지는 문제 질... [9] | 브래드피클 | 897 | 04-08 |
73436 | 소프트웨어| 오피스 2016 리테일버전에서 볼륨버전으로 변경방법을 알고... [8] | 늘상푸른 | 2008 | 04-08 |
73435 | 윈 도 우| 10pe관리자계정부팅 넷프문제 이런방법 될까요? [5] | 복태취업했 | 138 | 04-08 |
73434 | 윈 도 우| 윈도우 무인 설치시 자동 입력 방법 좀 알려주세요.. [1] | 테츠로 | 274 | 04-08 |
73433 | 소프트웨어| 핸드폰 사진 복구 유틸 추천좀 해주세요 [1] | 코모03 | 354 | 04-08 |
73432 | 기 타| 시퓨 업글하려 하는데 기존 i3 2100 [9] | aqz | 532 | 04-08 |
73431 | 윈 도 우| 원클릭pe에 철이님pe관리자계정파일들 넣어보았습니다. [2] | 복태취업했 | 318 | 04-07 |
» | 윈 도 우| 10pe빌드 프로젝트-10pese-finals 9-administrator.script질문 [2] | 복태취업했 | 297 | 04-07 |
73429 | 윈 도 우| MS에서 제공하는 윈도우ISO다운로드 툴에서 RS4가 제공되는... [2] | 태권V24 | 887 | 04-07 |
73428 | 윈 도 우| Rs4 재부팅 시 무한로딩 현상때문인데요. [4] | applemi | 679 | 04-07 |
73427 | 모 바 일| 홈 화면 상단에 뭔지 모르겠네요~ [2] | hwasung | 313 | 04-07 |
73426 | 소프트웨어| CLaunch 버튼 추가할 때 [4] | 카이존 | 127 | 04-07 |
73425 | 윈 도 우| 이거 아이콘이 왜 이럴까요? [2] | 이탈 | 467 | 04-07 |
73424 | 윈 도 우| 토렌트 속도 말인데요 언제부터 [2] | aqz | 405 | 04-07 |
73423 | 윈 도 우| 윈도우 진입 시 F8 안전모드 부팅 방법이 알고싶습니다. [7] | applemi | 737 | 04-07 |
73422 | 윈 도 우| Win10 무료업그레이드 ??? [3] | 바람낙엽 | 740 | 04-07 |
그런 간단한 편법따위 존재 안 합니다
수동 구현경우 레지든 파일이든 한땀한땀 수동으로 따넣는게 유일한 방법입니다
다행히 인간이 읽을 수 있는 언어로 적혀있으니 직접 하나씩 순서대로 수행하는 수 밖에 없습니다