Jump to content

silverspirit

Members
  • Gesamte Inhalte

    2
  • Registriert seit

  • Letzter Besuch

Beiträge erstellt von silverspirit

  1. Hallo,

    ich versuche mich etwas an Powershell und stoße hierbei auf ein Problem:

     

    Ich möchte lediglich nach einen bestimmten Text im Verzeichnis suchen lassen (inkl.Wildcard * ) 

     

     

    $ServerHSD = Read-Host 'Server HSD ?'

    $HostDir = get-item -path $currentpath\* -include "$ServerHSD*" | format-list name

     

    Ich erhalte dies als Rückmeldung

    Microsoft.PowerShell.Commands.Internal.Format.FormatStartData Microsoft.PowerShell.Commands.Internal.Format.GroupStartData Microsoft.PowerShell.Commands.Internal.Format.FormatEntryData Microsoft.PowerShell.Commands.Internal.Format.GroupEndData Microsoft.PowerShell.Commands.Internal.Format.FormatEndData

     

    Wie füge ich das $ServerHSD Objekt mit der Wildcard zusammen sodass es hier funktioniert ?

     

    Vielen Dank

     

     

     

×
×
  • Neu erstellen...