HTA application queries to AD in windows PE

Hi all,
i have created a hta application which checks for users in a specific OU and sets a TS variable to true if the user exist in that OU and false if they don't.The script is running in win-PE mode but when i am using my username to login it looks like it's
not able to query ad for the user and always sets the TS variable to false.
rest of the TS runs only when the variable is set to true else it shutdowns the machine.
Script is working fine when executed manually.
how to make HTA to connect to AD in Win-pe mode.(this hta script is calling a vb function to connect to AD).
Thanks
Pranay.

This is the script i am using :-
<HEAD>
<style type="text/css">
  @import url("pos.css");
 </style>
<TITLE>
Login :
</TITLE>
<hta:application id="objAD"
    applicationname="AD Query"
    icon="Graphics\title.ico"
    Border="thin"
    Scroll="NO"
    Maximizebutton="no"/>
</HEAD>
<SCRIPT LANGUAGE="VBScript">
sub Window_onLoad
window.resizeTo 400,400
End sub
function fnCheckAccess()
strDomain = "Server"
strUserID=Username.value
strUserPWD=password.value
MsgBox strDomain
MsgBox strUserID
MsgBox strUserPWD
const ADS_SECURE_AUTHENTICATION = &h0001
const ADS_CHASE_REFERRALS_ALWAYS = &H60
dim objDSO
dim objUser
dim strPath
strPath = "LDAP://" & strDomain & "/OU=Users,DC=" & strDomain
On Error Resume Next
set objDSO = GetObject("LDAP:")
set objUser = objDSO.OpenDSObject (strPath, strUserID, strUserPWD, ADS_SECURE_AUTHENTICATION OR ADS_CHASE_REFERRALS_ALWAYS)
if Err.Number <> 0 then
    MsgBox "Incorrect Password for " & g_strDomain & "\" & g_strUserID & "." & vbCRLF & vbCRLF & "Error " & Err.Number & ": " & Err.Description, 16, "Access Denied"
    fnCheckAccess = False
else
    fnCheckAccess = True
end if
Err.Clear
On Error Goto 0
Set env = CreateObject("Microsoft.SMS.TSEnvironment")
set oTSProgressUI = CreateObject("Microsoft.SMS.TSProgressUI")
oTSProgressUI.CloseProgressDialog()
env("ALLOWOSDBUILD") = "NO"
If  fnCheckAccess = "True" then
  env("ALLOWOSDBUILD") = "YES"
End If
set objDSO = Nothing
set objUser = Nothing
end function
function Clear()
Username.value = ""
password.value = ""
end function
</SCRIPT>
<BODY Background="Graphics\sheet2.jpg" text="#000000" >
<font face="segoe ui light"><H3><center>To Start Deployment enter username password</center></H3></font>
<div id=T1>
Username: <input type="text" name="Username">
</div>
<div id=T2>
Password: <input type="password" name="password">
</div>
<input id=add type="button" value="Login"_name="run_button" onClick="fnCheckAccess">
<input id=Clear type="button" value="Clear"_name="run_button" onClick="Clear">
</p>
</BODY>
Script is running fine when executed in deployed os but in win pe mode it's failing to connect with ad.
Please help.
Thanks
Pranay.

