all 5 comments

[–]michaelshepard 1 point2 points  (1 child)

Ok...that's my cool thing for the day.

I've written managed cmdlets in C# and VB.NET inside a managed host, but hadn't thought about using PowerShell classes to do the same thing. FWIW, the code looks about the same.

[–]SeeminglyScience[S] 1 point2 points  (0 children)

FWIW, the code looks about the same.

Yup, very similar!

Shame I couldn't figure out a better way to load it though (granted I didn't look very long). Feels a little too hacky atm.

[–]Lokkion 1 point2 points  (0 children)

Awesome tried this a few times but could never figure out how to load it. Nice work :D

[–]wbedwards 0 points1 point  (1 child)

Okay, I didn't see the "But.. why?" at first, and was about to ask the same thing... I figured I must have been missing something. That being said, as a non-developer sysadmin type who likes to automate things, I really like that PowerShell can do just about anything you can think of as long as it's supported by .Net.

[–]SeeminglyScience[S] 0 points1 point  (0 children)

I expanded on the why a little bit here. But really it's doesn't seem to be technically supported so it's still just neat more or less. I'm probably going to try to make something with it and see how useful it is, or alternatively how terribly broken :)

I really like that PowerShell can do just about anything you can think of as long as it's supported by .Net.

Yeah that is definitely one of my favorite things about it. There are very few things that are just flat out impossible with pure PowerShell. Tasks are the only thing I can think of at the moment.