I have a question. I was poking around the security section of Windows 10, and saw the PIN option. Is there a way to set up a PIN using Command Prompt Admin? If so, can you please provide the command for it?
You can only reset a PIN code with that command:
icacls C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\Ngc /T /Q /C /RESET
To set a normal password is possible with:
net user pcname P#ssw0rd1
To change the PIN through CMD or Powershell isn't possible, yet with simple commands.
Hope that answered your question! :)
Related
Here is the bug in gitbash,thanks for your reply.
$ gh auth login
? What account do you want to log into? [Use arrows to move, type to filter]
> GitHub.com
GitHub Enterprise Server
could not prompt: Incorrect function.
You appear to be running in MinTTY without pseudo terminal support.
To learn about workarounds for this error, run: gh help mintty
YES! I solve the bug accidentally. Sometimes we don't need to figure out what the bug tips want us to do like this bug tips.
Firstly,you should find where your github cli install.
Then,open the terminal in this directory.You can download github cli in here.
Finally,you can find you can get want you want when you input gh auth login
I need to have only 1 window, instead of many. I currently use Visual Studio Code, is there a way to integrate the commands into the terminal of VSC? It's very annoying to have so many processes open with nodejs
Thanks
If you go to this link: How to hide node cmd windows created by "pm2 start"
there is an answer that explains how, but for the sake of it, you just need to add in the settings:
//Terminal Configurations
//PowerShell Windows
//"terminal.integrated.shell.windows": "C:\\WINDOWS\\system32\\cmd.exe",
//GIT Bash Configuration
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
Please +1 if it helps. Thanks :)
I'm trying to work with dbisql (Sybase SqlAnywhere client) under CYGWIN but the database prompt (shell) is not displayed on screen and then the client exists.
This is how I'm trying to connect
sqlanywhere#win2012r2: dbisql -c "UID=dba;PWD=sql;DBN=demo;host=10.100.49.124" -nogui
Does anyone know how to solve this one?
Thanks
A simpler solution is to explicitly use 'dbisql.com' rather than 'dbisql', which will invoke 'dbisql.exe' which doesn't work well under Cygwin.
Adding cmd /c before the dbisql starting the client did the trick
sqlanywhere#win2012r2: dbisql -c "UID=dba;PWD=sql;DBN=demo;host=10.100.49.124" -nogui select from temptbl
sqlanywhere#win2012r2: cmd /c dbisql -c "UID=dba;PWD=sql;DBN=demo;host=10.100.49.124" -nogui
(DBA)> quit
sqlanywhere#win2012r2:
I am using winSCP GUI to connect to linux terminal and then copy the files and other stuff.
Now i have some scripts on the UNIX server,I am connected but how to run the script from the Win SCP.
what basically is needed is
sh scriptname.sh through the WinSCP.Please let me know if anyone else found out how to do that.AS loging into putty and running the command is time taking for me.
WinSCP Custom Command option tried to click on Execute,but the error pops up like no such directory.
Tried google but to the point information is not coming up.
Try this
sh "!"
OR
First of all executing commands from WinSCP can be tricky and if you are able to run few commands also,there are restrictions which you can not do fro WinSCP and should have to ultimately take help of PUTTY.
Here is the link Integrate WinSCP with Putty which will help you integrate your WinSCP to Putty,so that when you open any server through WinSCP putty will automatically connect without even asking for the password.And then you can run you command,hope that wound be of any trouble to you.
Remember you can store the connection details in WinSCP and in just one click it will connect to the server on SCP and also on Putty.
You can define your own custom command by right-clicking, selecting Custom commands and selecting Customize. Then click "Add", enter a description, e.g. Run and specifying a custom command. Try sh "!" to start with - that works ok for me, if you still get errors post your output back here. The quotes are important - only the exclamation should be quoted.
Right click the script > Custom Commands > Execute
Hope this helps.
To execute an ad-hoc shell command in WinSCP, use the Console window:
To execute the shell script selected in a file panel, create a custom command like:
sh "!"
This is actually, what the pre-defined custom command Execute (almost) does.
I'm aware that you claim that this does not work. But it should work in general. If you are having problems, please tell us details (exact error message, screenshot, anything)
You can have WinSCP open PuTTY terminal client and execute the commands there.
With some setup you can even open the PuTTY in the same directory as you have opened in WinSCP file panel.
Particularly for long-running commands/scripts, you can create a local custom command that runs the script via Plink:
"C:\Program Files (x86)\PuTTY\plink.exe" -ssh !U#!# "!/!"
Check the Use remote files option. Do not forget to select the Local command.
You can also pass the command to PuTTY to using similar method as used for Opening PuTTY in the same directory.
Linux has the command notify-send for sending user notifications to the desktop manager. (In many environments, these show up as pop-ups in the corner of the screen, along with low battery warnings and other system messages.) I use it in monitoring and back-up scripts.
Cygwin doesn't seem to have lib-notify, so is there a Windows equivalent for this command? Web searching has lead me to articles about running batch files from Windows' system tray/notification area, or attempts to clean the system tray up from a batch file, but I haven't found a way to produce unobtrusive user messages from background processes.
You can try notifu. It's a kind of command line notification app, so you can use it in cygwin.
Usage: notifu /p title /m message
Windows has had this feature since the NT3.51 days that model after the wall(1) command in UNIX. For Pre vista,7,8 systems the command is net send:
net send * "Message"
On newer and professional versions it is msg.exe:
msg "%username%" "Hello World"
msg * "Message"
Samba even has support for the older notification protocol:
echo "Hello world" | smbclient -NM HomePC
While for the new post Vista versions one needs to use PsExec/winexe. See the Ubuntu:SE Article on message to windows 7 for more details.
Try this (for Windows 10+):
https://github.com/Windos/BurntToast
Install via Powershell (as administrator)
Install-Module -Name BurntToast
New-BTAppId
Import-Module BurntToast
New-BurntToastNotification
You can run Powershell commands inside Cygwin by doing powershell.exe -Command 'New-BurntToastNotification'.