User Tools

Site Tools


drucker_eines_remotecomputers_ueber_wmi_abfragen

Abfrage ein Remotecomputers nach installierten Druckern. Einfach das Script kopieren, als .ps1 speichern und über eine Powershellkonsole starten

request_Printer.ps1
function Get-ScriptDirectory
{
$Invocation = (Get-Variable MyInvocation -Scope 1).Value
Split-Path $Invocation.MyCommand.Path
}
$ScriptPath = Get-ScriptDirectory
 
 
$computer = read-host "please enter Computername"
Get-WmiObject Win32_Printer -ComputerName $computer |
  Select-Object  __Server, Name, Local, Systemname |
  Format-Table -AutoSize
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
drucker_eines_remotecomputers_ueber_wmi_abfragen.txt · Last modified: 2017/06/13 17:26 by 212.204.110.133