diff options
author | Jordan Borean <jborean93@gmail.com> | 2018-07-31 07:48:54 +1000 |
---|---|---|
committer | Matt Davis <nitzmahone@users.noreply.github.com> | 2018-07-30 14:48:54 -0700 |
commit | 9259f31fee03e75a99a23b9fde5106b43f0cc437 (patch) | |
tree | 56c10a1eab499632f2059b0f7b3a177ecaba38f0 /lib/ansible/modules/windows/win_user.ps1 | |
parent | d79027b77fb30d45cd322a54f151c559b11bc1ad (diff) | |
download | ansible-9259f31fee03e75a99a23b9fde5106b43f0cc437.tar.gz |
Add Ansible.ModuleUtils.PrivilegeUtil and converted code to use it (#43179)
* Add Ansible.ModuleUtils.PrivilegeUtil and converted code to use it
* Changed namespace and class to be a better standard and fixed some typos
* Changes from review
* changes to avoid out of bound mem of server 2008
* changes to detect failure when setting a privileged not allowed
Diffstat (limited to 'lib/ansible/modules/windows/win_user.ps1')
-rw-r--r-- | lib/ansible/modules/windows/win_user.ps1 | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/ansible/modules/windows/win_user.ps1 b/lib/ansible/modules/windows/win_user.ps1 index 1c3964506a..715861e923 100644 --- a/lib/ansible/modules/windows/win_user.ps1 +++ b/lib/ansible/modules/windows/win_user.ps1 @@ -70,12 +70,9 @@ namespace Ansible '@ $original_tmp = $env:TMP - $original_temp = $env:TEMP $env:TMP = $_remote_tmp - $env:TEMP = $_remote_tmp Add-Type -TypeDefinition $platform_util $env:TMP = $original_tmp - $env:TEMP = $original_temp $handle = [IntPtr]::Zero $logon_res = [Ansible.WinUserPInvoke]::LogonUser($Username, $null, $Password, |