Windows PowerShell Home
"powershell has stopped working" on exit after creating IIS user
4/9/2014 9:57:02 AM
User(s) can reproduce this bug
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.9220.127.116.11.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.
How often does this happen?
Have you seen this problem before in this product?
I do not know if this issue existed previously
1) Open PowerShell as an Administrator
2) Run the following commands (username and password can be changed):
3) Exit PowerShell. Error dialog and exception will show.
I would expect to be able to execute these commands -- which are standard, well-documented commands for creating IIS users -- without putting PowerShell into a state that throws an exception on exit. I would accept a workaround if there's another way to script the IIS user creation that doesn't cause this.
to post a comment.
Please enter a comment.
on 4/12/2014 at 1:48 AM
I have the same problem.
to post a workaround.
Please enter a workaround.
© 2014 Microsoft