Questions about the late tasks of NTLite

  • Thread starter Thread starter wangxiang
  • Start date Start date
W

wangxiang

Guest
我在NTLite软件的任务栏中配置了任务,如下所示:


1.添加文件

安装Windows10系统后,文件将保存在%WINDIR%\ Setup \ Files \ nanjing_softmanage_url.bat路径中

2.添加命令
powercfg /休眠关闭

3.添加命令
关机-r -t 5

一种。我启用了OEM SetupComplete
b。我已启用将回复文件复制到图像的功能
我已启用将回复文件复制到启动映像的功能

nanjing_softmanage_url.bat的脚本代码如下:

@回声关闭
设置lnkdir =“%USERPROFILE%\ Desktop”
echo [InternetShortcut]>%lnkdir%\软件自选安装.url
echo URL =“ file://nasnj.test.cc/Public/IT/Programs/办公-IT” >>%lnkdir%\软件自选安装.url
echo IconIndex = 130 >>%lnkdir%\软件自选安装.url
echo IconFile =%systemroot%\ system32 \ Shell32.dll >>%lnkdir%\软件自选安装.url
出口


安装Windows 10后,桌面无法生成我自己的快捷方式

不知道我在哪里配置错误?

如何配置?
 
Last edited by a moderator:
In the unattended item of NTLite software, the serial number is empty and no content is filled in
 
After the Windows 10 operating system is installed, I look at the corresponding directories C:\Windows\Setup\Files and C:\Windows\Setup\ Scripts



There are setupcomplete.cmd and nanjing_softmanage_url.bat scripts
 
I execute the setupcomplete.cmd script directly in Windows 10, and the desktop can generate shortcuts
 
When setupcomplete.cmd does not run, try enabling OEM SetupComplete in the Unattended next time.
That behavior is by design if using OEM product key, for some reason Microsoft then skips SetupComplete.

Let me know if that helped start the scripts.
 
When setupcomplete.cmd does not run, try enabling OEM SetupComplete in the Unattended next time.
That behavior is by design if using OEM product key, for some reason Microsoft then skips SetupComplete.

Let me know if that helped start the scripts.

Hi, it's in the "Unattended Items" menu

a. I enabled OEM SetupComplete
b. I have enabled copying the reply file to the image
c.I have enabled copying the reply file to the Boot image

See below:

After installing Windows 10, I didn't see the shortcut ICONS automatically generated on my desktop that I specified
 
Is anything else done, like hibernate turned off?
If so, then the main script ran.
And your icon script is reliant on Internet, so probably there is no internet that early in setup.
Are you connecting to WIFI, doing anything after setup to gain connectivity?
 
Is anything else done, like hibernate turned off?
If so, then the main script ran.
And your icon script is reliant on Internet, so probably there is no internet that early in setup.
Are you connecting to WIFI, doing anything after setup to gain connectivity?

When I installed ISO, the host was not connected to any network, but I guess I just executed the script and generated a desktop icon after installing the system first, so it shouldn't have anything to do with connecting to the network

This is my unattended and Post-Setup configuration

View attachment 4574


The attachments are the Autounattend.xml and Autosaved Session XML file from the Windows 10 ISO image

The problem:
After installing Windows 10, I didn't see the shortcut ICONS automatically generated on my desktop that I specified

It feels like this script: nanjing_softmanage_url.bat was not executed
 

Attachments

Last edited by a moderator:
Post-setup execution is at the end of Windows setup, before users are created, it is normal to not have a Desktop, or %userprofile%.
My apologies for not thinking about that earlier. It's a normal Windows setup limitation.

But not to worry, the NTLite v2.1 beta adds User Post-setup mode to add support for situations like this.

Will send you on email a v2.1 beta with this mode ready for scripts, public version was not finished.

Thanks.
 
Post-setup execution is at the end of Windows setup, before users are created, it is normal to not have a Desktop, or %userprofile%.
My apologies for not thinking about that earlier. It's a normal Windows setup limitation.

But not to worry, the NTLite v2.1 beta adds User Post-setup mode to add support for situations like this.

Will send you on email a v2.1 beta with this mode ready for scripts, public version was not finished.

Thanks.



NTLite version I have upgraded to version 2.1

The problem:
After installing Windows 10, I didn't see the shortcut ICONS automatically generated on my desktop that I specified

It feels like this script: nanjing_softmanage_url.bat was not executed


View attachment 4671


View attachment 4670
 
Aa thanks, yes I see that too, will fix in next one, it's just cosmetic.
 
Aa thanks, yes I see that too, will fix in next one, it's just cosmetic.

Hi,nuhi

Could you please tell me if this version is 2.1.0.7845, can it solve the problem I encountered above?
 
Back
Top