- UAC Prompt YES Button gone
- Replies (7)
- automatically have script input yes at windows cmd yes/no prompt
- 2 Answers 2
- Prompt Yes/No always defaults to no and doesn’t let me choose #7747
- Comments
- usanzadunje commented Sep 26, 2020
- jdebp commented Sep 27, 2020
- zadjii-msft commented Sep 29, 2020
- usanzadunje commented Sep 29, 2020 •
- DHowett commented Sep 29, 2020
- zadjii-msft commented Sep 29, 2020
- usanzadunje commented Sep 30, 2020
- usanzadunje commented Oct 2, 2020
- DHowett commented Oct 2, 2020
- jdebp commented Oct 6, 2020
- usanzadunje commented Oct 8, 2020
- usanzadunje commented Oct 8, 2020
- DHowett commented Oct 9, 2020
- usanzadunje commented Oct 9, 2020 •
- Windows prompt yes no
- Asked by:
- General discussion
- All replies
UAC Prompt YES Button gone
Hey I had a Administrator account on my pc and tryd to remove it with
I did this command in CMD with UAC permissions and it worked,
I succesfully removed the account.
The problem is when I try to run a file as UAC there will be a popup like normal but there is only a NO button and not a YES button.
Its not greyed out its just gone.
PLEASE PLEASE PLEASE help me fix this problem because I need UAC really bad and I cant use
net user administrator /active:yes
Because that command needs UAC permissions :/
Replies (7)
With regard to your query, we suggest that you boot the PC into Windows Recovery Environment. Enable the built-in administrator account by using the Command Prompt in Windows Recovery Environment. To do this, please follow the steps below:
- Click on the Windows logo to restart the PC.
- Hold and press the Shift key and select Restart.
- This will boot you into the Windows Recovery Environment.
- Select Troubleshoot.
- Click on Advancedoptions.
- Select CommandPrompt.
- Choose an account to continue.
- Type the following command to enable the built-in administrator:
net user administrator /active:yes - Hit Enter to execute the command.
- Reboot the PC and use the built-in administrator to troubleshoot the issue.
- Press Windows+R key once you boot into the desktop.
- Type the command netplwiz to open User Account settings.
- Select the account where the Yes option in User Account Control is missing.
- Click on Properties>GroupMembership.
- Click on the Administrator radio button.
- Select Apply, and click on OK.
- Reboot the PC for the changes to take effect.
Let us know the result.
41 people found this reply helpful
Was this reply helpful?
Sorry this didn’t help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
With regard to your query, we suggest that you boot the PC into Windows Recovery Environment. Enable the built-in administrator account by using the Command Prompt in Windows Recovery Environment. To do this, please follow the steps below:
- Click on the Windows logo to restart the PC.
- Hold and press the Shift key and select Restart.
- This will boot you into the Windows Recovery Environment.
- Select Troubleshoot.
- Click on Advancedoptions.
- Select CommandPrompt.
- Choose an account to continue.
- Type the following command to enable the built-in administrator:
net user administrator /active:yes - Hit Enter to execute the command.
- Reboot the PC and use the built-in administrator to troubleshoot the issue.
- Press Windows+R key once you boot into the desktop.
- Type the command netplwiz to open User Account settings.
- Select the account where the Yes option in User Account Control is missing.
- Click on Properties>GroupMembership.
- Click on the Administrator radio button.
- Select Apply, and click on OK.
- Reboot the PC for the changes to take effect.
Let us know the result.
I used your steps till step 10.
I rebooted my pc after doing the command-prompt but when I get to the login screen only my non administrator account is here where I have the thing with the no YES button.
What do I have to do now?
19 people found this reply helpful
Was this reply helpful?
Sorry this didn’t help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
automatically have script input yes at windows cmd yes/no prompt
I am interested in being able to automatically have my cmd input Yes at the Yes/No prompt:
I have a really long .cmd file containing a large lists of DOSKEY s I have been making to speed up my computer tasks, and I am adding a few commands I know will be useful in the future based off of this registry book I have been reading in my free time.
Here is the command format:
In this .cmd file I used @echo off at the beginning and end, in order to make that ASCII art picture I like so very much.
Please help me automate this process!
2 Answers 2
You could create a Yes.bat file with something like the following:
(Replace 77 with some sufficiently large number)
It seems OK to have the Yes.bat command output more Yes’s than required by YourCommand.bat. On Windows 7, they seem to be silently discarded.
The above only works with batch files, and, as you pointed out, does not address your question.
Your doskey macro can’t be used in a batch file and, it seems, cannot be at the end of a pipe, so
For your question, I can’t think of a generic answer, but the prompt is coming from the REG DELETE part of the macro. You can get rid of this prompt with a /f (Force) option:
REG DELETE «HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server» /v «fDenyTSConnections» /f
I think that might get you most of the way there.
Prompt Yes/No always defaults to no and doesn’t let me choose #7747
Comments
usanzadunje commented Sep 26, 2020
When i run any commands where i get questions in terminal and they require me to answer yes/no it always defaults to no and doesn’t let me choose yes. I noticed this happens in PS or CMD. How can i change this behavior so i myself can choose Yes or No answer.
Bellow i entered some artisan command and immediately it choose no for me.
The text was updated successfully, but these errors were encountered:
jdebp commented Sep 27, 2020
#7467 is definitely related per the behaviour even if the underlying cause turns out to be totally different.
zadjii-msft commented Sep 29, 2020
Okay I’m not really sure where to get artisan from, but on the surface this looks like a real bug.
@usanzadunje which version of php , and which version of the Windows Terminal are you using?
usanzadunje commented Sep 29, 2020 •
Its laravel feature to generate stuff and more. It really isnt important, i knew how to make command that will prompt question in Laravel so i did it there. But the problem occurs wherever i have prompted question in terminal. I mean there is probably some windows command which does something and then asks . do you really want to do this? and then you can type y/n (yes/no) after which it executes command depending on what you entered. This happens when i use composer, npm. Im just listing this things cause i know them, but im 100% sure it would do the same thing on windows command that does same like i meantioned above.
I am using 7.4 PHP but as said i am pretty sure this isnt problem with php laravel or anything similar since it happens wherever there is command that prompts question.
Terminal version is this 1.3.2651.0 , i think.
@zadjii-msft
DHowett commented Sep 29, 2020
I’ve got a feeling that whatever Windows Console API adapter PHP is using is subject to the same issue described in #3910 (comment).
If you set the setting (globally!) «experimental.input.forceVT»: true , does it start working again?
zadjii-msft commented Sep 29, 2020
I mean, knowing exactly what is causing this is actually quite important, because lots of different commandline applications prompt for input in lots of different ways. choice in cmd will set %errorlevel% , but that’s working perfectly fine for me
So finding the exact broken application is actually quite important
usanzadunje commented Sep 30, 2020
@DHowett «experimental.input.forceVT»: true -> This did not help, problem is still there.
@zadjii-msft Actually when i write what you did it doesnt choose y,n,c for me but i can choose myself and it works.
So this happens to me on laravels php artisan commands.
Before i used everything with no problem on my laptop(it had win 10 as well and everything same as my computer that has this problem) and now it doesnt work as expected. Also its really strange to me that i cannot find single article or post with this problem..
usanzadunje commented Oct 2, 2020
Is there anyone who can help with this problem? I even contacted microsoft agent, and spent 2 days doing what i was told in order to fix this issue, nothing helped.
DHowett commented Oct 2, 2020
You’ve found a bug in our terminal and we need some time to fix it. There does not appear to be a workaround. You tested something we thought would fix it, and it did not. This means that it is a bug that we need to fix.
jdebp commented Oct 6, 2020
The problem here is reproducing the bug. I can and have reproduced #7467, and even if upgrading ssh-keygen avoids the problem, this shows that there’s definitely some kind of I/O that works with the old console server and doesn’t work with the new one. The problem for the Microsoft people is the question: What kind of I/O is it? That’s the first step to fixing the problem: identifying its locus.
Cranking up an entire PHP setup is not the easiest way to replicate a problem. In general, developers fix these problems more quickly if you can provide a simple method of replicating them; not a complex setup involving a PHP toolset that they’ve never even heard of. And the Microsoft people who work on Windows Terminal might not even be PHP developers.
As you can see, this doesn’t happen with choice . So the challenge is for you, or other people with this problem, to find an example of it that does not involve specialist toolsets that the Microsoft people here might never have heard of or be able to set up. Try to find some simple well-known tool exhibiting the problem that isn’t PHP. I’d firstly be checking out ones built with the same run-time library and compiler, in your place.
Personally, I think that #7467 should be open, as clearly there’s something that ssh-keygen used to do that is a problem, and identifying what it was might well be useful.
usanzadunje commented Oct 8, 2020
@DHowett Alright, thanks for info.
@jdebp I mean i asked in several places people to give me some windows cmd or ps command that does anything and then prompts a question, idk something like do you want to continue or are you sure you want to do this or do you really want to.. so it prompts this question and then i need to answer with y/n(yes/no). So i can test if this bug actually happens on windows commands as well. If you know any please provice. I searched internet but i dont know how to actually search for these type of commands.
usanzadunje commented Oct 8, 2020
Okay, by luck i got one of these commands. I used scott hanselman pretty terminal and there is command ‘Install-Module posh-git -Scope CurrentUser’ which promts yes/yes for all etc.. and it actually did not chose for me but let me chose the option. So i hope this helps to narrow down the problem.
DHowett commented Oct 9, 2020
What keyboard layout are you using?
I cannot reproduce this with the *-Module commands in PowerShell, either. ☹️
usanzadunje commented Oct 9, 2020 •
@DHowett English(United States) — US
Doesnt this mean problem has something to do with php. Since when i use laravel(php framework) commands terminal doesnt let me choose answer for prompted questions and when i used this command ‘Install-Module posh-git -Scope CurrentUser’ for PowerShell ,terminal actually work fine and let me choose answer for prompted question (Are yo sure you want to perform this action?).
Windows prompt yes no
This forum is closed. Thank you for your contributions.
Asked by:
General discussion
I came across this very cute little script which offers the user a Yes/No dialog box:
All replies
Do you mean this — Net Framework compatible method:
[System.Reflection.Assembly]::LoadWithPartialName(«Microsoft.VisualBasic»)
[Microsoft.VisualBasic.Interaction]::MsgBox(«Do you agree?»,’YesNoCancel,Question’, «Respond please»)
The plus is you do not need to decode the return because it returns strings Yes/No/Cancel.
[Microsoft.VisualBasic.Interaction]::InputBox(«Do you agree?»,’YesNoCancel,Question’, «Respond please»)
[Microsoft.VisualBasic.Interaction]::
[Microsoft.VisualBasic.Interaction]| gm -static
get ini file sections
[Microsoft.VisualBasic.Interaction]::GetAllSettings(‘Myapp’,’section1′)
I almost forgot one of teh most important of the VB support methods.
[Microsoft.VisualBasic.Strings]::StrConv(«hello from the inside of vb»,’ProperCase’)
Thanks, jv, I had no idea there was a ‘VisualBasic’ .NET class. VERY cool.
Although it’s a pity that Powershell is so limited when it comes to graphical user input/output.
Although it’s a pity that Powershell is so limited when it comes to graphical user input/output.
«Surely You Must Be Joking, Mr. Teddy»
Where is this limit? We can use Windows Forms, XAML, HTA, IE. What is missing?
Yes, I realise the huge power and potential of Powershell, with it’s access to the .NET framework.
I am referring to built-in, native Powershell graphical user I/O, such as Out-GridView, and Read-Host. It would be nice to have a cmdlet like Show-MessageBox for example. I’m just dreaming.
And I can hear what you are going to say next: Build it yourself with a function.
«Surely You Must Be Joking, Mr. Teddy»
Did you use the
[Microsoft.VisualBasic.Strings]::StrConv(«surely you must be joking, mr. teddy»,’ProperCase’)
. to construct this sentence? It’s not like you to have such a ‘Proper’ keyboard 🙂
I am referring to built-in, native Powershell graphical user I/O, such as Out-GridView, and Read-Host. It would be nice to have a cmdlet like Show-MessageBox for example. I’m just dreaming.
PowerShell was purposely built without a GUI because it was intended primarily for administration. GUIs are a useful extension but were left out to reduce the complexity of teh shell.
All shells lack fundamental GUI capability. There are a few extended shells that have native support for a GUI. Consider VBScript. It is either popup or Commandline. If you want other you need to be explicit.(msgbox /popup)
A message box function can be easily added but has probably been considered as unnecessary in the foundation product.
Due to the cry for an editor we have the ISE. It works but, in my opionion, is a hack at a solution that the PoSH team will forever regret. It is a distraction from the fundamental product. It is a good product for third party developers which have now created a dozen better editor/debugger programs.
It’s not like you to have such a ‘Proper’ keyboard 🙂
Due to the cry for an editor we have the ISE. It works but, in my opionion, is a hack at a solution that the PoSH team will forever regret. It is a distraction from the fundamental product. It is a good product for third party developers which have now created a dozen better editor/debugger programs.
As a free tool, I think the ISE isn’t bad. But compared to other free tools, like Visual Studio Express, it’s terrible.
I use the ISE all the time, but I wish for something with better debugging capabilities. Any suggestions?
PS: That book looks interesting, I’ll give it a read.
Put this in your profile.
[System.Reflection.Assembly]::LoadWithPartialName(«System.Windows.Forms»)
$xlr8r = [type]::gettype(«System.Management.Automation.TypeAccelerators»)
$xlr8r::Add(‘msgbox’,[System.Windows.Forms.MessageBox])
[msgbox]::show(«hello»,’Its a Happy Day’,’YesNoCancel’)
If you want a very good debugger look into Sapien PromalScript. I have been using it for years for all scripting languages. It is extremely good and very mature.
Implemented as a function:
Is sapein Primal forms any good if you want to build a GUI to run powershell commands?
Is sapein Primal forms any good if you want to build a GUI to run powershell commands?
Ok thank you, I’m looking at getting a copy of primal forms or maybe the bundle. I’m working on a script that will audit servers for various settings both hardware and software and JRV has helped me with a few commands J What I’d like to do is build a GUI / App that will allow you to enter a server name or select from a list / AD and then select what you’d like to run the check against. So I’ll need multiple tabs for different categories say hardware, software, networking…etc with radio buttons in each to be able to make the selections that will be present under each category. Then I’ll like the means to output this in csv, html or email etc. I would also like a section where you can select items to make corrections or changes to a server or servers. So I’m sure for some it is straight forward but for me it will be quite challenging however I’m hoping that I can use some of the commands in the script and then build on it. My only reservation is that Primal Forms don’t seem to issue a guide on how to do such things and for a newbie that’s not good. I know they have a forum and blogs but a guide or GUI templates /builder would be a good place to start for someone like me.
This is my Show-MsgBox function:
Did you know, Teddy, that you can use selection lists as parameters in Advanced Functions. This allows you to define a list of valid strings as a comma seperated list and the argument will be validated against that list. This is to prevent you from having to do all of those bulky switch statements.