SlideShare a Scribd company logo
Elihu Eli El - 15MAY2020
This Powershell script enables you to retrieve installed software from remote computers and saves in CSV
format {Excel}.
$computer = Get-Content C:tempcomputers.txt
$Output = Foreach($C in $computer)
{
$System = Get-WmiObject Win32_ComputerSystem -ComputerName $C | Select-Object -Property Name, Model
$BIOS = Get-WmiObject Win32_Product -ComputerName $C | Select-Object Name, Version
Foreach($B in $BIOS)
{
New-Object -TypeName PSObject -Property @{
ComputerName = $System.Name
ModelName = $System.Model
SoftwareName = $B.Name
Version = $B.Version}
}
}
$Output | Export-Csv -Path c:TempResultsoftware.csv -NoTypeInformation -Encoding UTF8

More Related Content

DOCX
Pratik Bakane C++
DOCX
Pratik Bakane C++
DOCX
Pratik Bakane C++
DOCX
Pratik Bakane C++
PPTX
Wcbpijwbpij new
PDF
اسلاید دوم جلسه پنجم کلاس پایتون برای هکرهای قانونی
DOC
basic shell_programs
PPT
Cpp tutorial
Pratik Bakane C++
Pratik Bakane C++
Pratik Bakane C++
Pratik Bakane C++
Wcbpijwbpij new
اسلاید دوم جلسه پنجم کلاس پایتون برای هکرهای قانونی
basic shell_programs
Cpp tutorial

What's hot (20)

DOCX
Concatenation of two strings using class in c++
KEY
Ruby haskell extension
PDF
20151224-games
DOCX
Program: Inheritance in Class - to find topper out of 10 students
PPTX
Unit 1 of c++ first program
DOCX
Assignment c++12
PDF
Finch + Finagle OAuth2
PDF
Bcsl 033 data and file structures lab s3-3
DOCX
Code sources des fonctions table cp
TXT
Program to sort array using insertion sort
PDF
BASH Shell Scripting – Part III &IV
DOCX
Array using recursion
PDF
Presentation of the new OpenERP API. Raphael Collet, OpenERP
PPTX
Operators and expression in c#
PPTX
C++Programming Language Tips Tricks Understandings
ODP
Why should we use SIMPLE FACTORY pattern even when we have one class only?
TXT
PDF
Fragmentation
Concatenation of two strings using class in c++
Ruby haskell extension
20151224-games
Program: Inheritance in Class - to find topper out of 10 students
Unit 1 of c++ first program
Assignment c++12
Finch + Finagle OAuth2
Bcsl 033 data and file structures lab s3-3
Code sources des fonctions table cp
Program to sort array using insertion sort
BASH Shell Scripting – Part III &IV
Array using recursion
Presentation of the new OpenERP API. Raphael Collet, OpenERP
Operators and expression in c#
C++Programming Language Tips Tricks Understandings
Why should we use SIMPLE FACTORY pattern even when we have one class only?
Fragmentation
Ad

More from Elihu El, ITIL, SCRUM Master (8)

PDF
DOCX
Fix Maryland Elections Now
PDF
Remove Quick Reference Section from Cognos
PDF
Basement Remodeling
DOCX
Equity Bill template
PDF
Social Service Organizations
Fix Maryland Elections Now
Remove Quick Reference Section from Cognos
Basement Remodeling
Equity Bill template
Social Service Organizations
Ad

Recently uploaded (20)

PDF
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPT
introduction to datamining and warehousing
PDF
737-MAX_SRG.pdf student reference guides
PPTX
Safety Seminar civil to be ensured for safe working.
PDF
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PDF
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
PDF
Abrasive, erosive and cavitation wear.pdf
PPTX
UNIT 4 Total Quality Management .pptx
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PDF
Integrating Fractal Dimension and Time Series Analysis for Optimized Hyperspe...
PPTX
introduction to high performance computing
PDF
Categorization of Factors Affecting Classification Algorithms Selection
PPT
A5_DistSysCh1.ppt_INTRODUCTION TO DISTRIBUTED SYSTEMS
PDF
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
PDF
Exploratory_Data_Analysis_Fundamentals.pdf
PPTX
UNIT - 3 Total quality Management .pptx
EXPLORING LEARNING ENGAGEMENT FACTORS INFLUENCING BEHAVIORAL, COGNITIVE, AND ...
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
introduction to datamining and warehousing
737-MAX_SRG.pdf student reference guides
Safety Seminar civil to be ensured for safe working.
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
Abrasive, erosive and cavitation wear.pdf
UNIT 4 Total Quality Management .pptx
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
Integrating Fractal Dimension and Time Series Analysis for Optimized Hyperspe...
introduction to high performance computing
Categorization of Factors Affecting Classification Algorithms Selection
A5_DistSysCh1.ppt_INTRODUCTION TO DISTRIBUTED SYSTEMS
UNIT no 1 INTRODUCTION TO DBMS NOTES.pdf
Exploratory_Data_Analysis_Fundamentals.pdf
UNIT - 3 Total quality Management .pptx

Ps installedsoftware

  • 1. Elihu Eli El - 15MAY2020 This Powershell script enables you to retrieve installed software from remote computers and saves in CSV format {Excel}. $computer = Get-Content C:tempcomputers.txt $Output = Foreach($C in $computer) { $System = Get-WmiObject Win32_ComputerSystem -ComputerName $C | Select-Object -Property Name, Model $BIOS = Get-WmiObject Win32_Product -ComputerName $C | Select-Object Name, Version Foreach($B in $BIOS) { New-Object -TypeName PSObject -Property @{ ComputerName = $System.Name ModelName = $System.Model SoftwareName = $B.Name Version = $B.Version} } } $Output | Export-Csv -Path c:TempResultsoftware.csv -NoTypeInformation -Encoding UTF8