[Windows] Add Wireless LAN feature (#9373)

* [Windows] Add Wireless LAN feature

* Change WLAN service startup type to manual

* Update template directly
This commit is contained in:
Alexey-Ayupov
2024-02-22 16:12:24 +01:00
committed by GitHub
parent 554135d9c6
commit 39b838e8fd
5 changed files with 16 additions and 2 deletions

View File

@@ -13,6 +13,10 @@ Describe "WindowsFeatures" {
it "Check WSL is on path" { it "Check WSL is on path" {
(Get-Command -Name 'wsl') | Should -BeTrue (Get-Command -Name 'wsl') | Should -BeTrue
} }
it "Check WLAN service is stopped" {
(Get-Service -Name wlansvc).Status | Should -Be "Stopped"
}
} }
Describe "DiskSpace" { Describe "DiskSpace" {

View File

@@ -272,6 +272,10 @@ build {
restart_timeout = "30m" restart_timeout = "30m"
} }
provisioner "powershell" {
inline = ["Set-Service -Name wlansvc -StartupType Manual", "if ($(Get-Service -Name wlansvc).Status -eq 'Running') { Stop-Service -Name wlansvc}"]
}
provisioner "powershell" { provisioner "powershell" {
environment_vars = ["IMAGE_FOLDER=${var.image_folder}"] environment_vars = ["IMAGE_FOLDER=${var.image_folder}"]
scripts = [ scripts = [

View File

@@ -263,6 +263,10 @@ build {
restart_timeout = "10m" restart_timeout = "10m"
} }
provisioner "powershell" {
inline = ["Set-Service -Name wlansvc -StartupType Manual", "if ($(Get-Service -Name wlansvc).Status -eq 'Running') { Stop-Service -Name wlansvc}"]
}
provisioner "powershell" { provisioner "powershell" {
environment_vars = ["IMAGE_FOLDER=${var.image_folder}"] environment_vars = ["IMAGE_FOLDER=${var.image_folder}"]
scripts = [ scripts = [

View File

@@ -260,7 +260,8 @@
{ "name": "FS-iSCSITarget-Server", "includeAllSubFeatures": true, "includeManagementTools": true }, { "name": "FS-iSCSITarget-Server", "includeAllSubFeatures": true, "includeManagementTools": true },
{ "name": "Containers" }, { "name": "Containers" },
{ "name": "Microsoft-Windows-Subsystem-Linux", "optionalFeature": true }, { "name": "Microsoft-Windows-Subsystem-Linux", "optionalFeature": true },
{ "name": "VirtualMachinePlatform", "optionalFeature": true } { "name": "VirtualMachinePlatform", "optionalFeature": true },
{ "name": "Wireless-Networking" }
], ],
"visualStudio": { "visualStudio": {
"version" : "2019", "version" : "2019",

View File

@@ -170,7 +170,8 @@
{ "name": "NET-Framework-Features", "includeAllSubFeatures": true }, { "name": "NET-Framework-Features", "includeAllSubFeatures": true },
{ "name": "Hyper-V", "includeAllSubFeatures": true }, { "name": "Hyper-V", "includeAllSubFeatures": true },
{ "name": "HypervisorPlatform", "optionalFeature": true }, { "name": "HypervisorPlatform", "optionalFeature": true },
{ "name": "Hyper-V-PowerShell" } { "name": "Hyper-V-PowerShell" },
{ "name": "Wireless-Networking" }
], ],
"visualStudio": { "visualStudio": {
"version" : "2022", "version" : "2022",