$textBoxComputerName.Text = $textBoxComputer.Text $RichTextRange.ApplyPropertyValue( $TextElement, $ParamOptions) #AutoFind all controls $xaml.SelectNodes( | ForEach-Object #Website: #Written By: vJanvi #Date: #Tested Environment: #Microsoft Windows 11, Windows 2022 #PowerShell Version 5.1, 7 #Read xaml file $xamlFile = "$PSScriptRoot\SideLoaders\MainWindow.xaml" #'D:\Projects\PowerShell\PatchingInfo\WpfApp1\MainWindow.xaml' $xamlContent = Get-Content -Path $xamlFile -ErrorAction Stop #Load required libraries Add-Type -AssemblyName PresentationFramework, PresentationCore, WindowsBase,, System.Drawing Information contains Patch Updates, Last Boot Uptime and C disk drive Total, free and used space in GB, which will show up on the GUI. Next part is the PowerShell script it uses CIM/WMI Object to fetch information from local or remote server/computer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |