windows-10

Workaround for 'Apps & features' in Windows 10 starting a single-user uninstaller elevated

眉间皱痕 提交于 2020-02-29 05:24:18
问题 When users try to uninstall their own single user installation (for example installed using lowestprivileges none and HKCU entries ) with 'Add/Remove Programs' in the Control Panel, everything works fine (that is, non-admin users can uninstall their own non-admin installation). However the uninstaller will be elevated, when users start it from 'Apps & features' (Windows 10). This seems to be a known Windows 10 bug: How to prevent uninstaller elevating for Standard Windows 10 user? Is there a

How to check if bluetooth is enabled on a device

▼魔方 西西 提交于 2020-02-28 05:53:47
问题 I want to check if Bluetooth is enabled on a device (so that an app could use it without user interaction). Is there any way to do that? Can I also check Bluetooth and Bluetooth Low Energy separately? 回答1: I accomplished this using the Radio class. To check if Bluetooth is enabled: public static async Task<bool> GetBluetoothIsEnabledAsync() { var radios = await Radio.GetRadiosAsync(); var bluetoothRadio = radios.FirstOrDefault(radio => radio.Kind == RadioKind.Bluetooth); return bluetoothRadio

Toast Notifications does not appear in Action Center after time out

旧街凉风 提交于 2020-02-25 13:44:52
问题 Toast notification in Windows 10 is behaving strange. It does not stay in the action center even if user has not taken any actions yet. This behavior is with custom notification and generic both. Toast notification is generated using a Windows desktop application not using a universal window. 回答1: As answered here : Win32 apps need to set up a COM server in order to have toasts persisted in Action Center: http://blogs.msdn.com/b/tiles_and_toasts/archive/2015/10/15/quickstart-handling-toast

How to run custom, non window app in kiosk mode in windows 10

青春壹個敷衍的年華 提交于 2020-02-25 06:02:10
问题 I wanted to run some application at start in windows 10, which I did by putting them in startup folder. Now I want to run these apps in kiosk mode, so that user does not see what applications are running at back and he just sees internet browser with some website like google.com. I tried to set up a different local account under kiosk mode, but I am able to run it only with windows app, which are provided under Add an app . Could someone please suggest how to add custom apps in kiosk mode so

Using pyautogui to unlock screen

白昼怎懂夜的黑 提交于 2020-02-25 05:41:13
问题 I'm using pyautogui to unlock my computer screen on Windows 10. Here's the script: pyautogui.FAILSAFE = False time.sleep(7) print("Pressing 'space'") pyautogui.press('space') print("Waiting for 3 seconds.") time.sleep(3) print("Typying Password") pyautogui.press('p') time.sleep(0.1) pyautogui.press('a') time.sleep(0.1) pyautogui.press('s') time.sleep(0.1) pyautogui.press('s') time.sleep(0.1) pyautogui.press('w') time.sleep(0.1) pyautogui.press('o') time.sleep(0.1) pyautogui.press('r') time

Using pyautogui to unlock screen

若如初见. 提交于 2020-02-25 05:40:27
问题 I'm using pyautogui to unlock my computer screen on Windows 10. Here's the script: pyautogui.FAILSAFE = False time.sleep(7) print("Pressing 'space'") pyautogui.press('space') print("Waiting for 3 seconds.") time.sleep(3) print("Typying Password") pyautogui.press('p') time.sleep(0.1) pyautogui.press('a') time.sleep(0.1) pyautogui.press('s') time.sleep(0.1) pyautogui.press('s') time.sleep(0.1) pyautogui.press('w') time.sleep(0.1) pyautogui.press('o') time.sleep(0.1) pyautogui.press('r') time

Using pyautogui to unlock screen

╄→гoц情女王★ 提交于 2020-02-25 05:40:25
问题 I'm using pyautogui to unlock my computer screen on Windows 10. Here's the script: pyautogui.FAILSAFE = False time.sleep(7) print("Pressing 'space'") pyautogui.press('space') print("Waiting for 3 seconds.") time.sleep(3) print("Typying Password") pyautogui.press('p') time.sleep(0.1) pyautogui.press('a') time.sleep(0.1) pyautogui.press('s') time.sleep(0.1) pyautogui.press('s') time.sleep(0.1) pyautogui.press('w') time.sleep(0.1) pyautogui.press('o') time.sleep(0.1) pyautogui.press('r') time

windows subsystem install mysql server

ぐ巨炮叔叔 提交于 2020-02-24 00:41:04
问题 installing mysql-server on ubuntu 18.04 subsystem windows 10. Cannot open /proc/net/unix: No such file or directory Cannot stat file /proc/1/fd/5: Operation not permitted Cannot stat file /proc/3/fd/7: Operation not permitted help please 回答1: For anyone running into this issue, Close and reopen WSL and then run sudo service mysql start sudo dpkg --configure -a it should complete. 回答2: I don't know how many people had this issue but what worked for me was a combination of following the steps

windows subsystem install mysql server

空扰寡人 提交于 2020-02-24 00:39:05
问题 installing mysql-server on ubuntu 18.04 subsystem windows 10. Cannot open /proc/net/unix: No such file or directory Cannot stat file /proc/1/fd/5: Operation not permitted Cannot stat file /proc/3/fd/7: Operation not permitted help please 回答1: For anyone running into this issue, Close and reopen WSL and then run sudo service mysql start sudo dpkg --configure -a it should complete. 回答2: I don't know how many people had this issue but what worked for me was a combination of following the steps

Pin program (with parameters) to Taskbar using PS in Windows 10

女生的网名这么多〃 提交于 2020-02-20 11:21:12
问题 I am able to pin programs to the Windows 10 Taskbar using the below code (thanks to this StackOverflow question). However, if I try to add a command-line parameter to the program, like the example below, it doesn't work. It seems like the code presumes the target executable doesn't have any parameters. $Target = "`"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe`" --proxy-server=192.168.1.2:8080" Param($Target) $KeyPath1 = "HKCU:\SOFTWARE\Classes" $KeyPath2 = "*" $KeyPath3 =