Skip to content

Commit 43f70a0

Browse files
authored
fix: Allow guest access to network shares (#13)
1 parent a8ee8a0 commit 43f70a0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

assets/win10arm64.xml

+5
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,11 @@
389389
<CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateEnabled" /t REG_DWORD /d 0 /f</CommandLine>
390390
<Description>Disable Hibernation Mode</Description>
391391
</SynchronousCommand>
392+
<SynchronousCommand wcm:action="add">
393+
<Order>12</Order>
394+
<CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v "AllowInsecureGuestAuth" /t REG_DWORD /d 1 /f</CommandLine>
395+
<Description>Allow guest access to network shares</Description>
396+
</SynchronousCommand>
392397
</FirstLogonCommands>
393398
</component>
394399
</settings>

assets/win11arm64.xml

+5
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,11 @@
418418
<CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Control\Power" /v "HibernateEnabled" /t REG_DWORD /d 0 /f</CommandLine>
419419
<Description>Disable Hibernation Mode</Description>
420420
</SynchronousCommand>
421+
<SynchronousCommand wcm:action="add">
422+
<Order>14</Order>
423+
<CommandLine>reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v "AllowInsecureGuestAuth" /t REG_DWORD /d 1 /f</CommandLine>
424+
<Description>Allow guest access to network shares</Description>
425+
</SynchronousCommand>
421426
</FirstLogonCommands>
422427
</component>
423428
</settings>

0 commit comments

Comments
 (0)