Powershell script to findout all the software products installed in the SharePoint farm
Please find the simple and accurate power shell code implemented by me to generate report to get all the softwares installed on each server in the farm.It would be very helpful to create reports at farm level.
$servers = get-content F:\temp\Servers.txt
$logfile = "F:\temp\test\AllProductsInstalled.csv"
Add-content $logfile -value "ServerName,ProductName,Version,vendor,serialnumber"
foreach ($server in $servers)
$z = gwmi win32_product -ComputerName $server
foreach($a in $z)
add-content $logfile -value "$($a.__server),$($a.name),$($a.Version),$($a.IdentifyingNumber),$($a.vendor)"
Please provide the all the severnames in the text file "Servers.txt" in above code.
Why not do it in PowerShell?
Get-WmiObject win32_product -ComputerName $servers |
Export-Csv $logfile -NoType
It is much easier to let PowerShell do the work for you.
PowerShell script doesn't appear to work as scheduled task in sharepoint 2013, it works as normal manual execution MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint LeadHi, To run PowerShell Script as scheduled task in SharePoint 2013, you can ta
Hi I need to know the command for getting list of softwares installed on all the remote systems in network which are existing in their respective registry like HKEY_LOCAL_MACHINE\SOFTWARE of all other systemsHey Sorry this isn't powershell but it sh
Hi Im trying to build a powershell script that uninstall Forefront Client and later install SCEP and it also copy the local exclusions from Forefront to insert in SCEP (registry). All works fine when Im running the script locally, but when Im deployi
Hello All, Before you tell me to post my PowerShell question to the PowerShell Forum, please know that the PowerShell portion of my task works just fine. It is the SCCM portion of my task that keeps failing, so that is why I am here. To give some bac
I am in the process of setting up continuous self-auditing on a set of computers that are on a Domain. My company has a restriction on use of USB devices as well as CDs/DVDs. The domain pushes patches but we have been seeing some users that are using
Hello I am writing a powershell script and can you please let me know how i have initialize object in it. I want initialize object for "QAProfileInfo " and UserInfo these Quest one password management web API. ThanksThanks Mike Can you please
I've deployed a .cmd file out that contains a WMI script to uninstall all instances of an application called "VirtViewer". The script looks like this: taskkill /F /IM remote-viewer.exe /T wmic product where "name like 'VirtViewer%%'" c
Hi How do I make a Powershell script setting Timezone to da-dk and calendar rights on default user to NonEditingAuthor for all users? Best regards MSISOMFor product specificquestions yoou should post in the product forum. In this case in teh O365 fo
I failed to use any Powershell script in Global Conditions with error 87D00327. The script is signed and tested without problem. Setting execution policy doesn't change the result at all. Error message as below: In-line script returned error output:
Can anyone tell me what the "standard header" that I see in a lot of PowerShell scripts is all about? I have been unable to find any explanation so far. Here's a snippet: <# .SYNOPSIS Counts the Grateful Dead shows in my archives .DESCRIPTION
I've been having a lot of problems trying to get an old batch file we have laying around, to run from my powershell script. The batch file actually asks for two inputs from the user. I've managed to put together a powershell that echos a response, bu
Hi Guys, Am using package model to deploy the software. After installation on client machines i want to display a dialog box to notify the successful installation. Currently trying VBScript to show the dialog message. But few machines i get this dial
Need some help for the following script. My goal is to copy files from c:\tem to d:\temp after vopy, I need powershell to verify all the files are copied over to d:\temp\subfolder and then remove the folder of files on c:\temp11\subfolder. $source
Message Executed as user: CORPTST\XXXXX. A job step received an error at line 1 in a PowerShell script. The corresponding line is 'set-executionpolicy RemoteSigned -scope process -Force'. Correct the script and reschedule the job. The error informati
Hello, I have trouble with self signed Powershell scripts. I've created a CodeSign Certificate from the internal CA in my Domain. After that I've used this Certificate to sign PS scripts. When I call these scripts in a running shell I get this messag
I want to create an application (not packages) to run a powershell script to install a software. In this script it installs software and copies files over to different directories. Is there a way to do this in Applications? Currently I've been creati
I created a PowerShell script to upgrade a SQL Azure instance with my latest DACPAC (taken from http://msdn.microsoft.com/en-us/library/ee634742.aspx). What I have experienced when running my PowerShell script is that it consistently takes approximat
Tested in 2008 R2, 2012 and 2014 all on the latest SP + CU When I generate as script from SSMS for the database tables via Generate Scripts there is an issue, when you generate the script for the database objects and there is data in the table with
I'd like to create a PowerShell script to delete old folders in a Document library that are over 30 days old. Has anyone created something like this? Orange County District AttorneyHello Sid: I am trying to do the same and Iam running the script to d