Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2314

verschachtelte Kommandos

$
0
0

Hallo,

ich brauche mal kurz Hilfe.

Folgendes funktioniert einwandfrei:

$SID=(Get-ADUser myaccount -Server myolddomain.net:3268).SID.Value
Get-ADUser -Filter 'SIDhistory -eq $SID' -Server mynewdomain.net -Properties SIDhistory

Wie bekomme ich das als Einzeiler hin?

Vielen Dank,

Michael


Viewing all articles
Browse latest Browse all 2314


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