Azure Cloud Shell w/Windows Terminal limitations? - terminal

Where can I find the limitations/differences between running Azure Cloud Shell from the browser and Windows Terminal? For example, the "code xxx" command works differently when ran in the browser (opens up the editor) and Terminal (does nothing). Or am I looking at this the wrong way?

#Ziv Rivkis - Apologies for delay in getting back to this thread. Post validation with our internal team it has been called out that we have Cloud Shell entry point limitation, which has been documented here now.
Cloud Shell entry points beside the Azure portal, such as Visual
Studio Code & Windows Terminal, do not support the use of commands
that modify UX components in Cloud Shell, such as Code.
Hope the above information helps, please let us know if you have any further queries. Thank you

Related

How to connect google cloud shell to termux app using ssh?

I am using google-cloud-shell which is basically a shell that allows us to use online cloud shell (for developing apps etc.) and provides 5gb of free storage (only for home directory).
It is a very cool thing because i don't have PC but google-cloud-shell allows me to run gradle, java, python, etc. without any issues except one issue and i.e typing response. Although it is a very good platform for learning coding but typing is insane.
If i type a character it takes about a second to be displayed on screen and it really really sucks. Now what i want is to connect this shell to termux (which is an app just like terminal in linux) with ssh or any other thing that can connect it.
NOTE: I am not using paid version of google-cloud-storage I am just using it cloud shell which is free to use.
You can use the following gcloud command to SSH into your cloud-shell from local terminal.
gcloud alpha cloud-shell ssh
You can find more details here

How to run a Metro-App from PowerShell on Windows 8?

Related to another question on Superuser, I'm trying to run a Metro based application from the command-line. According to a comment on my superuser question, I could maybe find an answear on a PowerShell command or script. I already tried but found anything on any internet reference about PowerShell and Windows 8...
So, there is some specific way/command to call and run a Metro-style application from a PowerShell command on Windows 8?
There is no direct way to do this but there are a couple indirect ways.
vsdebuglaunchnotify, which comes with Visual Studio, can be called from PowerShell.
You could create your own exe that uses IApplicationActivationManager.
If the app is associated with any file types you could launch an associated file.
More information is covered in this thread on MSDN:
http://social.msdn.microsoft.com/Forums/en-US/windowsgeneraldevelopmentissues/thread/8d1b0861-5903-4289-8cb8-541ddaa012fb
Here's a blog post by Powertoe that uses the IApplicationActivationManager way of doing it:
http://powertoe.wordpress.com/2012/11/02/get-a-list-of-metro-apps-and-launch-them-in-windows-8-using-powershell/
He provides code here http://poshcode.org/3740 that provides a Start-MetroApp commandlet for powershell.
Alternatively: I think some Metro Apps have protocol handlers, so that you can talk to them via a URI (e.g. "appname:dosomething") but I'm not sure how widely used this is.

Run Software as Exclusive Shell Application?

This has previously been asked (2001) but without a solution.
http://forums.techguy.org/windows-xp/58217-exclusive-shell-applications.html
In BPM Studio you have the option to run the software as an "Exclusive Shell Application". Immediately after logging into Windows, BPM Studio appears and nothing else Windows-related (taskbar, desktop icons etc) loads. On exiting BPM, the user is returned to the Windows login screen.
Does anyone know how this is achieved? I want to do something similar for some software i'm working on. I've done a lot of research and can't find any leads!
Thanks
The key in the registry is called:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon -> Shell
which should be set to explorer.exe. BPM Studio probably changed this key.
This sounds very much like a custom shell.
All the MSDN documentation that I could find seems to concentrate on embedded versions of Windows where replacing the shell is clearly very common. However, I believe that the principles are much the same for desktop Windows.

execute program as lsa

I'm developing a program in windows (something like client & server) and I want to run server as LSA(local system account).but I don't know how?
Note: I'm writing my program in VB6 but I'm familiar with C#,C++ and C. So if your code is in any of these languages, I would be appreciate putting your code here.
There are a few options that come to mind. This article covers some of them.
Other things you could do is to add your app to the system startup process (via the MSCONFIG.exe app - "Start -> Run -> msconfig -> Startup" tab, or something like that).
Another way may be to setup your app so it can be installed as a service. You can configure any service to run under any arbitrary account on the machine, or via an account on your domain, if you're on a domain.
Another resource that looks like it might work for you is this article, which describes in more specifics, how to create a service from a VB6 app.

Managing a remote Windows Service

As part of my app, my users install a Window Service (msi file written in C#) that uploads data to me. These Windows servers are usually behind all kinds of firewalls etc. and run by IT staff so it's difficult to get in touch with anyone to debug.
What can I put inside my application that would make it easier to figure out things? I'm not looking to do anything that would be considered "shady" but here are some ideas I've thought:
Open log files that are relevant to me in a separate thread and stream it back up to the server
Setup some kind of reverse tunnel (not sure if there is a sane shell environment on Windows that I can connect to)
Any ideas or thoughts would be appreciated.
The author of the logging framework we use (the object guy's) has a service that might be useful for you.
You can debug .NET and native code through remote debugger with Visual Studio, see the post of John Robbins about it : http://www.wintellect.com/CS/blogs/jrobbins/archive/2010/06/15/vs-remote-debugging-across-workgroups-or-domains.aspx

Resources