On a Windows Server 2012 box, I'm using PS to create a new IIS User (for automated deployments using MSDeploy). The command itself appears to work fine -- the user is created -- but as soon as I exit my PowerShell session (typing exit or just closing the command window), a dialog is displayed stating "powershell has stopped working", with the following details:
Problem Event Name: PowerShell
OS Version: 6.2.9188.8.131.52.400.8
Locale ID: 1033
The PS commands in question are:
I upgraded the server from PowerShell 3.0 to 4.0 and confirmed that the same problem still occurs.
Also, I've posted this on ServerFault but have not received any answers there, which led me to posting it here: http://serverfault.com/questions/587305/powershell-has-stopped-working-on-ps-exit-after-creating-iis-user
EDIT: This does not appear to happen on Windows Server 2012 R2.