How to Run a Windows store app at startup if "open file location" option is not available? - windows

While tryng to get the app "Maister Task" to run at startup I ran into the issue that, if the app is not already displayed in the startup manager, the method shown by the Windows 10 documentation to run apps at startup states that "If there isn't an option for Open file location, it means the app can't run at startup."
Is there a workarround?

One possible workarround:
open "Run" (Windows key + R)
Type: shell:AppsFolder
Locate the app that you want to run at startup.
Right click on app icon and select "Create shortcut"
Select destination of the shortcut.
Open "Run" again and type shell:startup
Add the shortcut that you created in step 4 to this folder.
Now the program will be launched when Windows is started.

Related

Electron app launched from start menu shell link alters process.execPath?

I'm using electron to develop an app. I'm using shell.writeShortcutLink() to create a shell link shortcut in the start menu. I need the start menu shortcut to enable windows toast notifications. I also create a normal shortcut on the desktop.
For some reason when the app is launched with the shell link in the start menu my app's process.execPath is changed to C:\Windows\System32 instead of the expected real location of the executable. The normal link works fine and process.execPath is correct.
This is a problem because I use process.execPath to access a file in the same folder as my app. Is this normal behavior for a shell link? Do apps launched with a shell link default their execution path to the System32 folder or is this something that is wrong with electron?
I suspect you're not setting the cwd param of the ShortcutDetails passed to writeShortuctLink. If the working directory isn't set on a shortcut, the default is c:\windows\system32

C:\windows\SysWow64\CScript.exe window pop up

I created a macro in Excel and i am running it from a .vbs file. It's working fine on my laptop. I copied the same work on a new laptop and each time i am running the vbs file this window appears on the screen.
I have made some research and read that the situation i mentioned is happening when loading CheckNDISPort service on the startup. But i don't believe it's the reason because when i go to task manager and check in the startUp tab i don't find this service. Also when i restart my laptop i don't get this window, only when i am running my vbs file. I am sure there is any problem with my vbs file too because on the other laptops it's working fine.
Any suggestion please how to get ride of this pop up ? For now i am closing the window each time or ending the task from task manager but everytime i run it again so it pops up again.
Thank you very much.
Windows Scripting Host has two interpreter front-ends, wscript.exe and cscript.exe. cscript.exe is a console application and if cscript.exe is set as the default a console window will open every time you execute a script.
Run cmd.exe elevated as administrator and run wscript.exe //h:wscript.
Depending on the Windows version, you might also be able to right-click a .vbs file, select "Open with...", choose %windir%\system32\wscript.exe and check the "default" checkbox.

WMIC Product GET Name - Invalid Class

