Sounds like an idea for an Orchestrator runbook activity! Thanks, ________________________________
Mark Mears mark.me...@cireson.com<mailto:mark.me...@cireson.com%0d> Phone: (757) 945-2651 [cid:image001.png@01CEAC8E.61A72300]<http://www.cireson.com/> [cid:image002.jpg@01CEAC8E.61A72300]<http://twitter.com/teamcireson> Check out our System Center App Store: www.cireson.com/app-store ________________________________ From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On Behalf Of Rajan K Sent: Thursday, November 7, 2013 2:34 PM To: mssms@lists.myitforum.com Subject: [mssms] HTA program for add a user in Local administrator group Hi, I need a HTA program for password validation and add an user in Local administrator group using SCCM 2007 RAP. Any ideal? ========================================================================== <HTML> <HEAD><TITLE>Password Validation</TITLE> <SCRIPT LANGUAGE="VBScript"> <!-- Sub Submit_OnClick Dim TheForm Dim password Set TheForm = Document.ValidForm If TheForm.Text1.Value = "password" Then MsgBox "access granted" Else MsgBox "access denied" `Current user need to be added in local administrator/ prompt for user input. End If End Sub Sub RunProgram Set oShell = CreateObject("WScript.Shell") oShell.Run _"NET.EXE LOCALGROUP /ADD Administrators ""NT Authority\Interactive""" _, 0, True End Sub --> </SCRIPT> </HEAD> <BODY> <H3>Password Validation</H3><HR> <FORM NAME="ValidForm"> Enter your password: <INPUT NAME="Text1" TYPE="TEXT" SIZE="10"> <INPUT NAME="Submit" TYPE="BUTTON" VALUE="Submit"> </FORM> </BODY> </HTML> ========================================================================================== Regards Rajan
<<inline: image005.png>>
<<inline: image006.jpg>>