Solved Trying to Slipstream a Windows Mod into Ntlite


Sparks79

Member
Local time
4:05 AM
Posts
5
OS
Windows 11 pro
Over the years, Microsoft has tightened the reins on Windows 11 in different directions. They claim it's all about improving security, but that's debatable.

One particular area causing a lot of grief is sharing and mapping drives. Microsoft has tightened this so much that it's currently very difficult to fix. One fix I've found that works so far is 'Enable insecure logins for mapped drives'. This involves two statements that need to be inserted using PowerShell. They are:
Code:
Set-SmbClientConfiguration -RequireSecuritySignature $false
Set-SmbClientConfiguration -EnableInsecureGuestLogons $true
I like to keep my Windows 11 ISOs up to date, so I slipstream my own with NTLite. These two statements have stumped me when it comes to inserting them into NTLite. I can't for the life of me figure out how to do it.

I have several .reg files, including one I made about 10 years ago, and I can insert them through the 'Add Registry File' option in NTLite. However, these two modifications are done through PowerShell. I searched the Registry hoping to save these two modifications for inclusion in NTLite, but I can't find them. I just don't know how or where PowerShell saves them.

Any help would be greatly appreciated.

Cheers, John
 
Windows Build/Version
Vers 25H2 Build 26200.8246

My Computer My Computer

At a glance

Windows 11 proi9128gbonboard
OS
Windows 11 pro
Computer type
PC/Desktop
Manufacturer/Model
Home Built
CPU
i9
Motherboard
z790-a
Memory
128gb
Graphics Card(s)
onboard
Sound Card
onboard
Monitor(s) Displays
34" Curved
Screen Resolution
60hz
Hard Drives
Four Samsung 990Pro SSD @ 1TB in Raid 0
PSU
750 Gigabyte
Cooling
Thermaltake Water 3
Keyboard
Keji
Mouse
keji
Internet Speed
flipping Fast
Browser
Chrome
Antivirus
Microsoft
From NTLite's Post-Setup (Before logon) screen, you can add a single PowerShell command line to Post-Setup.

CommandParameter
powershell-C "Set-SmbClientConfiguration -RequireSecuritySignature $false; Set-SmbClientConfiguration -EnableInsecureGuestLogons $true"

You can visit the NTLite Community forum for more help.
NTLite Forums

The non-NTLite equivalent is to add the same PowerShell command line in your unattended file, from the specialize pass or using <FirstLogonCommands>.
 

My Computer My Computer

At a glance

Windows 7
OS
Windows 7
Thanks very much, I will give it a try later this evening and get back to you, CHEERS, John
 

My Computer My Computer

At a glance

Windows 11 proi9128gbonboard
OS
Windows 11 pro
Computer type
PC/Desktop
Manufacturer/Model
Home Built
CPU
i9
Motherboard
z790-a
Memory
128gb
Graphics Card(s)
onboard
Sound Card
onboard
Monitor(s) Displays
34" Curved
Screen Resolution
60hz
Hard Drives
Four Samsung 990Pro SSD @ 1TB in Raid 0
PSU
750 Gigabyte
Cooling
Thermaltake Water 3
Keyboard
Keji
Mouse
keji
Internet Speed
flipping Fast
Browser
Chrome
Antivirus
Microsoft
Thanks very much, this worked quite well.
There was just one Glitch, During the later part of the installation it stopped.
There was just that normal Circle of Dots.
I got sick of waiting and after about 5 minitues I rebooted and it continued on it's way.
Until it got to where it showed the two Mods and was waiting for me to give it aproval to proceed .
Do you know how to automate that part of the install.
 

My Computer My Computer

At a glance

Windows 11 proi9128gbonboard
OS
Windows 11 pro
Computer type
PC/Desktop
Manufacturer/Model
Home Built
CPU
i9
Motherboard
z790-a
Memory
128gb
Graphics Card(s)
onboard
Sound Card
onboard
Monitor(s) Displays
34" Curved
Screen Resolution
60hz
Hard Drives
Four Samsung 990Pro SSD @ 1TB in Raid 0
PSU
750 Gigabyte
Cooling
Thermaltake Water 3
Keyboard
Keji
Mouse
keji
Internet Speed
flipping Fast
Browser
Chrome
Antivirus
Microsoft
When running those commands in a script, you need to disable the confirmation prompts.

Code:
powershell -C "Set-SmbClientConfiguration -RequireSecuritySignature $false -confirm:$false; Set-SmbClientConfiguration -EnableInsecureGuestLogons $true -confirm:$false"

From NTLite:

CommandParameter
powershell-C "Set-SmbClientConfiguration -RequireSecuritySignature $false -confirm:$false; Set-SmbClientConfiguration -EnableInsecureGuestLogons $true -confirm:$false"
 

My Computer My Computer

At a glance

Windows 7
OS
Windows 7
Back
Top Bottom