ARD Login script doesn't work with similar usernames

We have a lab of Macs all of which have two accounts whose usernames start with the same characters (rms and rmsadmin). There are times when we would like to be able to log on to all the computers simultaneously as the rmsadmin user with ARD. Because both of the usernames start with the same three characters, when the following commands are sent via ARD, the login process defaults to selecting the student account (rms) and won't log in as rmsadmin:
osascript -e 'tell application "System Events" to keystroke "rmsadmin"'; \
osascript -e 'tell application "System Events" to keystroke return'; \
osascript -e 'tell application "System Events" to delay 0.5'; \
osascript -e 'tell application "System Events" to keystroke "password"'; \
osascript -e 'tell application "System Events" to delay 0.5'; \
osascript -e 'tell application "System Events" to keystroke return'
Anyone have a solution to this?
Thanks in advance for taking the time to read this and giving it some thought.
Peggy
Xserve PowerPC G4, MacBook Pro, PowerBook, etc.   Mac OS X (10.4.8)  

Since we do have the same problem but also some additional infos I bump this thread in the hopes of getting some answers.
The login script does run, but unfortunatly only when I start it manually. It does not run during login.
The only purpose of the script is to map some drives and it works fine under XP. Where else can I find infos about the problem?
Our script looks like that:
On Error resume next  
Set objADSystemInfo = CreateObject("ADSystemInfo")  
Set objUser = GetObject("LDAP://" & objADSystemInfo.UserName)  
strDn = objUser.Get("distinguishedName")  
strSam = objUser.Get("sAMAccountName")  
strCn = objUser.Get("cn")
Set colGroups = objUser.Groups  
Pos = Instr(strDn,"OU=")  
if Pos = 0 then  
    strOu = "" 
else  
    strOu = Mid(strDn,Pos+3,2)  
end if  
Set objNetwork = CreateObject("WScript.Network")   
objNetwork.MapNetworkDrive "h:", "\\frodo\user\" & strSam  
objNetwork.MapNetworkDrive "j:", "\\frodo\misc" 
objNetwork.MapNetworkDrive "l:", "\\frodo\department" 
objNetwork.MapNetworkDrive "q:", "\\frodo\projects" 
objNetwork.MapNetworkDrive "k:", "\\frodo\department\" & strOu  
if strOu = "IT" then  
    objNetwork.MapNetworkDrive "x:", "\\frodo\software" 
end if  
'WScript.Echo strOut  
For Each objGroup in colGroups  
    if objGroup.CN = "DreCash" then  
    objNetwork.MapNetworkDrive "p:", "\\gollum\drehcash" 
    end if  
Next 
objNetwork.MapNetworkDrive "i:", "\\192.168.1.6\shares" 

Similar Messages

  • Reboot script doesn't work with BOOTCD

    Hi,
    We do Image our Workstations with the BOOTCD which works fine. At the End,
    there's a reboot command.
    All worked out, we had to do some changes in the Scripts after upgrading to
    ZEN7, but now the Reboot doesn't work anymore, the Workstation just waits
    and needs to be reset by hand - we tried reboot, shutdown, init 6 - nothing
    worked so far.
    The usual reboot script seems not to work - Anybody got an idea how to
    reset the workstation after imaging automatically?
    Thanks

    Any luck with this? We seem to have run into a similar problem. After
    finishing with an image and coming back to the bash prompt, I type
    "shutdown -h now" When doing so, I get the error "Can't execute command in
    bin/init". If I type "shutdown", it recognizes it as a command and gives
    me the switches I should use. I get this error with any of the switches.
    Thanks in advance.
    > Automatic Reply wrote:
    > > TboRElligerM,
    > >
    > > It appears that in the past few days you have not received a response
    to your posting. That concerns us, and has triggered this automated reply.
    > >
    > > Has your problem been resolved? If not, you might try one of the
    following options:
    > >
    > > - Do a search of our knowledgebase at
    http://support.novell.com/search/kb_index.jsp
    > > - Check all of the other support tools and options available at
    http://support.novell.com in both the "free product support" and "paid
    product support" drop down boxes.
    > > - You could also try posting your message again. Make sure it is posted
    in the correct newsgroup. (http://support.novell.com/forums)
    > >
    > > If this is a reply to a duplicate posting, please ignore and accept our
    apologies and rest assured we will issue a stern reprimand to our posting bot.
    > >
    > > Good luck!
    > >
    > > Your Novell Product Support Forums Team
    > > http://support.novell.com/forums/
    > >
    >
    > try reboot -f

  • Login script doesn't work

    Hi,
    I use the login user server behavior which is build in
    coldfusion 7 as my loginscript. Somehow it doesn't work. If I fill
    in the username and password in the form the user is redirected to
    the login fail page instead of the login success page.
    I don't understand it because it's possible to do a query
    into the database with the username and password...
    This is the script I use:
    <cfif IsDefined("FORM.lognaam")>
    <cfset MM_redirectLoginSuccess="hm_beheer.cfm">
    <cfset MM_redirectLoginFailed="login.cfm?error=1265">
    <cfquery name="MM_rsUser" datasource="" username="">
    SELECT usr_login,usr_ww FROM usr WHERE
    usr_login='#FORM.lognaam#' AND usr_ww='#FORM.ww#'
    </cfquery>
    <cfif MM_rsUser.RecordCount NEQ 0>
    <cftry>
    <cflock scope="Session" timeout="30" type="Exclusive">
    <cfset Session.MM_Username=FORM.lognaam>
    <cfset Session.MM_UserAuthorization="">
    </cflock>
    <cfif IsDefined("URL.accessdenied") AND false>
    <cfset MM_redirectLoginSuccess=URL.accessdenied>
    </cfif>
    <cflocation url="#MM_redirectLoginSuccess#"
    addtoken="no">
    <cfcatch type="Lock"><!--- code for handling
    timeout of cflock --->
    </cfcatch>
    </cftry>
    </cfif>
    <cflocation url="#MM_redirectLoginFailed#"
    addtoken="no">
    <cfelse>
    <cfset MM_LoginAction=CGI.SCRIPT_NAME>
    <cfif CGI.QUERY_STRING NEQ "">
    <cfset MM_LoginAction=MM_LoginAction & "?" &
    XMLFormat(CGI.QUERY_STRING)>
    </cfif>
    </cfif>
    Hopefully somebody can help me with this..
    Regards,
    Kabbi

    Hi, thank you very much.
    However I still keep getting this error now:
    Variable MM_LOGINACTION is undefined.
    The error occurred in C:\xampp\htdocs\bar\beheer\login.cfm:
    line 187
    185 : <tr>
    186 : <td width="101" height="296"
    valign="top"><!--DWLayoutEmptyCell--> </td>
    187 : <td width="503" valign="top"><form
    name="login" id="login" method="POST"
    action="<cfoutput>#MM_loginAction#</cfoutput>">
    188 : <table width="503" border="0" cellpadding="0"
    cellspacing="0" class="blank" align="center">
    189 : <!--DWLayoutTable-->
    Do you perhaps also have an idea what wen wrong here?
    Regards,
    Kabbi

  • Why the same UI login script can't work with OS X 10.7 but 10.6 fine

    HI everyone,I can use a script as
    /usr/bin/osascript <<AppleScript
    tell application "System Events"
    keystroke "username"
    keystroke return
    delay 1.0
    keystroke "password"
    delay 1.0
    keystroke return
    end tell
    AppleScript
    to remote log in via UI when I'm in mac 10.6, but now it can't work with Lion,
    got an "execution error:An error of type -10810 has occurred.(-10810)" message
    then try another one which also works fine in 10.6:
    osascript<<EOT
    tell application "System Events"
    tell process "SecurityAgent"
    set value of text field 1 of group 1 of window 1 to "root"
    set value of text field 2 of group 1 of window 1 to "password"
    delay 0.5
    key code 36
    delay 0.5
    key code 36
    end tell
    end tell
    EOT
    still got error,need your help ,thanks a lot ~

    Either purchase Snow Leopard (if it will run on your computer) and then upgrade to iOS 7 or return the Nano.

  • User scripting doesn't work with NWBC

    I  connect SAP Server through NWBC client.
    I can see the embedded SAPGUI in it (7.20 patch 6)
    When run Hit Test from embedded SAPGUI - it recognize the hit elements.
    When record through Script Recording & Playback - it succeed.
    But when try play the recorded script - I get a failure >>  GetObject("SAPGUI") fail.
    I've noticed that there's no saplogon.exe process,that is responsible for the SAPGUI running object registration.
    When try to connect directly from saplogon - it works fine !!!
    I assume that I need to connect the NWBC's embedded SAPGUI in a different way - can someone help with this issue ?
    Best Regards,
    Assaf

    Dear J-Philippe,
    I'm just getting started with SAP GUI Scripting through the COM interface and I seem to be running into the same issue.
    You seem to be referring to a work-around mentioned in the README (#4). I don't know where the README is located, could you (or somebody else) please post the work-around or the README or location thereof?
    By the way, here's the code I'm running (it's Python):
    import win32com.client
    wrapper = win32com.client.Dispatch("SapROTWr.SapROTWrapper")
    sap_gui = wrapper.GetROTEntry("SAPGUI")
    application = sap_gui.GetScriptingEngine
    connection = application.FindById("con[0]") # returns /app/con[0]
    session = connection.FindById("ses[0]") # throws exception
    The last statement fails with an exception "The control could not be found by id".
    When I use connection.Children(0) instead I get the exception "The enumerator of the collection cannot find an element with the specified index"
    Same results when using SapGui.ScriptingCtrl.1.
    Thanks!
    Edited by: brucevdk on Jan 31, 2011 7:51 PM
    I found the mentioned SAP note 1526624 somewhere (I don't yet have access to the official resource) and it made me think that perhaps I'm not dealing with the same issue. I'm also not sure what CreateObject is and if it's similar to the Dispatch functionality above (I'm just getting started with COM Programming). I'll play around with the recorder at work tomorrow to see if scripting works at all.

  • AS3.0 socket script doesn't work with flex coldfusion local server

    I am having a real problem using my script in flex coldfusion
    project. I tried everything I can to get an answer including
    posting a question in two groups with no success.
    I created a class that goes and connect through a socket
    connection and it works fine under “basic” flex
    project, however when I try to use the package in a flex coldfusion
    project I keep getting error messages:
    *** Security Sandbox Violation ***
    Connection to domainName.com:60 halted - not permitted from
    http://localhost:8500/ProjectName/bin/fileName.swf
    Error #2044: Unhandled SecurityErrorEvent:. text=Error #2048:
    Security sandbox violation:
    http://localhost:8500/ProjectName/bin/fileName.swf
    cannot load data from domainName.com:60. At
    com.elad.as3.socket::socketConnect$iinit()[C:\CFusionMX7\wwwroot\ProjectName\com\elad\as3 \socket\socketConnect.as:14]
    It looks to me that because there are two URL
    http://localhost:8500/ProjectName/bin/fileName.
    and
    C:\CFusionMX7\wwwroot\ProjectName\com\elad\as3\socket\socketConnect.as
    The player set the security in full effect and I cannot
    access other servers. I tried everything including setting the
    security and adding my local server to the approved servers.
    This is a real problem because I will not be able to test my
    application locally.
    Thanks in advance for the help,

    does anyone have any idea what could be going on here?  am i completely out to lunch?

  • Sign in to Skype doesn't work with correct usernam...

    I tried logging in with my correct username and password, but received error: Skype can't connect.
    So, I reset the password and can login to the Skype website.
    Tried logging in to Skype and same error: Skype can't connect.
    I'm using
    Mac OS X Version 10.9.5.
    Skype 5.8.0.1027.
    Solved!
    Go to Solution.

    Hi, Eiger, and welcome to the Community,
    DJmacman is correct, and I marked his observation as a solution to help everyone following in our footsteps: connection error messages are typical indicators that the software needs to be updated.  Please also see this FAQ article: 
    https://support.skype.com/en/faq/FA34438/why-should-i-update-my-skype-version-what-do-i-need-to-do-t...
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Mail.app redirect script doesn't work

    I'm trying to script a batch process to redirect selected messages in the Mail application. I found a nifty script on macosxhints.com--only one problem: it doesn't work with 10.4's Mail.
    The script fails ("variable is undefined") when trying to get the result of:
    redirect message with opening window
    According the the Mail dictionary, redirect should return an "outgoing message". Instead it appears to be undefined, and I can't figure out how to manipulate the newly created message to change the recipient, sender, etc.
    Any ideas?
    G5   Mac OS X (10.4.5)  

    has anyone gotten this script to work with 10.4.6?
      Mac OS X (10.4.6)  

  • IPhone original doesn't work with Belkin TuneBase FM after 2.0.1 update

    iPhone original doesn't work with Belkin TuneBase FM after 2.0.1 update

    Firstly, XE 10.2.0.1 isn't the same as 10gR2 10.2.0.1
    It was released a bit later and had some fixes that were in later 10.2.0.x patchsets (and also had some different security settings). Maybe they should have gone with 10.2.1.1.
    Second, the embedded PL/SQL gateway was okay for XE, but isn't supported for Apex on the Standard/Enterprise Edition until 11g. It doesn't mean it never works, but it does mean that you shouldn't rely on it.
    That said, there are other issues with 10.2.0.1 so I'd recommend going for the latest patchset anyway.
    Thirdly, if you get the XDB login dialog box, something has gone wrong. For the embedded PL/SQL gateway, XDB is acting as a virtual webserver. Generally what should happen is you connect to the webserver (XDB) and request a page (the APEX login page) and XDB should give it to you, no questions asked.
    If it asks you to login then the XDB webserver is running but is trying to get authorisation before it gives you the page. [By the way, if it does prompt for a username/password, it is expecting a database username/password, not an apex one or an O/S one] I'd suspect something is wrong with the setup.
    What happens if you ask for a simple image like
    http://URAN:8080/i/bottom_left.gif

  • JSDOC framework doesn't work with JSX

    Hil all,
    I'm new in the developpement of indesign javascript … I'm looking for a way to generate javascript documentation.
    I often use JSDOC to generate my doc but it doesn't work with JSX.
    Has someone a good tool who support JSX tag like #include?
    In advance, thanks you for your help

    You could try http://stdbrouw.github.io/Extendables/
    It's a framework for Indesign scripting that includes jsdoc (https://github.com/stdbrouw/Extendables/blob/master/doc/jsdoc.conf)
    John

  • I use an online application that doesn't work with FF, but I had been able to use an IE plugin within FF and it worked fine. After the last update (3.6.12), it says plugin is not compatable with version. Help?

    I use an online application that doesn't work with FF, but I had been able to use an IE plugin within FF and it worked fine. After the last update (3.6.12), it says plugin is not compatable with version. Help

    go to '''TOOLS '''then '''OPTIONS''' then '''ADVANCED''' then '''NETWORK tab''' then '''SETTINGS tab''' and select the options '''NO PROXY''' click '''OK''' and '''OK '''again in the next screen. With that you have disabled the proxy settings.
    ''if you like to not disable the proxy settings choose'' : '''Auto-detect proxy settings for this network''' (it is in the same session)
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • Comcast email doesn't work with firefox 26. I can't get a full inbox, get to my preferences to change, drop downs need to use arrows to get to

    firefox 26 doesn't work with comcast email. won't keep me signed in; won't show whole inbox in either full or lite; won't allow me to get to preferences; drop downs only work with arrows. I could just keep going.
    Earlier this week they worked fine.

    Be sure to delete the login.comcast.net cookie, it is not near the other comcast and xfinity cookies.

  • New Thunar doesn't work with Launchy, Chromium

    After installing the new XFCE 4.8, the new Thunar now doesn't work with Launchy, or Chromium. I haven't tried any other GUI programs that launch the file manager (Gnome-Do, Docks etc), but the only way to launchy Thunar now is via the XFCE Panel, or the desktop (via XFCE programs themselves, in essence).
    I've tested this, and opening a normal folder or file with Launchy means nothing happens. I'm guessing that Launchy is using Thunar here to launch the folder/file, and it's not working. For some reason though, I can launch in /usr/bin, which I'm guessing might be because Launchy doesn't use Thunar for that (only guesses though)? Meanwhile, Chromium downloads can't be opened, and the directory that contains the download can't be opened either. When I click the button that launches the download, or opens the directory containing the download, nothing happens.
    I have tried reinstalling Launchy and Thunar, to no avail. I haven't tried downgrading Thunar, but that's a process I'd rather not go through.
    Last edited by louis058 (2011-01-22 21:22:50)

    Hi!
    I don't know Launchy, but Chromium use xdg-open script for figure out which DE (Desktop Environment) is running and then, launch the properly file manager. With the new version of XFCE, this script doesn't detect XFCE and consider a generic DE. There are many solutions, but I just modified the xdg-open script (/usr/bin/xdg-open) and replaced the line:
    elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$' >/dev/null 2>&1; then DE=xfce;
    by a more logical line:
    elif [ "$DESKTOP_SESSION" = "xfce" ]; then DE=xfce;
    . It isn't the best solution because will be a new update for xdg scripts, I guess.
    For Launchy, you can launch it in a terminal and see if say some kind of error, like Chromium did.
    Cheers!
    Last edited by Versuchen (2011-01-30 16:43:25)

  • TS1398 My iphone 4 doesn't work with public wifi

    My iPhone 4 doesn't work with any of the apps apart from weather app when I use public wifi, such as iCloud. The sign still shows that I am connected with wifi hotspot even when the signal is the strongest.
      I have tried resting my iPhone 4. But doesn't work. But other wifi such as in my home or at uni which require login work well with the device.  I am not sure what seems to be the problem.

    Apple doesnt like generic network names link Linksys, or Belkin - when the network is a generic name there is no way to identify your "linksys" vs my "linksys" so it has trouble connecting and remembering these networks.
    You need to connect to a unique network name as described in http://support.apple.com/kb/ht4199

  • Keyconfig doesn't work with FF 24.0. Is there a way?

    I have just completed rebuilding my PC from a hard disk format. In doing so, I loaded the latest FF 24.0.
    Part of my essential application was a script that used keyconfig to cause Easy Copy to send page source to the clipboard, where the script parses it. Unfortunately, keyconfig does not work with FF 24.0.
    The write-up for Easy Copy starts to explain how to make it act on a key combination, rather than on mouse action without using keycopy - but then says how it doesn't need to, because it's too much effort, and besides - keyconfig exists and does the job - which, I agree, it used to, very well - but it doesn't any more.
    What to do? If there is no other way, can I get a downgrade of FF that works with keyconfig?
    There is a new add-on, key config (note the space), but it doesn't do what keyconfig did.

    Hmmm...
    The first time I loaded it was through the FireFox Add-ons tool, so that was the natural mechanism to use to do it again. Even now, it is listed on the tool - but a notice comes up saying that it doesn't work with FF 24.0. Before getting help from you, I was on the point of downgrading FireFox to be able to use the add-on with an older version.
    Another solution to my problem (possibly a better one) would be if the writer of Easy Copy would give instructions for making a key combination to cause his add-on to respond to the keyboard without the intervention of keyconfig - hence only one add-on would be needed instead of two. He has made hotkeys for two of his functions - to copy the URL to scratchpad, for example, but there is no hotkey to copy the page source. I was going to suggest it on his web site, but it doesn't accept input.

Maybe you are looking for

  • PO no not reflecting in GL/ Vendor line item display

    Hi Guys, Please let me know that why PO no (column is displaying but) data not reflecting in GL/ Vendor line item display using TCode FS10N? What may the possible reasons and how I can get the data flow in the column?

  • Playing video from a flash media server

    Can anyone point me to code to play streaming video from a Flash Media Server in Flex?

  • Trying to print on dvd with discus software?

    i am using the discus software recommended by Old Toad here. i feel like i have the settings right - 80 mm, etc. but the disk missed the middle of the dvd completely and the whole picture is off center. what am i doing wrong? deb

  • Problem  in Subtype Creation

    Prb 1  >    Whenver  we are creating the Subtype then it is   Compalsoury  that   to Copy the Standard Bus to  Customised Bus ( i.e  Z Bus )  and then Creating  Subtype ?   Or  We can  Directly   Create Subtype  for  Standard Bus  .    Please Provide

  • [Mostly Sorted] Extracting tags - regexp_substr and count help needed!

    My original query got sorted, but additional regexp_substr and count help is required further on down! Hi, I have a table on a 10.2.0.3 database which contains a clob field (sql_stmt), with contents that look something like: SELECT <COB_DATE>, col2,