Similar Messages

  • How do I set Safari to prompt before closing multiple tabs OR reopen all of the closed tabs when when I relaunch the application?  The "Reopen all windows from last session" is unselectable.

    How do I set Safari to prompt before closing multiple tabs OR reopen all of the closed tabs when when I relaunch the application?  The "Reopen all windows from last session" is unselectable.

    It would seem if your choose "Show my windows and tabs from last time" '''''and''''',
    *when you last closed Firefox, you had no web site open (just a blank tab), that it would open just that blank tab
    *when you last closed Firefox, you had one or more tabs/web site open, that would allow you to "Restore Previous Session"
    #Have you tried that?
    #If so, what is happening in each circumstance when you reopen Firefox?
    '''Restore Previous Session'''<br />
    Open tabs are automatically saved when closing Firefox beginning in Firefox 4. To open your last session, after Firefox starts, click History > Restore Previous Session. For this to work
    #You must be remembering history (Options > Privacy > Remember my browsing history).
    #*See [https://support.mozilla.com/en-US/kb/Options%20window%20-%20Privacy%20panel Options window-Privacy panel]
    #You must not be using Private Browsing or permanent Private Browsing
    #*See [https://support.mozilla.com/en-US/kb/Private%20Browsing Private Browsing]
    #You must not use Clear Recent History or Clear history when Firefox closes
    #*See [https://support.mozilla.com/en-US/kb/Clear%20Recent%20History Clear Recent History]
    #*See [https://support.mozilla.com/en-US/kb/Options%20window%20-%20Privacy%20panel Options window-Privacy panel]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]

  • Apple application support was not found windows error 2 when downloading itunes

    I have been trying to download itunes after not using it for at least 2 years. I am getting the message  "apple application support was not found - windows error 2" Can anyone help - I can't play my songs at all!!
    Trudy

    See Troubleshooting issues with iTunes for Windows updates.
    tt2

  • In XP Mode on Windows 7, after installing application as like I would normally on an actual XP system, application will not start in windows XP mode itself.

    Just did a clean install of windows 7.  I then downloaded windows XP mode and Windows Virtual Mode.  Everything ran flawlessly and everything is updated.  I needed to Install a program called Dentrix 10.5 which can only be installed on Windows
    XP for numerous reasons and one including it needing to use Microsoft .NET 1.0.  I installed this program on Windows XP Mode as I would as if I were installing it with a computer with windows XP.  The Install of the program went fine and completed.
     Still being in Windows XP Mode I wanted to see how it would run.  I hit Start Menu, All Programs, Startup Programs, and clicked on the Dentrix Application.  Once I clicked it the time glass on the  mouse was there for a few seconds and
    then went away without the application starting up at all.  One thing that I'm thinking is why after I clicked Start Menu, All programs, is why was Dentrix not in its own folder and instead in the Startup programs after All programs?  Any Ideas how
    to get the program to run?  Like I said, I am trying to run the program in Windows XP Mode and not Windows 7 as I have found many Q's and A's on only how to do that.  Also this is the second application which I downloaded and the first being Microsoft
    Security Essentials so I know I don't have some virus from keeping from opening the Dentrix Application.  Incase you are wondering the Microsoft Security Essentials opens and runs fine in Windows XP Mode.  So Pretty Much My Main question is: Why
    my application not starting up in Windows XP Mode?  Any help is greatly appreciated! 

    Once I clicked it the time glass on the mouse was there for a few seconds and then went away without the application starting up at all.
    A couple times a week I open Dentrix 11.0 in a virtual machine on Windows 7. I experience the same thing almost every time I open the VM. I must first get Windows to "reconnect" my network for me. Do this by opening Start | My Computer, and
    double-click on the mapped network drive leading to the Dentrix data. After I can see the Dentrix data drive, Dentrix will be able to read it too and will open correctly.
    In Dentrix, seeing nothing (or briefly seeing a hourglass and then seeing nothing) is a classic sign that either:
    - The database files are marked as Read Only
    - The program cannot access the data files (probably the folder it is pointed to does not contain any data).
    - Or possibly the database path does not point to the right location where the data files are located
    Open the folder where you installed the program files of Dentrix (probably c:\program files\dentrix\) and double-click to run EP.EXE. The database path will be revealed. You can "Browse" to the correct location, and "OK" through the dialog to
    close them. Then try opening Dentrix again.
    Should that not work, open Start | My Computer, and try to open the path (starting with the drive letter, then the folder structure you saw in EP.EXE).
    By the way, if your path uses UNC (starting with two back-slashes and then the computer name of the server), you'll need to map a network drive and replace your path with a mapped drive path. (Map a drive in Start | My Computer | Tools | Map Network
    Drive). Dentrix really doesn't like UNC paths.
    Dentrix 10.5 can only be installed on Windows XP
    Microsoft .NET 1.0
    Just FYI, Microsoft .Net Framework 1.0 is required only for the "Time Clock" feature of Dentrix. Windows 7 already has .NET Framework features up to version 3.5 built in, and Time Clock (in my experience) works great under Windows 7 without installing
    .NET 1.0.
    Have you tried installing directly in Windows 7? I have a specific reason why I don't (I have a newer version of Dentrix installed on my Win 7 machine, and use the VM to go back to an older database occasionally - so I can't mix two different program versions
    on the same machine). If you were to try installing this program under Windows 7 directly, Dentrix will launch the Microsoft .NET Framework install after the Dentrix install is completed. Just cancel out at that point (Windows will probably give you an "incompatibility"
    error message anyway before allowing the install to go through) and I believe you can run it under Windows 7. That might eliminate the networking-through-the-VM issue. So, if you have no other reason not to install Dentrix on your Windows 7 machine directly,
    I'd try it. You might be surprised and if it works, you'd save yourself some headache with connecting the to network through the virual machine.
    Is why was Dentrix not in its own folder and instead in the Startup programs after All programs?
    During the installation, on the Select Program Folder screen, you must have clicked the "Startup" option under Existing Folders. By default, "Dentrix" will be typed into the box at the top. If you simply clicked Next, it would have gone
    to the correct location. The screen is a little confusing, because something in the list will be highlighted by default, but what is typed into the box at the top will actually be used.

  • Installing Application Server 10g R2 on Windows Server 2008

    Hi all,
    I want install Oracle Application Server 10g R2 on Windows Server 2008 ( 64 bit).
    It always prompt error "ORA-12560: TNS Adapter error", when I try to install Oracle Application Server Infrastructure 10g.
    Does anyone know how to solve this problem?
    Thanks in advance.
    Regards,
    MKBH

    Basically use for internal web server only. I'm not sure can I use Oracle weblogic 11g instead of OracleAS 10g R2. I'll use some of the components like Oracle HTTP Server, Oracle Application Server Containers for J2EE(OC4J), Reports Services, Forms Services, Metadata Repository for Oracle Application Server Middle-Tier and etc.

  • I'm trying to load photoshop elements 12 on my mac os x and when i click setup.exe i get :    You can't open the application "Setup.exe" because Microsoft Windows applications are not supported on OS X.

    i'm trying to load photoshop elements 12 on my mac os x and when i click setup.exe i get : You can’t open the application “Setup.exe” because Microsoft Windows applications are not supported on OS X.  The premiere elements 12 out of the same box loaded just fine.

    An .exe file means you have the windows version. Go get the mac version:
    Download Photoshop Elements products | 12, 11, 10
    but I hope you have a mac serial number.

  • How can i install application server 10g R2 on windows server 2008

    Dear friends,
    I need to install application server 10g r2 on windows server 2008.
    Is there any patch for this. where can I get those patches?
    plz help.
    Divya Alok

    MKBH wrote:
    Why OracleAS 10.1.3.x version doesn't have OracleAS Infrastructure components?Because not all OAS releases were complete software versions. By complete software versions, I mean they were not a software version where each component (like Identity Management, Portal, BI, SOA Suite, etc.) would have an updated version.
    OAS Release 2 (10.1.2.x.x) was a complete release but OAS Release 3 (10.1.3) was not. After release 2, Oracle Fusion Middleware OFM 11g is now a complete release.
    OracleAS Identity Mgmt (10.1.4) was the updated version of OAS Id Mgmt after OAS 10.1.2 and before OFM 11g.

  • Iplanet application server 6.5 on windows xp

    I'm trying to install iplanet application server 6.5 on windows xp. but for some reason it just hangs at the end of the install. Leaving my no choice but to quit the instalation. Has anyone sucessfully install 6.5 on xp? and could anyone help? would be appreciated.
    Thanks in advance...

    I've just spent a day or two mucking around with getting the iPlanet 6.5 Application Server install running with IIS on XP, and have got as far as having the "fortune" application running. I also encountered the "hanging installation" problem on my 5th or 6th reinstallation. Here is my checklist of things to do:
    1. As has been pointed out earlier, you must have a static IP address assigned to the machine you are installing on.
    2. You should set up IIS before installing iPlanet - during the install you'll be prompted to set up the Web Connector for IIS.
    3. If you find that the install hangs at the end (seems to be in the middle of building the Start Menu shortcuts), then deinstall from the Control Panel | Add Remove Software and run the install in Windows 2000 compatibility mode - this article lays out how to start applications in compatibility mode:
    http://www.microsoft.com/windowsxp/using/games/expert/durham_og.mspx
    4. You need to switch IIS to run in-process as per these instructions:
    http://docs.sun.com/source/816-5788-11/app1.html#14411
    see the section "Registering the Plug-in on IIS 5.0 running on Windows 2000".
    Note that in XP the tab is called "Directory" rather than "Virtual Directory" and ensure that you grant Execute Permission to both Scripts and Executables (default is just Scripts I think)
    5. You need to grant security permissions to the registry key
    \\local machine\\software\\iplanet\\Appserver\\6.0\\CCS0\\HTTPAPI
    as per the post by Vaidyanathan Iyer :
    http://swforum.sun.com/jive/thread.jspa?threadID=20660&tstart=90
    Regards

  • Applications server 10g R2 certified windows server 2008.

    hi all.
    can anyone help me out.Is application server 10g R2 and windows server 2008 certified or still not certified?
    any suggestion?
    sarah

    Please see this link.
    http://www.oracle.com/technology/software/products/ias/files/as_certification_r2_101202.html#BAJGCBEA
    AMN

  • Why does 'You can't open the application "setup.exe" because Microsoft Windows applications are not supported on OS X.' pop up whenever i try to download the latest flash player?

    whever i try to access websites, most of them work but facebook, youtube, my school email, sometimes even google, and alot other websites wont work for me and will tell me i need to update the lastest Flash Player. but when i try to download it, it says 'You can’t open the application “setup.exe” because Microsoft Windows applications are not supported on OS X.' what does that even mean?? This happens on safari, google chrome and i downloaded firefox and it worked for a couple of hours and then stopped working again.
    please help, thanks in advance.

    1. Install Adobe Flash Player from Adobe site.
        http://get.adobe.com/flashplayer/
       Download it first. Click Safari in the menubar and select “Quit Safari”.
        Follow the prompts and install it.
        Restart computer. Relaunch Safari.
    2.  Allow  Plug-ins
        Safari > Preferences > Security
        Internet Plug-ins >  "Allow  plug-ins"
        Enable it.

  • How to embed flash video in HTA Application

    How to embed flash video in HTA Application?

    How to embed flash video in HTA Application?
    It is exactly the same as embedding in a normal HTML page.  Check with flash forum on how to use flash.
    ¯\_(ツ)_/¯

  • I can't open application "Setup EXE" because Microsoft Windows applications are not supported on OS X.

    I can't open application "Setup Exe" because Microsoft Windows applications are not supported on OS X!  How do I install Windows software?

    Sorry I misinformed you this is update bundle, if you already have Office installe, you can search Amazon for Micrsoft Office for Mac, sorry for the error,
    Check here:
    http://www.amazon.com/Office-Mac-Home-Student-2011/dp/B0064PFB9U/ref=sr_1_1?ie=U TF8&qid=1387734396&sr=8-1&keywords=microsoft+office+mac+download
    Also check around you may find better pricing, I included tis for an example.

  • You can't open the application "MFI_Simulator.exe" because Microsoft Windows applications are not supported on OS X. Can someone assist. I have Office for Mac 2011 on MacBook Pro 13''.

    You can’t open the application “MFI_Simulator.exe” because Microsoft Windows applications are not supported on OS X. Can someone assist. I have Office 2011 on my MacBook Pro, OS X, 10.9.1.

    Your Office 2011, though a Microsoft product, is designed to work with OSX the Mac operating system.  Any program/application ending .exe is an executable program for Windows.  It will only work in Windows and is not part of or openable with Microsoft Office.
    the application you want to open needs Windows - you have a couple of alternatives:
    Open it on a Windows PC
    Install a valid version of Windows via Bootcamp (or Parallels or VM Fusion) which will allow you to boot your Mac into Windows where it will function like a Windows PC and you can use it to run the application.
    See if the manufacturers of MFI_Simulator have a Mac version available.
    Please note that if you follow the second option, then you will need to purchase a copy of Windows (if you do not have one already). BootCamp is free (part of OSX) but Parallels and VM Fusion cost too.  I see quite a few posts from people who buy Parallels and try to run the program under Parallels - this doesn't work - you need to install Windows as well.
    Hope this helps.

  • Hello,  I'm not able to download itunes 10.5 on my dell laptop. It says that an error occured and to download separately and then install.  However, this is stillnot working.  Due to this I am not able to update any applications. I am using windows vista.

    Hello,  I am not able to download itunes 10.5 on my dell laptop.  It says to try to download separately and then install.  However, an error message still comes up.  Due to this, I am not able to update any applications.  I am using windows vista.  If I reinstall itunes entirely, will I loose my many playlists that I have? And will this effect the same playlist that I have on my ipod???

    Installing, and uninstalling, applications never touches or removes the data.
    Clean out and uninstall all the apple programs and software thru Programs and manually.
    Might want to use Revo and CCleaner
    I always use manual standalone installers (and keep a couple backup versions)
    itunes 10.5 may affect iTunes media playlists, not sure, depends on what you have.
    A search of these forums will show some threads.
    I'd clean up vista, you need SP2 or later, and specific error message?
    I wonder as you arenot the first with a dell if maybe the OS or included software.
    Security programs like Norton and older versions of Kaspersky have been implicated.
    Also settings in IE that affect pop-ups and plug-ins.

  • How can i let my java application closes the other opened windows

    how can i let my java application closes the other opened windows: like any other Microsoft Internet Explorer windows ... provided that my java application is not the one i used to open those other windows.... thanks in advance

    you'll have to use JNI to access the windowAPI
    then you need a list of window handles ... I think there was a function called getWindow and in order to close them you use sendMessage .... for details check out msdn (microsoft developer network)
    somwhere I saw a tool called JUtil, which might help you getting started on accessing the win api from java
    regards
    Spieler

Maybe you are looking for

  • File-File Info not working

    I was told that I could find the image count of my camera if I view the advanced section of "file info" but I have found that "file info" does not even function.  I have tried NEF files, JPEG files, PSD files and no joy.  All I get is a blank window.

  • Freight charges on return delivery

    Hi, How freight chargers are reversed while doing 161 mvt type. Is there any separate mvt required to return freight charge. How do we handle this plz clarify me.... BR Vel Note :Please search forum,subject is widely discussed in various threads in t

  • How to calculate number of threads  running  on Windows 2000 terminal?

    How to calculate number of threads running on Windows 2000 terminal for the oracle process? I have installed Oracle 9i DataBase with 6 patch(9.2.0.6.0) on Windows 2000 Terminal. But,after database is started up, when i check up the sessions in v$sess

  • Undergrad Students: Co-Op position available using LabVIEW

    To Whom It May Concern: It is good to see the recent posts about LabVIEW jobs, and we have a Co- Op position available using LabVIEW. I recently posted a similar message to the info-LabVIEW mailing list, and someone there recommended I also post to c

  • IPhoto file size is now 90Gb - does this matter?

    I have been using iPhoto for many years and now the file size is around 90GB which is starting to become a problem when backing up this file specifically and for the file size of Time Machine on my spare external HDD. Are there any known ramification