{"id":69,"date":"2007-02-16T21:41:40","date_gmt":"2007-02-17T05:41:40","guid":{"rendered":"http:\/\/testblog.sapien.com\/index.php\/2007\/02\/16\/primaltoys-for-powershell\/"},"modified":"2007-02-16T21:41:40","modified_gmt":"2007-02-17T05:41:40","slug":"primaltoys-for-powershell","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2007\/02\/16\/primaltoys-for-powershell\/","title":{"rendered":"PrimalToys for PowerShell"},"content":{"rendered":"<p>One of the things that ships with every copy of PrimalScript is a collection of &#8220;PrimalToys&#8221; that the development team created. These are COM objects which help full a number of useful functions, like displaying file dialog boxes or pinging.<\/p>\n<p>I&#8217;ve borrowed the &#8220;PrimalToys&#8221; name for an unofficial project I&#8217;m calling &#8220;PrimalToys for Windows PowerShell.&#8221; It&#8217;s basically a sanp-in for PowerShell that provides a number of new cmdlets:<\/p>\n<p>Read-MsgBox<br \/>Read-InputBox<br \/>Ping-Computer<br \/>Get-SqlDataReader<br \/>Get-OleDbDataReader<br \/>Invoke-SqlQuery<br \/>Invoke-OleDbQuery<br \/>Test-NetConnection<br \/>Get-UserName<br \/>Get-UserDomain<br \/>Get-ComputerName<br \/>Test-LocalGroupMembership<br \/>Get-LocalTime<br \/>Get-GMTTime<br \/>Get-OSName<br \/>Get-OSPlatform<br \/>Get-OSVersion<br \/>Get-TotalPhysicalMemory<br \/>Get-TotalVirtualMemory<br \/>Get-AvailablePhysicalMemory<br \/>Get-AvailableVirtualMemory<br \/>Get-PrimalToysVersion<br \/>Write-Speech<\/p>\n<p>A Word doc is included with instructions on registering and loading the snap-in, and with information on the various cmdlets. This tool will eventually be available from <a href=\"http:\/\/www.primalscript.com\/freetools\">www.primalscript.com\/freetools<\/a>; however, right now I&#8217;m simply soliciting feedback on this alpha version. <strong>Please comment on these tools in the PowerShell forums on ScriptingAnswers.com &#8211; not here in the blog.<\/strong> That makes it a lot easier for me to reply and carry on a conversation. And if you want to see this developed further, <em>you&#8217;d better comment. <\/em>Encouragement is the spice of&#8230; er&#8230; getting stuff done.<\/p>\n<p>The snap-in is available for download at <a href=\"http:\/\/www.scriptinganswers.com\/download\/toys.zip\">www.scriptinganswers.com\/download\/toys.zip<\/a>. Note that this is UNSUPPORTED &#8211; please <strong>do not post technical support questions in the blog comments<\/strong> as they&#8217;ll be ignored; use the PowerShell Forum on ScriptingAnswers.com to post questions.<\/p>\n<p>This is considered &#8220;alpha-quality&#8221; code, so it may not be fully functional. Source code is not currently available; it&#8217;s undetermined whether source code will be made available for this project or not. Kinda depends on how things go, really.<\/p>\n<p>So take your time, install this, give it a whirl, and let me know what you think. And, BTW, I would <em>really<\/em> appreciate it if you&#8217;d tell a friend &#8211; let folks in other forums sites know this exists, so I can get as wide a range of feedback as possible. Thanks!<\/p>\n<p>Don<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Get some great new &#8220;toys&#8221; for Windows PowerShell in this &#8220;alpha&#8221; release of &#8220;PrimalToys for PowerShell.&#8221; More than a dozen new cmdlets to help manage computers, work with databases, and all kindsa fun stuff.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","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":[2],"tags":[],"class_list":["post-69","post","type-post","status-publish","format-standard","hentry","category-general"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/69","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=69"}],"version-history":[{"count":0,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/69\/revisions"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=69"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=69"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=69"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}