Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Create a Microsoft Word Document from WMI InformationContent of Create a Microsoft Word Document from WMI Information.ps1MD5 Hash: 9B1C7AEBA10C2D6C3CD67AF6D06833C9 |
||
$class = "Win32_Bios"
$path = "C:\fso\bios" [ref]$SaveFormat = "microsoft.office.interop.word.WdSaveFormat" -as [type] $word = New-Object -ComObject word.application $word.visible = $true $doc = $word.documents.add() $selection = $word.selection $selection.typeText("This is the bios information") $selection.TypeParagraph() Get-WmiObject -class $class | Out-String | ForEach-Object { $selection.typeText($_) } $doc.saveas([ref] $path, [ref]$saveFormat::wdFormatDocument) $word.quit() | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |