{"id":689,"date":"2008-09-27T16:07:01","date_gmt":"2008-09-28T00:07:01","guid":{"rendered":"http:\/\/www.sapien.com\/blog\/2008\/09\/27\/new-activexposh-version\/"},"modified":"2008-09-27T16:07:01","modified_gmt":"2008-09-28T00:07:01","slug":"new-activexposh-version","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2008\/09\/27\/new-activexposh-version\/","title":{"rendered":"New ActiveXPosh version"},"content":{"rendered":"<p>A new version of ActiveXPosh was uploaded to our server.<\/p>\n<p>You can download it from <a title=\"http:\/\/www.primalscript.com\/Free_Tools\/index.asp\" href=\"http:\/\/www.primalscript.com\/Free_Tools\/index.asp\">http:\/\/www.primalscript.com\/Free_Tools\/index.asp<\/a><\/p>\n<p>Aside from some minor fixes, it includes a new method on the interface called &#8216;GetValue&#8217;. With that function you can easily get the string value of some variable or property without going through the output buffer.<\/p>\n<p>An example would be <\/p>\n<p>pshome = ActiveXPosh.GetValue(&#8220;$PSHOME&#8221;)<\/p>\n<p>or<\/p>\n<p>Status = ActiveXPosh.GetValue(&#8220;(Get-Service UPS).Status&#8221;)<br \/>if(Status = &#8220;Stopped&#8221;) then<br \/>&nbsp;&nbsp; WScript.Echo &#8220;UPS Service is stopped&#8221;<br \/>else<br \/>&nbsp;&nbsp; WScript.Echo &#8220;UPS Service is &#8221; &amp; Status<br \/>end If <\/p>\n<p>We also included the ComReg.exe tool with this package.<br \/>ComReg is a sample application from the Microsoft .NET SDK and it does something RegAsm does not: It registers an interop COM object for DCOM. <\/p>\n<p>So by running Comreg \/c activeXPosh.dll you can see ActiveXPosh in your DCOMCFNG tool and configure it so you can issue PowerShell commands to remote machines. <\/p>\n<p>If you already have DCOM set up this should be a snap to add. If you do not have DCOM experience, please aware that this is not for the faint of heart. The security settings alone take quite some time to setup. <\/p>\n<p>&nbsp;<\/p>\n<div class=\"wlWriterSmartContent\" id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:485bb222-3dec-44a5-ba5a-4512bc41ac9f\" style=\"padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px\">Technorati Tags: <a href=\"http:\/\/technorati.com\/tags\/VBScript\" rel=\"tag\">VBScript<\/a>,<a href=\"http:\/\/technorati.com\/tags\/PowerShell\" rel=\"tag\">PowerShell<\/a>,<a href=\"http:\/\/technorati.com\/tags\/ActiveXPosh\" rel=\"tag\">ActiveXPosh<\/a>,<a href=\"http:\/\/technorati.com\/tags\/PrimalScript\" rel=\"tag\">PrimalScript<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>A new version of ActiveXPosh was uploaded to our server. You can download it from http:\/\/www.primalscript.com\/Free_Tools\/index.asp Aside from some minor fixes, it includes a new method on the interface called &#8216;GetValue&#8217;. With that function you can easily get the string value of some variable or property without going through the output buffer. An example would [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[283,24,25,26],"tags":[],"class_list":["post-689","post","type-post","status-publish","format-standard","hentry","category-howto","category-vbscript","category-windows-powershell","category-windows-scripting-news"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/689","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=689"}],"version-history":[{"count":0,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/689\/revisions"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=689"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=689"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}