| Shane 的个人资料Knowledge Is Power(shell...照片日志列表 | 帮助 |
|
12月24日 Still Missing From Powershell ISEOn TweetGrid I noticed Jeffrey Snover ask someone to blog about what they would have liked to see in the latest drop of the Powershell ISE. He didn't ask me, but I'll blog about it anyway. ;) Wishlist:
-Shane 12月23日 The Power of ParameterSetsThis is one of the many features that sold me on Powershell when I started looking into the language. This enables admins or devs to produce some really polished stuff and give the end user a nice experience.
-Shane
12月22日 nSoftware Powershell Server V2In the previous blog, we had some issues with CTP1 and remote runspace stability. While looking for alternatives, I remembered nSoftware’s Powershell Server. After reading the info on their website, I decided to download it and try it out. First off. NetCmdlets CANNOT create runspaces on remote machines without Powershell Server. The website is a bit misleading since they list the Cmdlets to connect to a SSH Runspace but if the SSH Runspace service is not running on the remote machine, you get no joy. I will give them the fact that they do say in their New-SSHRunspace description that you need Powershell Server. Now the install. Installation was a snap for both NetCmdlets and Powershell Server. Powershell Server has a nice option to run as a service so it’s waiting for connections at startup. I tried to set the service to interact with the desktop but the service won’t start once that option is checked. Was worth a try. I noticed some differences between the two products in that they return two different object types when using the runspaces depending on which Cmdlets are used. New-SSHRunspace is one Cmdlet. New-PowershellServerRunspace is the other Cmdlet. The first type of runspace (SSHRunspace) seems to return objects as their own homegrown ShellObject. The next runspace type(PowershellServer) is more familiar to us as it returns the process objects as it normally would in the Powershell Host. As you can see, there are subtle differences between the two runspace Cmdlets but overall, this product is able to do everything I’ve thrown at it thus far. More testing to come. -Shane 12月21日 WinRS and Early BitsPlayed with WinRS and Powershell today. Got most of it working but had some problems with authentication and remote machines. I thought I was giving it the right syntax but it didn't agree with me. Gonna have to play with it some more soon.
Ok. Now the reason I am playing with WinRS. At work we decided to give Powershell V2 CTP1 a test drive. Well, that test drive turned into "Wow, this thing is so cool we should create a framework around it!". Did I not learn anything from Episode 21 of the Powerscripting Podcast and banking on early bits? Totally the wrong move and now there is a small issue that has come up that is keeping our automation framework from being rock solid. For some reason Powershell crashes randomly when executing a remote command. Not sure yet which command(s) but I think it's something to do with the Write-Host Cmdlet and it's really the only thing holding up my project right now. Note to self: Listen to Jeffrey when he speaks.
-Shane 12月17日 First BlogThis will be my first attempt at this blog stuff. I read them alot and I find them very useful at times so I thought I might share my thoughts in hopes of helping someone else out there.
-Shane |
|
|