Open a Command/PowerShell Prompt instance without default credentials [closed] - windows

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I want to open a Command/PowerShell Prompt in Windows, without using the default credentials.
Is there any way to do that?

If I understood correctly your question, there's the runas command which runs a program with the specified user.
If you need NT AUTHORITY\SYSTEM (System) privileges, psexec -s is what you need.
Another way (harder) would be creating a scheduled task with schtasks specifying the user with the switch /ru, running it and finally deleting it once the process is launched.

Related

How to install application Updates on multiple windows machine using any tool or script [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I have around 100 windows machine(VMs), All the machines have few updates for chrome , notepad/notepad++ , Firefox ,Jenkins which have not been installed from long time, Is there a way to install updates in all the machines without going to each application specifically and updating.
can we log into each machine and execute any command so that all the update for applications is installed?
Basically want to trigger auto-update in all the windows machines.
You will need to put a lot of effort, but it's doable.
You need to know how to update each application via command line. And when you have all the commands. And you can do updates on single Windows instance. You can use Enter-PSsession or Invoke-Command (for HyperV guest) / Invoke-VMScript (for ESX guest)
https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/powershell-direct
https://developer.vmware.com/docs/powercli/latest/vmware.vimautomation.core/commands/invoke-vmscript/#Default

Forever vs. Node-Windows [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Does Forever create a Windows Service?
I have Forever running Node on a Windows Server, but when I log out of my account on the server, the Forever process terminates. I was under the impression that a Forever daemon is the same as a Windows Service, which would continue to run after user log out. It seems Node-Windows will create a Windows Service to prevent this from happening.
Forever should work fine, but the user running it has to be active. Just run it as a service account rather than as a logon user in Windows and you should be fine.

How does the Windows shortcut know about renaming the file to which it refers? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
How does the Windows shortcut know about renaming the file to which it refers? How to intercept the message when the file was renamed? Is there a corresponding function Win32 API for this?
The shortcut causes the target file's NTFS attributes to be updated with an ObjectID, this is the value that the shortcut actually "points" to.
Resolving them on-demand is done by the distributed link tracking service.
http://msdn.microsoft.com/en-gb/library/windows/desktop/aa363997(v=vs.85).aspx
To detect file name changes and the like you can use FindFirstChangeNotification. I've not worked with shortcuts

Crontab schedule visualization tool for Windows [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
We have a crontab scheduler running on our Unix server. Currently when someone adds a job to the crontab, he has to add the job to an outlook calendar manually.
However, this outlook calendar has lost its functionality, partly due to old jobs not being removed, partly due to number of jobs, partly due to the lack of visualisation options.
I've found this question is-there-a-tool-that-allows-visualization-of-crontab-entries
but I'm looking for a tool that allows me to load in the crontab schedule file and visualize it a Windows environement.
Does anyone have a good tool for this or an alternative solution ?

Java library/API to help run windows commands [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Is there a Java library/API available to interact with Windows OS, like executing commands on the command prompt and returning the output back to the program?
You can use java.lang.Runtime.exec() to do it, but read this first.
Use the ProcessBuilder, which is available starting from Java 1.5!
It has the nice ability to let you redirect the error stream which makes you only have to cope with one InputStream to read from.
Good article here: Runtime.exec() and the API is here: link text

Resources