is it possible to host windows powershell on a .netcore app - powershell

i was wondering if it is possible to host Windows PowerShell on a .NetCore application assuming that i'm gonna use it on Windows OS, but couldn't find an answer for that.
anyone knows if there's a way to do that?

No it is not possible.
Windows PowerShell only runs on Windows, PowerShell Core runs on Windows, Mac OS and Linux.
You'll find more information about that in this article: https://www.ghacks.net/2018/01/12/powershell-vs-powershell-core-what-you-need-to-know/

Related

Running PyGears framework on Windows

I just started using pyGears and I find it easier working on Windows. I was wondering is it possible to run it on Windows or it's only Linux based?
It can maybe be run on Windows but I wouldn't count on it for now. PyGears is natively supporting Linux (Ubuntu) so if you have a choice I would advise switching to Ubuntu.
There is a future plan for supporting PyGears for Windows in a full manner, but at the moment that's not the priority.

How can I get an interactive login with Windows 10 IoT Core running on a Raspberry Pi?

I just installed Windows 10 onto a Raspberry Pi. It started up fine and I can connect (using PowerShell) from my laptop.
I can connect a keyboard and mouse to the Pi but I can't get a login window. All that I can do is change the timezone and reboot. Is there a way to login directly to the device?
I don't need fancy graphical windows. A command line session (à la Linux or PowerShell) would be fine.
If it isn't possible with the core install, does anyone know if Microsoft, or a third party provider, plans to add this feature?
No there is not a command line presented on the local display. The only way to run commands on Win10 IoT is to use PowerShell as described by Keith in this thread or you can use SSH or Telnet. You can interact with applications run on the device via the local display, keyboard and mouse.
Mark Radbourne [MSFT]
You can use PowerShell remoting from another Windows box to do stuff on Windows 10 IoT Core. I've tested this procedure on Windows 10 PowerShell, works fine. Be sure to follow the step to "Remove-Module PSReadline". I was trying to use setcomputername to rename my RPi2 and the command would fail with a command not found error. Once I removed the PSReadline module, the command started working. Hopefully Jason gets this fixed as PSReadline is just too valuable to remove for long. :-)

Can I install WIndows Management Framework 3 on WS 2008 r2 using PowerShell

Can I use PowerShell to script an install of this? I already use module PSWindowsUpdate and would like to install KB2506143-x86 but it is not available as an update in get-WUInstall -KBArticleID. Need to run this on hundreds of machines and would like to avoid manually updating each from a browser.
Many thanks,
I think this is not possible due to
Close all Windows PowerShell windows.
paragraph in install instructions.
Microsoft makes a supported product to correctly deal with your problem, why are you trying to solve it with a homebrewed script?

Do all script users need Powershell installed?

Looking to use Powershell for writing some scripts. The concern is, do all users of the script need Powershell installed on their computer in order to have the script execute properly? Is the behavior different for Windows 7 vs. XP vs. 2k etc? I understand powershell is included in 8, so that's not a concern.
PowerShell is also included in Windows 7. PowerShell might be included in XP not sure on that. I'm pretty sure 2k does not have PowerShell. Yes, if you want to run a PowerShell script you will need to have PowerShell installed. Just like you would need Python installed if you want to run a Python script.
I know that Win 7 comes with PS version 2.0 by default. Not sure on XP. The current version is PS is 3.0 it comes with the Windows Management Framework (WMF) 3.0.
During December 2012 Microsoft had the WMF 3.0 deployed as an update but recalled it a couple of weeks later because there was some compatibly errors with other stuff.
I'm using PS 3.0 and updating all my computers to PS 3.0. PS add new stuff that I want to learn.

Run a program on Mac OS host from Windows running as parallels guest

On a MacBook Pro running Windows 7 in Parallels 7, I need to run a Unix Executable File on the Mac side via a command line invocation on the Windows side. In Windows Explorer, I can use Open on Mac, but I need a way to do this via a batch file or anything else that can be expressed on a command line. I was hoping that Parallels Tools might have a command that can do this, but I can't find anything.
This seems like it should be pretty straightforward, but my searches have turned up nothing.
I also tried creating an alias on the Mac side, which I added to my Applications folder. I was hoping that it would appear in Start > All Programs > Parallels Shared Applications, which might allow me to access it with a batch file. However, I don't see it. I'm not sure what it takes to add new entries to Parallels Shared Applications. Maybe a reboot would do it, but I have not tried that yet.
Thanks for any advice.
It seems like the Platypus app might be able to help with this. It wraps a shell script into a Mac App. Unfortunately I can't get Parallels to provide access to the Platypus generated app the same way it provides access to the other Mac apps.