Quantcast
Channel: Ocsinventory Q&A - Recent questions and answers in OCS Inventory NG agent
Viewing all articles
Browse latest Browse all 4573

'Web application Inventory' on foreign clients

$
0
0

Hey boys&girls,

I was wondering why the 'Web application Inventory' was not working on my client windows machines, but it was already activated in the configuration (inventory)

I double-checked the 'saas.ps1' script which is installed with windows agent by default.

There is a if statement which checks the used language but only french or english.

So if you are on another client language as in my expamle german, you have to change that lines of code.

Original code piece:

$lang = Get-Culture

if($lang.Name -eq "fr-FR"){
    $pwlang = "Nom d'enregistrement"
}else{
    $pwlang = "Record Name"
}

Changed code piece:

$lang = Get-Culture

if($lang.Name -eq "fr-FR"){
    $pwlang = "Nom d'enregistrement"
}elseif($lang.Name -eq "de-DE"){
    $pwlang = "Eintragsname"
}else{
    $pwlang = "Record Name"
}

So for your language just check the '$lang.Name' variable inside your on powershell on the client computer to get the country code (mine was: 'de-DE') and by using the command 'ipconfig /displaydns' you can check the translated 'Record Name'-entry which is the first line of each dns entry (mine was: 'Eintragsname').

Then put it inside th script with an elseif statement like I mentioned above.

After all you have to deploy the new 'saas.ps1' script to all of your clients with the deployment feature 'store' within the OSC-Software (path is: 'C:\Program Files\OCS Inventory Agent\Plugins' and you have to upload a zip-file as usual).
Alternatively you can change the 'saas.ps1' script on all the client manually, but meeeehhh.. no way.

The 'Web application Inventory' should work for your foreign client from now on like a charm.

No real question, I just want to help those ppl that are struggeling with this function.

Kind regards


Viewing all articles
Browse latest Browse all 4573

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>