jaybaz [MS] WebLogWe believe in nothing.Controlling Virtual Server through Microsoft PowerShell- January 22, 2007 In his post by the same name, Ben describe a series of steps required in order to manipulate Virtual Server from PowerShell. I'm still a PowerShell novice, so I decided to use this problem as an opportunity to see if I could make things a little easier. The reason it's hard is that you have to make a call to a native Win32 API, which is not accessible from PowerShell directly. Ben's solution includes a peice of C code that makes this call via interop, and then you have to compile...http://blogs.msdn.com/jaybaz_ms/archive/2007/01/22/controlling-virtual-server-through-micr... export environment variables from CMD to PowerShell- January 18, 2007 If you want to use PowerShell, but already have a CMD script that you want to keep, and that CMD script sets environment variables, you're in a pickle. Now I like pickles of all kinds, but Lee can help you get out of this one, with a script that exports the env. vars. back to the PS host. It's all in his post on entitled Nothing solves everything PowerShell and other technologies.http://blogs.msdn.com/jaybaz_ms/archive/2007/01/17/export-environment-variables-from-cmd-t... |