" |
1553 | Out-String
1554 |
1555 | $Body = $HEaders + $body1 + $body2
1556 |
1557 | $hash.Window.Dispatcher.Invoke(
1558 | [action]{
1559 | $hash.Working.Content = ''
1560 | $hash.ReportProgress.Value = 100
1561 | })
1562 |
1563 | $Body | Out-File -FilePath $env:temp\TSReport.htm -Force
1564 | Invoke-Item -Path $env:temp\TSReport.htm
1565 |
1566 |
1567 | # Close the connection
1568 | $connection.Close()
1569 | }
1570 |
1571 | # Set variables from Hash table
1572 | $SQLServer = $hash.SQLServer.Text
1573 | $Database = $hash.Database.Text
1574 | $DTFormat = $hash.DTFormat.SelectedItem
1575 | #if ($DTFormat -eq "UTC")
1576 | # {
1577 | [datetime]$StartDate = $hash.StartDate.Text | Get-Date -Format "MM'/'dd'/'yyyy HH':'mm':'ss"
1578 | [datetime]$EndDate = $hash.EndDate.Text | Get-Date -Format "MM'/'dd'/'yyyy HH':'mm':'ss"
1579 | # }
1580 | #Else {
1581 | # [datetime]$StartDate = [System.TimeZone]::CurrentTimeZone.ToLocalTime($($hash.StartDate.Text | Get-Date -Format "MM'/'dd'/'yyyy HH':'mm':'ss"))
1582 | # [datetime]$EndDate = [System.TimeZone]::CurrentTimeZone.ToLocalTime($($hash.EndDate.Text | Get-Date -Format "MM'/'dd'/'yyyy HH':'mm':'ss"))
1583 | # }
1584 |
1585 | $EndDate = $EndDate.AddDays(1).AddSeconds(-1)
1586 | $TS = $hash.TSList.SelectedItem
1587 |
1588 | # Create PS instance in runspace pool and execute
1589 | $PSinstance = [powershell]::Create().AddScript($code).AddArgument($hash).AddArgument($SQLServer).AddArgument($Database).AddArgument($StartDate).AddArgument($EndDate).AddArgument($TS).AddArgument($DTFormat)
1590 | $PSInstances += $PSinstance
1591 | $PSinstance.RunspacePool = $RunspacePool
1592 | $PSinstance.BeginInvoke()
1593 | }
1594 |
1595 | Function Clear-MDT
1596 | {
1597 | param ($hash)
1598 |
1599 | $hash.Window.Dispatcher.Invoke(
1600 | [action]{
1601 | $hash.DeploymentStatus.Text = ''
1602 | $hash.CurrentStep.Text = ''
1603 | $hash.StepName.Text = ''
1604 | $hash.PercentComplete.Text = ''
1605 | $hash.ProgressBar.Value = 0
1606 | $hash.MDTStartTime.Text = ''
1607 | $hash.MDTEndTime.Text = ''
1608 | $hash.MDTElapsedTime.Text = ''
1609 | })
1610 | }
1611 |
1612 | #endregion
1613 |
1614 | #region Event Handlers
1615 |
1616 | $hash.Window.Add_ContentRendered({
1617 | #Disable-MDT
1618 | Read-Registry
1619 | Get-DateTimeFormat
1620 | Get-TaskSequenceList
1621 | })
1622 |
1623 | $hash.TaskSequence.Add_SelectionChanged({
1624 | $Count = $hash.ComputerName.Items.Count
1625 | $hash.Window.Dispatcher.Invoke(
1626 | [action]{
1627 | $hash.ComputerName.SelectedIndex = ($Count -1)
1628 | })
1629 | Dispose-PSInstances
1630 | Clear-MDT -hash $hash
1631 | Populate-ComputerNames -hash $hash -RunspacePool $RunspacePool
1632 | Get-TaskSequenceData -hash $hash -RunspacePool $RunspacePool
1633 | Get-MDTData -hash $hash -RunspacePool $RunspacePool
1634 | Stop-Timer
1635 | Create-Timer
1636 | $timer.add_Tick({
1637 | Populate-ComputerNames -hash $hash -RunspacePool $RunspacePool
1638 | Get-TaskSequenceData -hash $hash -RunspacePool $RunspacePool
1639 | Get-MDTData -hash $hash -RunspacePool $RunspacePool
1640 | })
1641 | Start-Timer
1642 | $Global:CurrentTS = $hash.TaskSequence.SelectedItem
1643 | })
1644 |
1645 | $hash.ErrorsOnly.Add_Checked({
1646 | Dispose-PSInstances
1647 | Stop-Timer
1648 | Get-TaskSequenceData -hash $hash -RunspacePool $RunspacePool
1649 | Start-Timer
1650 | })
1651 |
1652 | $hash.MDTIntegrated.Add_Checked({
1653 | Populate-ComputerNames -hash $hash -RunspacePool $RunspacePool
1654 | Enable-MDT
1655 | })
1656 |
1657 | $hash.MDTIntegrated.Add_Unchecked({
1658 | Populate-ComputerNames -hash $hash -RunspacePool $RunspacePool
1659 | Disable-MDT
1660 | })
1661 |
1662 | $hash.ErrorsOnly.Add_Unchecked({
1663 | Dispose-PSInstances
1664 | Stop-Timer
1665 | Get-TaskSequenceData -hash $hash -RunspacePool $RunspacePool
1666 | Start-Timer
1667 | })
1668 |
1669 | $hash.DataGrid.Add_SelectionChanged({
1670 | Dispose-PSInstances
1671 | Populate-ActionOutput -hash $hash -RunspacePool $RunspacePool
1672 | })
1673 |
1674 | $hash.RefreshNow.Add_Click({
1675 | Dispose-PSInstances
1676 | Stop-Timer
1677 | Get-TaskSequenceData -hash $hash -RunspacePool $RunspacePool
1678 | Populate-ComputerNames -hash $hash -RunspacePool $RunspacePool
1679 | Get-MDTData -hash $hash -RunspacePool $RunspacePool
1680 | $timer.Interval = [int]$hash.RefreshPeriod.Text * 60000
1681 | Start-Timer
1682 | })
1683 |
1684 | $hash.ComputerName.Add_SelectionChanged({
1685 | if ($hash.TaskSequence.SelectedItem -eq $CurrentTS)
1686 | {
1687 | Dispose-PSInstances
1688 | Stop-Timer
1689 | Get-TaskSequenceData -hash $hash -RunspacePool $RunspacePool
1690 | Get-MDTData -hash $hash -RunspacePool $RunspacePool
1691 | Start-Timer
1692 | }
1693 | })
1694 |
1695 | $hash.TimePeriod.Add_KeyDown({
1696 | if ($_.Key -eq 'Return')
1697 | {
1698 | Dispose-PSInstances
1699 | Stop-Timer
1700 | Get-TaskSequenceData -hash $hash -RunspacePool $RunspacePool
1701 | Populate-ComputerNames -hash $hash -RunspacePool $RunspacePool
1702 | Get-MDTData -hash $hash -RunspacePool $RunspacePool
1703 | $timer.Interval = [int]$hash.RefreshPeriod.Text * 60000
1704 | Start-Timer
1705 | }
1706 | })
1707 |
1708 | $hash.RefreshPeriod.Add_TextChanged({
1709 | Stop-Timer
1710 | $timer.Interval = [int]$hash.RefreshPeriod.Text * 60000
1711 | Start-Timer
1712 | })
1713 |
1714 | $hash.SettingsButton.Add_Click({
1715 | $reader = (New-Object -TypeName System.Xml.XmlNodeReader -ArgumentList $xaml2)
1716 | $hash.Window2 = [Windows.Markup.XamlReader]::Load( $reader )
1717 | $hash.SQLServer = $hash.Window2.FindName('SQLServer')
1718 | $hash.Database = $hash.Window2.FindName('Database')
1719 | $hash.MDTURL = $hash.Window2.FindName('MDTURL')
1720 | $hash.ConnectSQL = $hash.Window2.FindName('ConnectSQL')
1721 | $hash.TSList = $hash.Window2.FindName('TSList')
1722 | $hash.StartDate = $hash.Window2.FindName('StartDate')
1723 | $hash.EndDate = $hash.Window2.FindName('EndDate')
1724 | $hash.GenerateReport = $hash.Window2.FindName('GenerateReport')
1725 | $hash.SettingsTab = $hash.Window2.FindName('SettingsTab')
1726 | $hash.ReportTab = $hash.Window2.FindName('ReportTab')
1727 | $hash.Tabs = $hash.Window2.FindName('Tabs')
1728 | $hash.Runasadmin = $hash.Window2.FindName('Runasadmin')
1729 | $hash.Working = $hash.Window2.FindName('Working')
1730 | $hash.ReportProgress = $hash.Window2.FindName('ReportProgress')
1731 | $hash.Link1 = $hash.Window2.FindName('Link1')
1732 | $hash.DTFormat = $hash.Window2.FindName('DTFormat')
1733 | if (Test-Path -Path "$env:ProgramFiles\SMSAgent\ConfigMgr Task Sequence Monitor\Grid.ico")
1734 | {
1735 | #$hash.Window2.Icon = "$env:ProgramFiles\SMSAgent\ConfigMgr Task Sequence Monitor\Grid.ico"
1736 | }
1737 | if (Test-Path -Path "${env:ProgramFiles(x86)}\SMSAgent\ConfigMgr Task Sequence Monitor\Grid.ico")
1738 | {
1739 | #$hash.Window2.Icon = "${env:ProgramFiles(x86)}\SMSAgent\ConfigMgr Task Sequence Monitor\Grid.ico"
1740 | }
1741 |
1742 | Read-Registry
1743 | $hash.SettingsTab.Focus()
1744 | If (!(([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')))
1745 | {
1746 | $hash.Runasadmin.Visibility = 'Visible'
1747 | }
1748 | $hash.TSList.ItemsSource = $Views.TS
1749 | $hash.DTFormat.ItemsSource = $Timezones.TimeZone
1750 | If ($CurrentDateTimeF -eq 'UTC')
1751 | {
1752 | $hash.DTFormat.SelectedIndex = 0
1753 | }
1754 | Else
1755 | {
1756 | $hash.DTFormat.SelectedIndex = 1
1757 | }
1758 |
1759 | $hash.SQLServer.Add_GotMouseCapture({
1760 | if ($hash.SQLServer.Text -eq '')
1761 | {
1762 | $hash.SQLServer.Text = ''
1763 | }
1764 | })
1765 |
1766 | $hash.SQLServer.Add_GotKeyboardFocus({
1767 | if ($hash.SQLServer.Text -eq '')
1768 | {
1769 | $hash.SQLServer.Text = ''
1770 | }
1771 | })
1772 |
1773 | $hash.Database.Add_GotMouseCapture({
1774 | if ($hash.Database.Text -eq '')
1775 | {
1776 | $hash.Database.Text = ''
1777 | }
1778 | })
1779 |
1780 | $hash.Database.Add_GotKeyboardFocus({
1781 | if ($hash.Database.Text -eq '')
1782 | {
1783 | $hash.Database.Text = ''
1784 | }
1785 | })
1786 | $hash.ConnectSQL.Add_Click({
1787 | Update-Registry -hash $hash
1788 | Get-TaskSequenceList
1789 | })
1790 |
1791 | $hash.GenerateReport.Add_Click({
1792 | Generate-Report -hash $hash -RunspacePool $RunspacePool
1793 | })
1794 |
1795 | $hash.Link1.Add_Click({
1796 | Start-Process -FilePath 'http://smsagent.wordpress.com/tools/configmgr-task-sequence-monitor/'
1797 | })
1798 |
1799 | $hash.DTFormat.Add_SelectionChanged({
1800 | $Global:CurrentDateTimeF = $hash.DTFormat.SelectedItem
1801 | })
1802 |
1803 | $hash.Window2.Add_Closed({
1804 | Update-Registry -hash $hash
1805 | })
1806 |
1807 | $Null = $hash.Window2.ShowDialog()
1808 | })
1809 |
1810 | $hash.ReportButton.Add_Click({
1811 | $reader = (New-Object -TypeName System.Xml.XmlNodeReader -ArgumentList $xaml2)
1812 | $hash.Window2 = [Windows.Markup.XamlReader]::Load( $reader )
1813 | $hash.SQLServer = $hash.Window2.FindName('SQLServer')
1814 | $hash.Database = $hash.Window2.FindName('Database')
1815 | $hash.MDTURL = $hash.Window2.FindName('MDTURL')
1816 | $hash.ConnectSQL = $hash.Window2.FindName('ConnectSQL')
1817 | $hash.TSList = $hash.Window2.FindName('TSList')
1818 | $hash.StartDate = $hash.Window2.FindName('StartDate')
1819 | $hash.EndDate = $hash.Window2.FindName('EndDate')
1820 | $hash.GenerateReport = $hash.Window2.FindName('GenerateReport')
1821 | $hash.SettingsTab = $hash.Window2.FindName('SettingsTab')
1822 | $hash.ReportTab = $hash.Window2.FindName('ReportTab')
1823 | $hash.Tabs = $hash.Window2.FindName('Tabs')
1824 | $hash.Runasadmin = $hash.Window2.FindName('Runasadmin')
1825 | $hash.Working = $hash.Window2.FindName('Working')
1826 | $hash.ReportProgress = $hash.Window2.FindName('ReportProgress')
1827 | $hash.Link1 = $hash.Window2.FindName('Link1')
1828 | $hash.DTFormat = $hash.Window2.FindName('DTFormat')
1829 | if (Test-Path -Path "$env:ProgramFiles\SMSAgent\ConfigMgr Task Sequence Monitor\Grid.ico")
1830 | {
1831 | #$hash.Window2.Icon = "$env:ProgramFiles\SMSAgent\ConfigMgr Task Sequence Monitor\Grid.ico"
1832 | }
1833 | if (Test-Path -Path "${env:ProgramFiles(x86)}\SMSAgent\ConfigMgr Task Sequence Monitor\Grid.ico")
1834 | {
1835 | #$hash.Window2.Icon = "${env:ProgramFiles(x86)}\SMSAgent\ConfigMgr Task Sequence Monitor\Grid.ico"
1836 | }
1837 |
1838 | Read-Registry
1839 | $hash.ReportTab.Focus()
1840 | If (!(([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')))
1841 | {
1842 | $hash.Runasadmin.Visibility = 'Visible'
1843 | }
1844 | $hash.TSList.ItemsSource = $Views.TS
1845 | $hash.DTFormat.ItemsSource = $Timezones.TimeZone
1846 | If ($CurrentDateTimeF -eq 'UTC')
1847 | {
1848 | $hash.DTFormat.SelectedIndex = 0
1849 | }
1850 | Else
1851 | {
1852 | $hash.DTFormat.SelectedIndex = 1
1853 | }
1854 |
1855 | $hash.SQLServer.Add_GotMouseCapture({
1856 | if ($hash.SQLServer.Text -eq '')
1857 | {
1858 | $hash.SQLServer.Text = ''
1859 | }
1860 | })
1861 |
1862 | $hash.SQLServer.Add_GotKeyboardFocus({
1863 | if ($hash.SQLServer.Text -eq '')
1864 | {
1865 | $hash.SQLServer.Text = ''
1866 | }
1867 | })
1868 |
1869 | $hash.Database.Add_GotMouseCapture({
1870 | if ($hash.Database.Text -eq '')
1871 | {
1872 | $hash.Database.Text = ''
1873 | }
1874 | })
1875 |
1876 | $hash.Database.Add_GotKeyboardFocus({
1877 | if ($hash.Database.Text -eq '')
1878 | {
1879 | $hash.Database.Text = ''
1880 | }
1881 | })
1882 |
1883 | $hash.ConnectSQL.Add_Click({
1884 | Update-Registry -hash $hash
1885 | Get-TaskSequenceList
1886 | })
1887 |
1888 | $hash.GenerateReport.Add_Click({
1889 | Generate-Report -hash $hash -RunspacePool $RunspacePool
1890 | })
1891 |
1892 | $hash.Link1.Add_Click({
1893 | Start-Process -FilePath 'http://smsagent.wordpress.com/tools/configmgr-task-sequence-monitor/'
1894 | })
1895 |
1896 | $hash.DTFormat.Add_SelectionChanged({
1897 | $Global:CurrentDateTimeF = $hash.DTFormat.SelectedItem
1898 | })
1899 |
1900 | $hash.Window2.Add_Closed({
1901 | Update-Registry -hash $hash
1902 | })
1903 |
1904 | $Null = $hash.Window2.ShowDialog()
1905 | })
1906 |
1907 | $hash.Window.Add_Closed({
1908 | Stop-Timer
1909 | Dispose-PSInstances
1910 | $RunspacePool.close()
1911 | $RunspacePool.Dispose()
1912 | })
1913 |
1914 | # Stop process on closing, #comment our for development
1915 | $hash.window.Add_Closing({[System.Windows.Forms.Application]::Exit(); Stop-Process $pid})
1916 | #endregion
1917 |
1918 |
1919 | # Make PowerShell Disappear #comment our for development
1920 | $windowcode = '[DllImport("user32.dll")] public static extern bool ShowWindowAsync(IntPtr hWnd, int nCmdShow);'
1921 | $asyncwindow = Add-Type -MemberDefinition $windowcode -name Win32ShowWindowAsync -namespace Win32Functions -PassThru
1922 | $null = $asyncwindow::ShowWindowAsync((Get-Process -PID $pid).MainWindowHandle, 0)
1923 |
1924 | #$app = [Windows.Application]::new()
1925 | $app = New-Object Windows.Application
1926 | $app.Run($Hash.Window)
1927 |
1928 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "{}"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright {yyyy} {name of copyright owner}
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ConfigMgr-Task-Sequence-Monitor
2 | A tool to monitor and report on task sequence executions in ConfigMgr
3 |
--------------------------------------------------------------------------------
/Versions/ConfigMgr_Task_Sequence_Monitor.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | 1.0
6 |
7 | Initial Version
8 |
9 | 2015-01-01
10 |
11 |
12 | 1.1
13 |
14 | Added capability to link data from MDT with data from ConfigMgr
15 |
16 | 2015-01-01
17 |
18 |
19 | 1.2
20 |
21 | Added capability to generate an HTML deployment report
22 | Fixed memory leak
23 | Improved integration of MDT and ConfigMgr data
24 | Moved settings into a seperate window
25 |
26 | 2015-November-17
27 |
28 |
29 | 1.2.1
30 |
31 | Fixed code bug that caused the app to open and immediately close on some machines
32 |
33 | 2015-November-19
34 |
35 |
36 | 1.2.2
37 |
38 | Fixed the issue where if only one task sequence is active in the environment, it will display as an array of string characters instead of an array of items
39 |
40 | 2015-November-20
41 |
42 |
43 | 1.3.0
44 |
45 | Added the capability to change the displayed date/time from the MDT/ConfigMgr default (UTC) to your local system timezone
46 |
47 | 2015-November-23
48 |
49 |
50 | 1.3.1
51 |
52 | Fixed an issue where the HTML report returns no results when the dateformat of the default system language of SQL server is not using "mdy" format. Search dates are now passed to SQL server in ISO8601 standard format for compatibility with all SQL dateformats
53 |
54 | 2016-January-15
55 |
56 |
57 | 1.4
58 |
59 | Fixed the issue where duplicate records might be returned when the computer being deployed already exists in the ConfigMgr database (rebuild scenario)
60 |
61 | 2016-February-10
62 |
63 |
64 | 1.5
65 |
66 | Restyled the UI with a Modern Metro style
67 |
68 | 2016-October-13
69 |
70 |
71 | 2.0
72 |
73 | tbc...
74 |
75 | 2016-May-01
76 |
77 |
78 |
79 |
--------------------------------------------------------------------------------