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]
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.
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]
<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>
Exception:
The server is unwilling to process the request.
</Data>
</EventData>
</Event>