<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Administrative Scripting : Consolation for commandline users</title><link>http://msmvps.com/blogs/aka/archive/tags/Consolation+for+commandline+users/default.aspx</link><description>Tags: Consolation for commandline users</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>Getting a schema for mssecure.xml with "infer"</title><link>http://msmvps.com/blogs/aka/archive/2003/10/11/186.aspx</link><pubDate>Sat, 11 Oct 2003 10:46:00 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:186</guid><dc:creator>alexk</dc:creator><slash:comments>6</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://msmvps.com/blogs/aka/rsscomments.aspx?PostID=186</wfw:commentRss><comments>http://msmvps.com/blogs/aka/archive/2003/10/11/186.aspx#comments</comments><description>&lt;div class="media"&gt;[Listening to: Mozart - Fur Elise (03:34)]&lt;/div&gt;
&lt;p&gt;While looking for a way to handle patch management mini-tasks, I ran across the following response by a Microsoft employee to a request for the schema for mssecure.xml (in context, the softie did not sound happy about having to give this kind of answer): &lt;br /&gt;Microsoft doesn't publish the schema for the MSSECURE.XML file. We reserve the right to modify, change and update the schema as necessary to enhance products that rely on and use the MSSECURE.XML file.
&lt;br /&gt;That's not precisely true. Microsoft does publish a schema, an implicit one. What people tend to forget is that &lt;i&gt;any &lt;/i&gt;well-formed XML file conforms to a schema. It may not be a formal one or even an appropriate one, but a schema can be inferred from that XML file instance.&lt;br /&gt;
Of course, no one wants to spend hours trying to determine a schema from a 1.7 MiB file.  If you get Microsoft's own xsdinfer tool, though, you can automatically parse the schema in seconds.
&lt;br /&gt;
I proceeded to do that with the latest (2003-10-03) mssecure.xml and I have made the inferred mssecure.xsd file &lt;a title="zipped mssecure.xsd file" href="http://www.mvps.org/scripting/files/mssecure_xsd.zip"&gt;available as a zipped download.&lt;/a&gt;&lt;br /&gt;
Note that this is incredibly easy to do.  I simply ran&lt;br /&gt;
  infer mssecure.xml -o mssecure&lt;b&gt;
and had mssecure_1.xsd ready in seconds.  The schema is very clean considering the size of mssecure.xml; it reduces to 11.8 KiB and compresses to 1.7 in the download.
&lt;/b&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=186" width="1" height="1"&gt;</description><category domain="http://msmvps.com/blogs/aka/archive/tags/Consolation+for+commandline+users/default.aspx">Consolation for commandline users</category></item><item><title>.NET and Console Tools - We're Getting There, But...</title><link>http://msmvps.com/blogs/aka/archive/2003/10/10/184.aspx</link><pubDate>Fri, 10 Oct 2003 21:21:00 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:184</guid><dc:creator>alexk</dc:creator><slash:comments>4</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://msmvps.com/blogs/aka/rsscomments.aspx?PostID=184</wfw:commentRss><comments>http://msmvps.com/blogs/aka/archive/2003/10/10/184.aspx#comments</comments><description>&lt;div class="media"&gt;[Listening to: We Have Explosive - The Future Sound of London - We Have Explosive (03:26)]&lt;/div&gt;
&lt;p&gt;I've been going through Visual Basic .NET 2003 Resource Kit this morning, looking for goodies I can reuse elsewhere. One of the "metrics" I use is how good console tool support is.
&lt;br /&gt;
Strictly speaking, this is not a VB issue, it is a .NET issue, and I'm finding myself wandering off to think about the whole issue of console tool support as a concept in Windows systems. The real underlying problem is not one of what classes are available here and there for console tools. The problem is that programmers don't usually realize that a console application is to an administrator what a class is to a programmer.
&lt;br /&gt;
A CLI application is really a component, and to be the best at what it does, it needs to be self-contained, use common switches, and understand working with stream for input, output, and error. It needs to be self-describing as well, so that help is just moments away.
&lt;br /&gt;
I'm not quite sure what the "best" answer is, but there is no doubt that a core library which allows simple, single-step generation of help text and internal primitives for scripts and for compiled applications could make an immense difference to the growth of well-behaved, admin-friendly building block applications. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=184" width="1" height="1"&gt;</description><category domain="http://msmvps.com/blogs/aka/archive/tags/Consolation+for+commandline+users/default.aspx">Consolation for commandline users</category></item></channel></rss>