/usr/share/osinfo/install-script/microsoft.com/windows-cmd-desktop.xml is in osinfo-db 0.20180226-1~deb9u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | <?xml version="1.0" encoding="UTF-8"?>
<libosinfo version="0.0.1">
<install-script id='http://microsoft.com/windows/cmd/desktop'>
<profile>desktop</profile>
<path-format>dos</path-format>
<expected-filename>windows.cmd</expected-filename>
<can-post-install-drivers/>
<post-install-drivers-signing-req>strict</post-install-drivers-signing-req>
<config>
<param policy="optional" name="admin-password"/>
<param policy="required" name="user-realname"/>
<param policy="optional" name="avatar-location"/>
<param policy="optional" name="avatar-disk"/>
<param policy="optional" name="target-disk"/>
<param policy="optional" name="script-disk"/>
<param policy="optional" name="post-install-drivers-disk"/>
<param policy="optional" name="post-install-drivers-location"/>
<param policy="optional" name="driver-signing"/>
</config>
<injection-method>floppy</injection-method>
<avatar-format>
<mime-type>image/bmp</mime-type>
<width>48</width>
<height>48</height>
<alpha>false</alpha>
</avatar-format>
<template>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text"/>
<xsl:template name="target-disk">
<xsl:choose>
<xsl:when test="config/target-disk != ''">
<xsl:value-of select="config/target-disk"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>C</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="script-disk">
<xsl:choose>
<xsl:when test="config/script-disk != ''">
<xsl:value-of select="config/script-disk"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>A</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="post-install-drivers-disk">
<xsl:choose>
<xsl:when test="config/post-install-drivers-disk != ''">
<xsl:value-of select="config/post-install-drivers-disk"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>A</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="avatar-destination">
<xsl:call-template name="target-disk"/>
<xsl:choose>
<xsl:when test="os/version < 6.0">
<xsl:text>:\Documents and Settings\All Users\Application Data\Microsoft\User Account Pictures\</xsl:text>
<xsl:value-of select="config/user-realname"/>
<xsl:text>.bmp</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>:\ProgramData\Microsoft\User Account Pictures\user.bmp</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="/install-script-config">
<xsl:if test="os/version < 6.0">
sc config TlntSvr start= auto
net user <xsl:value-of select="config/user-realname"/> <xsl:text> </xsl:text> <xsl:value-of select="config/admin-password"/> /add /passwordreq:no
net localgroup administrators <xsl:value-of select="config/user-realname"/> /add
net accounts /maxpwage:unlimited
REGEDIT /S <xsl:call-template name="script-disk"/>:\windows.reg
</xsl:if>
if not "<xsl:value-of select="config/avatar-location"/>"=="" copy "<xsl:value-of select="config/avatar-disk"/>:<xsl:value-of select="config/avatar-location"/>" "<xsl:call-template name="avatar-destination"/>
<xsl:text>
</xsl:text>
<xsl:call-template name="post-install-drivers-disk"/>:
<xsl:if test="config/driver-signing = 'false' and os/version > 5.1">
bcdedit.exe -set loadoptions DDISABLE_INTEGRITY_CHECKS
bcdedit.exe -set TESTSIGNING ON
</xsl:if>
for %%i in ("<xsl:call-template name="post-install-drivers-disk"/>:<xsl:value-of select="config/post-install-drivers-location"/>\*.cmd") do cmd /c %%i
EXIT
</xsl:template>
</xsl:stylesheet>
</template>
</install-script>
</libosinfo>
|