Fix differences with devel.

This commit is contained in:
Matt Clay
2016-12-08 09:38:05 -05:00
parent 1c9a58a885
commit c709b22e5c
32 changed files with 78 additions and 237 deletions

View File

@@ -87,7 +87,7 @@ Function UserSearch
{
#Search by samaccountname
$Searcher = [adsisearcher]""
If ($searchDomainUPN -eq $false) {
$Searcher.Filter = "sAMAccountName=$($accountName)"
}

View File

@@ -67,4 +67,4 @@ Remove-Item $logfile;
Set-Attr $result "log" $logcontents;
Exit-Json $result;
Exit-Json $result;

View File

@@ -28,7 +28,7 @@ Function UserSearch
$searchDomain = $false
$searchDomainUPN = $false
if ($accountName.Split("\").count -gt 1)
{
{
if ($accountName.Split("\")[0] -ne $env:COMPUTERNAME)
{
$searchDomain = $true

View File

@@ -66,7 +66,7 @@ options:
- If this file or directory exists the specified src will not be extracted.
required: no
default: null
author: Phil Schwartz
author: Phil Schwartz
'''
EXAMPLES = r'''