0

Code:

$kullaniciisim = Get-ADUser -Filter {EmployeeNumber -eq '23214214'} | Select-Object SamAccountName
$kullaniciisim

Input:

SamAccountName
-------------- b.ozturk

I want $kullaniciisim to be b.ozturk not SamAccountName -------------- b.ozturk

How can I do it?

Gabriel Luci
  • 38,328
  • 4
  • 55
  • 84
Berke the Vulpes
  • 45
  • 1
  • 1
  • 6

1 Answers1

0

yea did it. Here is the fix:

$cc = $kullaniciisim.SamAccountName $cc

Berke the Vulpes
  • 45
  • 1
  • 1
  • 6