Quantcast
Channel: Forum Microsoft Identity Manager
Viewing all articles
Browse latest Browse all 4767

MIM PAM Powershell set-pamuser

$
0
0

Hi !

I'm trying to use the set-pamuser cmdlet to deactivate users remotely but i receive the following error message.

Strangely, i'm able to use the new-pamuser remotely.

Regards,

Yannick

$remote = get-credential
$session = new-pssession -connectionUri "http://pamsrv.private.local:5985/wsman" -Credential $remote -Authentication Credssp
Invoke-Command -session $session -scriptBlock {set-pamuser -user (get-pamuser -SourceAccountName FRAEV04) -PrivAccountActive $true}
Log Name:      Privileged Access Management
Source:        Microsoft.IdentityManagement.PamPowerShell
Date:          12/02/2016 10:35:08
Event ID:      338
Task Category: None
Level:         Warning
Keywords:      Classic
User:          N/A
Computer:      PAMSRV.private.local
Description:
[Id: b99a7c53-11a2-4cc1-a10f-27169e03ce1f]
User attributes of 'FRUSER' could not be modified.
Exception:
The server is unwilling to process the request.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Microsoft.IdentityManagement.PamPowerShell" />
    <EventID Qualifiers="0">338</EventID>
    <Level>3</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2016-02-12T09:35:08.000000000Z" />
    <EventRecordID>27610</EventRecordID>
    <Channel>Privileged Access Management</Channel>
    <Computer>PAMSRV.private.local</Computer>
    <Security />
  </System>
  <EventData>
    <Data>[Id: b99a7c53-11a2-4cc1-a10f-27169e03ce1f]
User attributes of 'FRAEV04' could not be modified.
Exception:
The server is unwilling to process the request.
</Data>
  </EventData>
</Event>


Viewing all articles
Browse latest Browse all 4767

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>