Kod if errorlevel 1 se nezvyraznuje, resp. zvyraznuje jako pokracovani parametru programu powershell.exe, ackoliv tento je jasne uzavren uvozovkami.
powershell.exe "$m = New-Object -ComObject HNetCfg.HNetShare; $c = $m.EnumEveryConnection |? { $m.NetConnectionProps.Invoke($_).Guid -eq '%~1' }; $config = $m.INetSharingConfigurationForINetConnection.Invoke($c); $config.EnableSharing(%role%)" if errorlevel 1 -- <https://forum.pspad.com/read.php?1,62303,74145> PSPad freeware editor https://www.pspad.com