I am trying to list all of the programs currently on my Windows 8.1 machine. I believe recently installed software is preventing windows from booting up. I have access to the command line and I have been trying to use the wmic product GET Name to see what I can uninstall from the command line. I read that you have to enable the WMI support tools in Management & Monitoring Tools, but I don't have access to that. Does anyone know if I can enable that from the command line so I can figure out why I am ultimately getting a EDIT:0x000021a error on start up.
Try
This is not a full list (wmic). This is only products installed with Windows Installer. There is no feature for everything.
However as I said in my previous post nearly everything is listed in the registry.
So to see it in a command prompt
reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall /s
Also your error code seems invalid. There is no 27a windows error or 0xc000027a NT Status code. It seems wrong for a COM containing NTSTatus 0xd000027a or COM with Windows error 0x8007027a.
Clean Booting
Each of the three steps turns of programs, services, and drivers in increasing amounts. Thus narrowing down the possible culprits.
Clean Boot
Click Start - All Programs - Accessories - Run and type
msconfig
Then go to the Startup tab. Untick everything. Then go to the Services tab. Tick Hide All Microsoft Services and untick everything that's left.
Reboot. If this solves your problem reenable ½ of the services/startup items until you find which one.
Advanced Clean Boot
If the above doesn't help.
Download Autoruns from http://technet.microsoft.com/en-us/sysinternals/bb963902.aspx
Start the program by right clicking and choosing Run As Administrator and click Options menu - Filter Options and tick Hide Microsoft entries and clear Include Empty Locations. Untick everything left.
Reboot. If this solves your problem reenable ½ of the items until you find which one.
Safe Mode
If the above doesn't help.
Use Safe Mode with Networking if you need internet access.
Click Start - All Programs - Accessories - Run and type
msconfig
Then go to the Boot tab and click Safe Boot (also tick Network if needed). Reboot. Come back here and untick Safe Boot to return to normal mode.
or
If your computer has a single operating system installed, repeatedly press the F8 key as your computer restarts. You need to press F8 before the Windows logo appears. If the Windows logo appears, you will need to try again. [From Start - Help and Support]
Startup Repair
If your computer has a single operating system installed, repeatedly press the F8 key as your computer restarts. You need to press F8 before the Windows logo appears. If the Windows logo appears, you will need to try again. [From Start - Help and Support].
On the Advanced Boot Options screen, use the arrow keys to highlight Repair your computer, and then press ENTER.
Select Startup Repair.
Startup repair makes a log file. See C:\Windows\System32\LogFiles\Srt\SrtTrail.txt.
To access if Windows won't start, on the Advanced Boot Options screen, use the arrow keys to highlight Repair your computer, and then press ENTER.
Select Command Prompt.
Type
type C:\Windows\System32\LogFiles\Srt\SrtTrail.txt |more
Also type explorer in your command prompt and see what happens.
My Explorer fixes listsways of using windows without the graphical shell.
To See if a Fix is Available
In Control Panel (and select Classic view in the left hand pane) choose Problem Reports and Solutions (type problem in Start's search box), go to Problem History, right click your error and choose Check For Solution.
You may also right click and choose Details for more info. Post those details here. The Fault Module Name is the important information.
If the problem affects Control Panel press Winkey + R and type wercon (or type it in a command prompt).
Close Explorer and Start a Command Prompt
Close any Explorer windows
Start - All Programs - Accessories - Right click Command Prompt and choose Run As Administrator.
Click Start. Ctrl + Shift + Right click a blank spot (just above the power buttons is one place) then Exit Explorer.
Press Ctrl + Alt + Delete then Task Manager.
Check all explorer processes are closed. On the Process tab select explorer and right click and choose End Process, repeat if more than one explorer in the list.
Then to restart explorer after trying each of the following
Press Ctrl + Alt + Delete and choose Task Manager
In Task Manager click the File menu then New Task (Run) and type explorer
If You Can't Start Explorer at All
Press Ctrl + Alt + Delete and choose Task Manager
On the Process tab click Show Processes From All Users to elevate to Administrator
In Task Manager click the File menu then New Task (Run) and type cmd
Other things you can try typing
Explorer
Explorer c:\
Explorer /e,c:\
wercon
control
iexplore
rstrui
If you can't start a folder window use the Browse button in the New Task dialog. Remember you need to right click and choose Open rather than double clicking.

login to remote windows machine through batch file from another windows machine

My remote windows server restarts at fixed time , i need to login daily after restart , since i have scheduled few tasks in the server and they run only when loged in , please help me to automate the login process , can we do this through batch files ? like we can do the restart
If you have Windows 2008 or above you can use Task Scheduler. Open Control Panel and run the Task Scheduler. Right click on Action menu and run Create Task. Create the task as usual select "Run whether user is logged on or not" and (if need) select the "Run with hightest privileges" checkbox. Then go to Triggers tab and click the "New" button. There are many conditions for run this task. Select "At stratup" and click OK. Then in the Action tab select the "New" button. There select in Action "Start a program". Click Browse button and select your script or batch file. Click OK. Repeat as necessary. Click OK again and create the new Task.
Good luck.

How to start apache2.4 service as administrator

I am trying make ODBC connection using Xampp.
When i run apache2.4 as service it runs with local user credentials and it shows access denied error. But when i run Xampp as admin and start it manually it works fine. So my question is how do i run apache2.4 service as administrator. P.S. I am using Windows 7.
Bring up the Services (services.msc) application. Find the Apache service and double click it.
Click "Log On" tab and click "This account:" and enter the credentials for your Administrator account.
Alternatively
Do the above but rather than the "Log On" tab, grab the Path to the executable: and navigate to its folder using Windows Explorer and right-click on the executable and click Properties and click Compatibility.
Make sure "Run this program as an administrator" is ticked and click OK.
You should be good to go!

Resources