mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 14:51:19 -05:00
parent
64a7724340
commit
5ba5261c8b
3 changed files with 4 additions and 4 deletions
2
.github/ISSUE_TEMPLATE/create-new-issue.md
vendored
2
.github/ISSUE_TEMPLATE/create-new-issue.md
vendored
|
|
@ -35,4 +35,4 @@ labels:
|
|||
<!--- Include as many relevant details about the environment you experienced the problem in -->
|
||||
* PowerShell Version used (`$PSVersionTable.PSVersion`):
|
||||
|
||||
* Operating System and version (`Get-WmiObject Win32_OperatingSystem | Select-Object Version, BuildNumber, Caption`):
|
||||
* Operating System and version (`Get-IcingaWindowsInformation Win32_OperatingSystem | Select-Object Version, BuildNumber, Caption`):
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
function Get-IcingaNetbiosName()
|
||||
{
|
||||
$ComputerData = Get-WmiObject Win32_ComputerSystem;
|
||||
$ComputerData = Get-IcingaWindowsInformation Win32_ComputerSystem;
|
||||
|
||||
return $ComputerData.Name;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@ function Get-IcingaServices()
|
|||
$ServiceWmiInfo = $null;
|
||||
|
||||
if ($Service.Count -eq 0) {
|
||||
$ServiceWmiInfo = Get-WmiObject Win32_Service;
|
||||
$ServiceWmiInfo = Get-IcingaWindowsInformation Win32_Service;
|
||||
} else {
|
||||
$ServiceWmiInfo = Get-WmiObject -Class Win32_Service | Where-Object { $Service -Contains $_.Name } | Select-Object StartName, Name;
|
||||
$ServiceWmiInfo = Get-IcingaWindowsInformation Win32_Service | Where-Object { $Service -Contains $_.Name } | Select-Object StartName, Name;
|
||||
}
|
||||
|
||||
if ($null -eq $ServiceInformation) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue