I have an ASP.NET page that I'm trying to use to change the password of the local Administrator account on remote machines. When I run this on my workstation it works, but when I post it to the intranet server and run it I get this error:
[blue]System.Exception: Cannot create ActiveX component. at Microsoft.VisualBasic.Interaction.GetObject(String PathName, String Class)[/blue]
Here's my code
Any ideas why this won't work when posted to the server? Thanks!
[blue]System.Exception: Cannot create ActiveX component. at Microsoft.VisualBasic.Interaction.GetObject(String PathName, String Class)[/blue]
Here's my code
Code:
Dim strComputer = ddlServers.SelectedValue
Dim strUser = txtUser.Text
Dim objUser = GetObject("WinNT://" & strComputer & "/" & strUser & ", user")
objUser.SetPassword(txtPW1.Text)
objUser.SetInfo()
Any ideas why this won't work when posted to the server? Thanks!