Run script as another user windows
Which of the following retains the information it's storing when the system power is turned off? Submit ». Get answers from your peers along with millions of IT pros who visit Spiceworks. Hi all, I work in an environment where we have standard accounts and elevated accounts. Our elevated accounts allow us to perform duties in Exchange, AD, etc Here is an example of one of the scripts I use: Powershell.
Best Answer. Verify your account to enable IT peers to see that you are a professional. View this "Best Answer" in the replies below ». Pure Capsaicin. Neally This person is a verified professional. PowerShell expert. You could use 'invoke-command' and provide different credentials Powershell. MilesB This person is a verified professional. Thai Pepper. Jrx This person is a verified professional. I can right click on Powershell and run it as a different user, then paste the script there.
Submit ». Ghost Chili. Verify your account to enable IT peers to see that you are a professional. You can write it in AutoIt and compile it as an exe. Thai Pepper. RunAsSPC is another option. Zach Little This person is a verified professional. Not found any simple solution. Alternatively, you can run it anytime in the context menu of that task.
Beside the simple configuration, another benefit is that the script execution can be logged in the History. Open the Windows PowerShell. Note: The straight forward process would be to open a new PowerShell window as that user with the command " Start-Process powershell. Unfortunately, there seems to be a bug in Windows 10 and the new PowerShell window freezes or reacts only after some waiting time and very slowly, you cannot type anything.
See issues at superuser. Quick access. Search related threads. Remove From My Forums. Answered by:. Archived Forums. The Official Scripting Guys Forum! If your answer is "yes," you know what to do. Dive in and help somebody! If your answer is "no," welcome to our fun little world! We'd recommend that you first head over to the Script Center, get your feet wet, and then come back to either ask or answer questions. We can't be everywhere at once we know—shocking! The Microsoft Scripting Guys 8 2.
Sign in to vote. Thank you, Rich. Tuesday, July 2, PM. Wednesday, July 3, PM.
0コメント