![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Help to get PowerShell to add/edit/delete IIS Manager Users IIS7/2 I'm banging my head against the wall on this one...and hoping someone here can assist! ![]() I need to be able to add/edit/delete IIS Manager Users in IIS7 under Server 2008. I know that I need to use Microsoft.Web.Management and more specifically ManagementAuthentication.CreateUser, SetPassword, DeleteUser and such... My problem is that I'm not sure how to invoke the right namespace/assembly and then invoke the code under Powershell. The IIS Powershell Provider CTP2 doesn't seem to have a method. Can someone more knowledgeable assist me, please and thank you! Cheers, |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Help to get PowerShell to add/edit/delete IIS Manager Users II Hi Marco -- Thanks for the reply. Yes -- I had a look at that... Quote: > Says CreateUser() is a static method: > PS>[reflection.assembly]::loadwithpartialname("Micosoft.Web.Management") > PS>[microsoft.web.management.server.managementauthentication]::createuser("username","password") [microsoft.web.management.server.managementauthentication]: make sure that the assembly containing this type is loaded. Quote: > I don't see anything in the provider either, but that doesn't mean it > isn't there. Maybe I just don't know how to find it... ![]() I'll keep banging away -- If anyone has any other thoughts, please feel free to comment! Cheers |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Help to get PowerShell to add/edit/delete IIS Manager Users II Hi Marco -- Quote: > You're saying my code sample isn't working for you? If not, can you > copy and paste *exactly* what you're doing? that I copy and pasted your example: Quote: >[reflection.assembly]::loadwithpartialname("Micosoft.Web.Management") [reflection.assembly]::loadwithpartialname("Microsoft.Web.Management") (note the "r") <grin> it now works. You have made my day -- my week and possible my year! You're the best, Marco -- spello aside!! LOL. Cheers, |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Help to get PowerShell to add/edit/delete IIS Manager Users II > [reflection.assembly]::loadwithpartialname("Microsoft.Web.Management") Quote: > > (note the "r") <grin> it now works. I guess I should copy and paste also... |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
Task manager, registry edit and command promt disabled | General Discussion | |||
| What no IIS7 PowerShell Examples (yet)? | PowerShell | |||
| Creating an IIS7 application with PowerShell | PowerShell | |||
| Need complete ability to add/delete/edit C:Users | Vista account administration | |||
| Behaviour of elevation prompt for Standard Users On All Vista Edit | Vista account administration | |||