IIS 7 and Above
ASP.NET - AD Unlock-Account
Re: ASP.NET - AD Unlock-Account
Jan 20, 2020 07:01 AM|Jalpa Panchal|LINK
Your issue is not related to iis. This forum discusses issues about IIS and PowerShell integration. Use this forum to ask PowerShell questions, discuss issues, request features and yell at IIS team members.
I suggest you post the issue in asp.net forum.
and your codes don't relate to AD. I suggest you post your question in asp.net forum with more detail like what is your issue, what error did you face, what is your exact requirement.
Thanks for understating.