-
Notifications
You must be signed in to change notification settings - Fork 0
/
Test.ps1
31 lines (29 loc) · 3.62 KB
/
Test.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
$ErrorActionPreference = "Stop"
[string]$private:Name = 'Test-Name'
[string]$script:ActualController = (Get-ADDomainController).HostName
[string]$private:FreeSam = 'abc000034'
Get-ADUser -Server $ActualController -Filter "(DisplayName -eq '$Name' -or DisplayName -like '$Name|*') -and SamAccountName -ne '$FreeSam'"
Get-ADUser -Server $ActualController -Filter "(DisplayName -eq '$Name' -or DisplayName -like '$Name|*') -and SamAccountName -ne '$FreeSam'"
Get-ADUser -Server $ActualController -Filter "(DisplayName -eq '$Name' -or DisplayName -like '$Name|*') -and SamAccountName -ne '$FreeSam'"
Get-ADUser -Server $ActualController -Filter "(DisplayName -eq '$Name' -or DisplayName -like '$Name|*') -and SamAccountName -ne '$FreeSam'"
Get-ADUser -Server $ActualController -Filter "(DisplayName -eq '$Name' -or DisplayName -like '$Name|*') -and SamAccountName -ne '$FreeSam'"
Get-ADUser -Server $ActualController -Filter "(DisplayName -eq '$Name' -or DisplayName -like '$Name|*') -and SamAccountName -ne '$FreeSam'"
Get-ADUser -Server $ActualController -Filter "(DisplayName -eq '$Name' -or DisplayName -like '$Name|*') -and SamAccountName -ne '$FreeSam'"
Get-ADUser -Server $ActualController -Filter "(DisplayName -eq '$Name' -or DisplayName -like '$Name|*') -and SamAccountName -ne '$FreeSam'"
Get-ADUser -Server $ActualController -Filter "(DisplayName -eq '$Name' -or DisplayName -like '$Name|*') -and SamAccountName -ne '$FreeSam'"
Get-ADUser -Server $ActualController -Filter "(DisplayName -eq '$Name' -or DisplayName -like '$Name|*') -and SamAccountName -ne '$FreeSam'"
Get-ADUser -Server $ActualController -Filter "(DisplayName -eq '$Name' -or DisplayName -like '$Name|*') -and SamAccountName -ne '$FreeSam'"
Get-ADUser -Server $ActualController -Filter "(DisplayName -eq '$Name' -or DisplayName -like '$Name|*') -and SamAccountName -ne '$FreeSam'"
Get-ADUser -Server $ActualController -Filter "(DisplayName -eq '$Name' -or DisplayName -like '$Name|*') -and SamAccountName -ne '$FreeSam'"
Get-ADUser -Server $ActualController -Filter "(DisplayName -eq '$Name' -or DisplayName -like '$Name|*') -and SamAccountName -ne '$FreeSam'"
Get-ADUser -Server $ActualController -Filter "(DisplayName -eq '$Name' -or DisplayName -like '$Name|*') -and SamAccountName -ne '$FreeSam'"
Get-ADUser -Server $ActualController -Filter "(DisplayName -eq '$Name' -or DisplayName -like '$Name|*') -and SamAccountName -ne '$FreeSam'"
Get-ADUser -Server $ActualController -Filter "(DisplayName -eq '$Name' -or DisplayName -like '$Name|*') -and SamAccountName -ne '$FreeSam'"
Get-ADUser -Server $ActualController -Filter "(DisplayName -eq '$Name' -or DisplayName -like '$Name|*') -and SamAccountName -ne '$FreeSam'"
Get-ADUser -Server $ActualController -Filter "(DisplayName -eq '$Name' -or DisplayName -like '$Name|*') -and SamAccountName -ne '$FreeSam'"
Get-ADUser -Server $ActualController -Filter "(DisplayName -eq '$Name' -or DisplayName -like '$Name|*') -and SamAccountName -ne '$FreeSam'"
Get-ADUser -Server $ActualController -Filter "(DisplayName -eq '$Name' -or DisplayName -like '$Name|*') -and SamAccountName -ne '$FreeSam'"
Get-ADUser -Server $ActualController -Filter "(DisplayName -eq '$Name' -or DisplayName -like '$Name|*') -and SamAccountName -ne '$FreeSam'"
Get-ADUser -Server $ActualController -Filter "(DisplayName -eq '$Name' -or DisplayName -like '$Name|*') -and SamAccountName -ne '$FreeSam'"
Get-ADUser -Server $ActualController -Filter "(DisplayName -eq '$Name' -or DisplayName -like '$Name|*') -and SamAccountName -ne '$FreeSam'"
Get-ADUser -Server $ActualController -Filter "(DisplayName -eq '$Name' -or DisplayName -like '$Name|*') -and SamAccountName -ne '$FreeSam'"