Update wmi2dokuwiki.ps1
This commit is contained in:
@@ -43,7 +43,11 @@ $diskCount = $disks.Count
|
|||||||
# DOKUWIKI OUTPUT
|
# DOKUWIKI OUTPUT
|
||||||
# ======================
|
# ======================
|
||||||
Write-Output "<code>"
|
Write-Output "<code>"
|
||||||
Invoke-Expression "\\fs01\data\Applicaties\figlet\figlet\figlet.exe -f \\fs01\data\Applicaties\figlet\figlet\fonts\standard.flf $($env:COMPUTERNAME)"
|
if (Test-Path 'C:\Program Files (x86)\figlet\fonts\standard.flf') {
|
||||||
|
Invoke-Expression "& 'C:\Program Files (x86)\figlet\figlet.exe' -f 'C:\Program Files (x86)\figlet\fonts\standard.flf' $($env:COMPUTERNAME)"
|
||||||
|
} else {
|
||||||
|
Invoke-Expression "\\fs01\data\Applicaties\figlet\figlet\figlet.exe -f \\fs01\data\Applicaties\figlet\figlet\fonts\standard.flf $($env:COMPUTERNAME)"
|
||||||
|
}
|
||||||
Write-Output "</code>"
|
Write-Output "</code>"
|
||||||
Write-Output "^ $hostname ^ ^"
|
Write-Output "^ $hostname ^ ^"
|
||||||
Write-Output "| FQDN | $fqdn |"
|
Write-Output "| FQDN | $fqdn |"
|
||||||
|
|||||||
Reference in New Issue
Block a user