From e6cd216adee9b406c6bfd400adc14177aa619774 Mon Sep 17 00:00:00 2001 From: Paul Durivage Date: Thu, 19 Jun 2014 16:41:24 -0500 Subject: [PATCH] Check .GetType rather than object directly --- library/windows/win_user.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/windows/win_user.ps1 b/library/windows/win_user.ps1 index 25267b631bf..306d7a0db2f 100644 --- a/library/windows/win_user.ps1 +++ b/library/windows/win_user.ps1 @@ -79,7 +79,7 @@ $user_obj = Get-User $username if ($state -eq 'present') { # Add or update user try { - if ($user_obj) { + if ($user_obj.GetType) { Update-Password $user_obj $password } else {