Sorry, I sent my message too fast,

For the version (which was the subject …) I use this :

$FirefoxVersion = ( gp 
HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\firefox*, 
HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Firefox*).DisplayVersion
(in case you would have 32 or 64 bits versions)

Or
$FirefoxVersion = (get-ItemProperty 
HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\firefox*).DisplayVersion
(if only 32bits)

You can get the version from the previous var $FirefoxExe by starting it with 
-v arg :

$FirefoxVersion = & $FirefoxExe "-v" | write-output



Réponse ou transfert de la part de Denis CARRE
De : Enterprise [mailto:[email protected]] De la part de carré, 
denis
Envoyé : mercredi 6 septembre 2017 14:31
À : 'Greg Haines' <[email protected]>; [email protected]
Objet : Re: [Mozilla Enterprise] Check Installed Firefox Version with CMD or 
Powershell

Hi,

I personnaly use the following in some PS scripts :


$FirefoxExe = (Get-ItemProperty -Path 
"hklm:software\microsoft\windows\currentversion\App 
Paths\firefox.exe").'(default)'
(full path to binary firefox.exe)

$FirefoxPath = (Get-ItemProperty -Path 
"hklm:software\microsoft\windows\currentversion\App Paths\firefox.exe").Path
(full path to the folder containing firefox.exe)

Don’t know if that’s the best or more esthetic way of doing it, but it’s proven 
to work well.


Réponse ou transfert de la part de Denis CARRE
De : Enterprise [mailto:[email protected]] De la part de Greg 
Haines
Envoyé : mercredi 6 septembre 2017 11:36
À : [email protected]
Objet : [Mozilla Enterprise] Check Installed Firefox Version with CMD or 
Powershell

Hi Guys

​How do i check via the command line or Powershell in Windows what version of 
Firefox is being used?  Cant seem to find anything online that actually works.

Thanks​

--
Greg Haines
Systems Administrator
End User Operations
Technology Department

[email protected]<mailto:[email protected]>
Telegraphmediagroup | 111 Buckingham Palace Road, London SW1W 0DT




The contents of this message and any attachments to it are private, 
confidential and may be the subject of legal privilege. Telegraph Media Group 
Limited is registered in England and Wales (company number 451593) at 111 
Buckingham Palace Road, London, SW1W 0DT. If you are not the intended recipient 
of this email please inform us and the sender immediately. You must not take 
any action based upon the contents of this email, nor copy it or show it to 
anyone. Any unauthorised disclosure, use or dissemination of the whole or part 
of the message contained in such email is prohibited. Any views or opinions 
expressed do not necessarily represent those of Telegraph Media Group Limited. 
It is the recipient’s responsibility to carry out any virus checking.

[Image supprimée par l'expéditeur.]
_______________________________________________
Enterprise mailing list
[email protected]
https://mail.mozilla.org/listinfo/enterprise

To unsubscribe from this list, please visit 
https://mail.mozilla.org/listinfo/enterprise or send an email to 
[email protected] with a subject of "unsubscribe"

Reply via email to