

+ CategoryInfo : PermissionDenied: (PS_ScheduledTask:Root/Microsoft/. + Register-ScheduledTask -TaskName "RunAppAfterLogin" -Trigger $trigger. Register-ScheduledTask : Access is denied. (see screenshot below) 3 Turn on (default) or off Runs at log-in (if available) for what you want for the app. 2 Click/tap on Apps & features on the left side, click/tap on the app (ex: 'Cortana') you want, and click/tap on the Advanced options link. Register-ScheduledTask -TaskName "RunAppAfterLogin" -Trigger $trigger -User $user -Action $action -Force -RunLevel Highestīelow is the output from debug. 1 Open Settings, and click/tap on the Apps icon. $action = New-ScheduledTaskAction -Execute $appPath $trigger = New-ScheduledTaskTrigger -AtLogOn

$appPath = 'C:\Program Files\WindowsApps\AppspaceInc.Appspace_2.54.0.0_圆4_7nb6hsg4cq4xc' I have used the -RunLevel Highest but seems not effective. But the first error I encountered is a permission error because WindowsApp folder is protected hidden folder. I am not sure whether I have done the path right (whether I have found the right executables).

Sign up for my Advisorator newsletter to get tech tips like this in your inbox every Tuesday.Hi have done the script with a path to WindowsApps folder. If you ever want to change an app’s startup behavior, just head back to ⚙ Settings > Apps > Startup and toggle it on or off again. If there isnt an option for Open file location, it means the app cant run at startup. This opens the location where the shortcut to the app is saved. Right-click the app, select More, and then select Open file location. None of these options are permanently, of course. Select the Start button and scroll to find the app you want to run at startup. I want those programs to be available immediately, and have left them enabled regardless of their performance impact. For instance, I use to AutoDarkMode to switch between Windows light and dark themes automatically, f.lux to adjust screen tone, and Beeftext for text shortcuts. Slack’s mobile app will still notify me of anything important.) Even if a program doesn’t register as “High Impact,” you can still disable it if you don’t need it to run right away.Ĭonversely, I’ve allowed certain apps to run at startup because they need to be running the background at all times. (This does mean I won’t get any Slack desktop notifications until I actually launch the app, but that’s okay. In my case, I’ve disabled Slack, Microsoft Edge, and Logitech’s Options software, none of which I care about running as soon as my PC boots up.
