Hello,
I want to install Pidgin in all the computers on the network and I want to do it via Powershell. I modified a script that i found and it looks like this:
$computers = Get-Content "C:\Users\administrator.INTERN\Desktop\Scripts\Pidgin\computers.txt" foreach ($computer in $computers) { #The location of the file $Install = "\\voyager\Software\015 Messenger Clients" #The Install string can have commands aswell $InstallString = "$Install\pidgin-2.10.11-offline.exe" ([WMICLASS]"\\$computer\ROOT\CIMV2:Win32_Process").Create($InstallString) #Output the install result to your Local C Drive Out-File -FilePath c:\Users\administrator.INTERN\Desktop\Scripts\Pidgin\installed.txt -Append -InputObject "$computer"}
But when i execute it i get this messages:
Cannot convert value "\\192.168.9.104\ROOT\CIMV2:Win32_Process" to type "System.Management.ManagementClass". Error: "The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)" At C:\Users\administrator.INTERN\Desktop\Scripts\Pidgin\install pidgin.ps1:18 char:2 + ([WMICLASS]"\\$computer\ROOT\CIMV2:Win32_Process").Create($InstallString) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [], RuntimeException + FullyQualifiedErrorId : InvalidCastToWMIClass
I know nothing about scripting.
Also if it is posible , does anyone knows hot to make it so Pidgin uses the windows credentials???
Thanks