Hallo Bernd,
Vielen Dank für deine Mail!
Schaun wir mal:
PS C:\Users\Guenther> netsh wlan show drivers
Interface name: Wi-Fi
Driver : Intel(R) Wi-Fi 6 AX201 160MHz
Vendor : Intel Corporation
Provider : Intel
Date : 9/27/2021
Version : 22.90.0.5
INF file : oem5.inf
Type : Native Wi-Fi Driver
Radio types supported : 802.11b 802.11g 802.11n 802.11a 802.11ac 802.11ax
FIPS 140-2 mode supported : Yes
802.11w Management Frame Protection supported : Yes
Hosted network supported : No
Authentication and cipher supported in infrastructure mode:
Open None
Open WEP-40bit
Open WEP-104bit
Open WEP
WPA-Enterprise TKIP
WPA-Enterprise CCMP
WPA-Personal TKIP
WPA-Personal CCMP
WPA2-Enterprise TKIP
WPA2-Enterprise CCMP
WPA2-Personal TKIP
WPA2-Personal CCMP
Open Vendor defined
WPA3-Personal CCMP
Vendor defined Vendor defined
WPA3-Enterprise 192 Bits GCMP-256
OWE CCMP
Number of supported bands : 2
2.4 GHz [ 0 MHz - 0 MHz]
5 GHz [ 0 MHz - 0 MHz]
IHV service present : Yes
IHV adapter OUI : [00 00 00], type: [00]
IHV extensibility DLL path: C:\WINDOWS\system32\IntelIHVRouter08.dll
IHV UI extensibility ClSID: {00000000-0000-0000-0000-000000000000}
IHV diagnostics CLSID : {00000000-0000-0000-0000-000000000000}
Wireless Display Supported: Yes (Graphics Driver: Yes, Wi-Fi Driver: Yes)
Interessant ist, dass das scheinbar geht:
PS C:\Users\Guenther> netsh wlan set hostednetwork mode=allow ssid=Mele-Astro-1 key=VerrateIchNicht
The hosted network mode has been set to allow.
The SSID of the hosted network has been successfully changed.
The user key passphrase of the hosted network has been successfully changed.
Aber dann:
PS C:\Users\Guenther> netsh wlan start hosted network
The hosted network couldn't be started.
The group or resource is not in the correct state to perform the requested operation.
Funktioniert so also leider nicht. War aber eigentlich ja schon bei der Ausgabe "Hosted network supported : No" klar.
So, jetzt holen wir erst mal tief Luft, denn es geht jetzt erst richtig los! 
Bisher habe ich folgendes nach eingehender Recherche mit Kopie des PowerShell Skriptes gemacht:
hotspot.cmd:
PowerShell -Command "Set-ExecutionPolicy Unrestricted" >> "%TEMP%\StartupLog.txt" 2>&1
PowerShell C:\AutoHotspot\hotspot.ps1 >> "%TEMP%\StartupLog.txt" 2>&1
hotspot.ps1:
Add-Type -AssemblyName System.Runtime.WindowsRuntime
$asTaskGeneric = ([System.WindowsRuntimeSystemExtensions].GetMethods() | ? { $_.Name -eq 'AsTask' -and $_.GetParameters().Count -eq 1 -and $_.GetParameters()[0].ParameterType.Name -eq 'IAsyncOperation`1' })[0]
Function Await($WinRtTask, $ResultType) {
$asTask = $asTaskGeneric.MakeGenericMethod($ResultType)
$netTask = $asTask.Invoke($null, @($WinRtTask))
$netTask.Wait(-1) | Out-Null
$netTask.Result
}
Function AwaitAction($WinRtAction) {
$asTask = ([System.WindowsRuntimeSystemExtensions].GetMethods() | ? { $_.Name -eq 'AsTask' -and $_.GetParameters().Count -eq 1 -and !$_.IsGenericMethod })[0]
$netTask = $asTask.Invoke($null, @($WinRtAction))
$netTask.Wait(-1) | Out-Null
}
Function SetHotspot($Enable) {
$connectionProfile = [Windows.Networking.Connectivity.NetworkInformation,Windows.Networking.Connectivity,ContentType=WindowsRuntime]::GetInternetConnectionProfile()
$tetheringManager = [Windows.Networking.NetworkOperators.NetworkOperatorTetheringManager,Windows.Networking.NetworkOperators,ContentType=WindowsRuntime]::CreateFromConnectionProfile($connectionProfile)
if ($Enable -eq 1) {
if ($tetheringManager.TetheringOperationalState -eq 1)
{
"Hotspot is already On!"
}
else{
"Hotspot is off! Turning it on"
Await ($tetheringManager.StartTetheringAsync()) ([Windows.Networking.NetworkOperators.NetworkOperatorTetheringOperationResult])
}
}
else {
if ($tetheringManager.TetheringOperationalState -eq 0)
{
"Hotspot is already Off!"
}
else{
"Hotspot is on! Turning it off"
Await ($tetheringManager.StopTetheringAsync()) ([Windows.Networking.NetworkOperators.NetworkOperatorTetheringOperationResult])
}
}
}
Function ToggleHotspot($Delay) {
SetHotspot(1)
sleep -seconds $Delay
SetHotspot(0)
sleep -seconds $Delay
SetHotspot(1)
}
ToggleHotspot(3)
Dann habe ich im Task Scheduler den automatiischen Start beim Hochfahren des Rechners aktiviert. Das funktioniert auch alles, aber leider eben nicht ohne Internetverbindung. Im Script steht ja auch GetInternetConnectionProfile() drin. Da gibt es vielleicht auch eine andere Konfigurationsmöglichkeit, aber die kenne ich nicht.
Es sieht so aus, als ob ich mir wohl doch einen externen Wifi Router beschaffen muss...
Viele Grüße,
Günther