Clicking Troubleshoot menu on system startup using powershell - windows-11

I have used 'shutdown.exe /r /o' to restart windows 11 in advanced mode. The screen opens where I can see the Troubleshooting menu. I wish to click on the Troubleshooting menu after startup. Is there a way to do this?

Related

How to create a start menu shortcut in NSIS in Windows 11?

I'm looking for a way to add a shortcut of my program to the Windows 11 start menu using NSIS. The previously recommended way seems to not work anymore in Windows 11.
Section /o "Start Menu Shortcut"
CreateShortcut "$SMPROGRAMS\${APPNAME}.lnk" "$INSTDIR\${APPNAME}.exe" "" "$INSTDIR\${ICON}"
SectionEnd
This only creates a new shortcut file in the "AppData\Roaming\Microsoft\Windows\Start Menu\Programs" directory. However the shortcut does not automatically appear in the start menu.
The Start Menu in Windows 11 displays only pinned applications in the initial view. There is no documented way for you to pin your own application. It may appear in the recommended section the first time the application is installed, you don't have any control over this.
The user can pin your application by opening the Start Menu and clicking on "All apps" or search for you application, and then pin it...

Android Studio opening error: Unable to Start Correctly (0xc000007b)

I just installed Android.Studio.3.4.1.0.x64 but when I want to open it, I get this error:
The application was unable to start correctly (0xc000007b). Click OK
to close the application.
Why this happens and how can I fix it?
I searched for the error and did these things but didn't work:
Reinstalled the AndroidStudio
Installed dot net framework 4.7.2 developer pack
Installed latest version of DirextX
Restarted my computer each time of above steps
I found the following answer here JetBrains IDE Error on start : The application was unable to start correctly (0xc000007b) from #Amir Karamat, and it worked for me:
in Windows 10 you should follow these steps:
open Settings (just right-click on windows start and choose
settings)
search for 'Windows Defender Settings' or just go to 'Update & Security' > 'Windows Security'
then open 'App & browser control', in the new opened window scroll down to the end to find 'Exploit protection settings', click
that
sort of settings will be shown and you can change the default settings. to create an exception you should click "Program settings"
(which doesn't seem to be a button,but it is!)
click 'add program to customize', in the dialog enter your ide name.exe (you can easily find it by clicking 'open file location' on
shortcut of the application)
in my case the application name was 'phpstorm64.exe'
next you have to look for 'force randomization for images (Mandatory ASLR)' check the 'override system settings' and switch it
off and apply settings.
I'm not sure if it's needed,but turning off 'Randomize memory allocations (Bottom-up ASLR)' stated to work for others

gnome shell 3.16 - how to add reboot butotn

I have a problem with my gnome shell 3.16.1 (on Arch linux)
I want to add a reboot button to the drop down menu at top right corner.
when I press shutdown button - it shutdowns the computer.
(suspend button was added via extensions, but I cannot find an extension for reboot button), how do I add reboot button?
or modify shutdown button so It brings a menu where there is a reboot option?
p.s. When I logged out, shutdown button bring a menu where I can choose to reboot or shutdown a computer. But I guess it because it is a gdm.
Maybe that`s not what you want, but you can simply reboot with pressing top-right corner, shut-down button and restart button. Or simply type reboot in your terminal.
P.S. There is no need in extension for suspending, 'cause all you need is to go to gnome settings and configure suspend on power button as so:

Visual Studio 2012 doesn't open command prompt window after I run the code

I have one problem with Visual Studio 2012 which is when I run the code the command prompt window doesnt open. I think everything is ok with the code that when I debug and run it, appears a light blue bar below saying "Ready" after I debug and run the code but the command window doesnt open. What I should do for the command window to appear?
I encountered a problem where the command window stopped opening while I was debugging. (I had accidentally closed it out with the "X" previously.) Checking the MSDN help page gave me the following:
The Command window is used to execute commands or aliases directly in the Visual Studio integrated development environment (IDE). You can execute both menu commands and commands that do not appear on any menu. To display the Command window, choose Other Windows from the View menu, and select Command Window.
It sounds like your project is not a Console Application. Double check!

Debug InfoPath Form

I want to debug a browser enabled InfoPath form with code.
MSDN says here how to do
But I see that I don't have the option "Open Visual Studio and click Attach to Process on the Tools menu."
Can any one please help.
Visual Studio is required to debug an InfoPath form with code. If you are missing the menu option, try the keyboard shortcut Ctrl+Alt+P.
Right-click on the menu bar and click Customize the add the option back. It's Debug, Attach To Process on the Commands tab.
If Attach To Process is missing then you may be using the copy of Visual Studio that comes with SQL Server. You need to install a "full" version of Visual Studio such as Professional or Team System to get complete debug capabilities.

Resources