1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Any Programmers Here? Windows Automation Question

Discussion in 'General Programming Chat' started by agag2, Oct 20, 2014.

  1. agag2

    agag2 Supreme Member

    Joined:
    Feb 17, 2009
    Messages:
    1,308
    Likes Received:
    254
    Hi

    Wondering of there's a way to automate tasks from 1 user account (in windows) to another. For example, can a program automatically log in and out of a user account on windows and share / sync information between accounts?

    Thanks
     
  2. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,148
    edit: duhhh, misread the title/post, see below
     
  3. agag2

    agag2 Supreme Member

    Joined:
    Feb 17, 2009
    Messages:
    1,308
    Likes Received:
    254
    Anyone else......?
     
  4. facebookdude

    facebookdude Elite Member

    Joined:
    Feb 28, 2010
    Messages:
    1,506
    Likes Received:
    2,490
    Why would you want to do this?
     
  5. TapTapper

    TapTapper Junior Member

    Joined:
    Apr 15, 2009
    Messages:
    163
    Likes Received:
    138
    Occupation:
    coder, webstore mangler
    Location:
    US
    Home Page:
    "Share / Sync information" isn't a windows term. Windows on a PC is not a phone.

    You're talking about a hard drive with user permissions and more, so that involves copying files and setting reg entries, object properties etc.

    Is one of these users an (the) admin? If you're version 7 or later there are sophisticated inheritance values for disk content. Anyone that knows how to push a win install can do that.

    Are you talking about sharing online settings and content in win7 or 8? In that case it's not a win question it's an online acct question. Different skill set.

    You're being too vague to get an answer. Which also means too shady.
     
    Last edited: Oct 20, 2014
  6. agag2

    agag2 Supreme Member

    Joined:
    Feb 17, 2009
    Messages:
    1,308
    Likes Received:
    254
    OK.. I will explain clearly why I want this and what I want it for.. Maybe this will help you decide..

    Let's say I want to manage multiple eBay or Paypal stealth accounts using some software. Now in order to avoid being detected by eBay / Paypal I want to create 1 windows account for each eBay/Paypal pair.

    Since all accounts will be interconnected (for example if I list 1 item on eBay w one account I don't want to list it again in another account and so on) there needs to be:

    1. Some way for different accounts to share simple info (such as items listed or other account related info)
    2. Switch between accounts automatically and launch program

    I hope this helps.

    Thanks
     
  7. FBGuru

    FBGuru Senior Member

    Joined:
    Sep 22, 2013
    Messages:
    928
    Likes Received:
    1,171
    Location:
    Personality Type : ESTP
    Its much easier to create virtual machines in Virtualbox/VMWare and manage your accounts(ebay/paypal) all at the same time from different windows accounts.
     
  8. qrazy

    qrazy Senior Member

    Joined:
    Mar 19, 2012
    Messages:
    1,113
    Likes Received:
    1,712
    Location:
    Banana Republic
    You can look into windows impersonation classes or shell API's to launch a program as a different user.

    Again it depends on the implementation of your software to communicate between different instances such as using a database/file/registry.
     
    • Thanks Thanks x 2
  9. zombie007

    zombie007 Newbie

    Joined:
    Mar 9, 2014
    Messages:
    23
    Likes Received:
    21
    Not sure why you would want to share data between accounts, you should try keeping everything separate and create a unique program for each account. You can have a program running on each account and they will all run at the same time, at least it works for me that way when i have imacros running, i can have it running then loginto a different account and run imacros on that one.
     
  10. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,148
    :facepalm: In my original answer I thought you were referring to the WinAutomation software, didn't read the title properly :(

    For your use case, I 'd go with different VMs using a program to fetch the data I want for each one from a central database.
     
  11. srb888

    srb888 Elite Member

    Joined:
    Jul 30, 2008
    Messages:
    3,260
    Likes Received:
    5,067
    Gender:
    Male
    Occupation:
    WebzSurfer
    Location:
    Sun, Mon, Tue, WTF, Sat!!! :)
    There is a Windows 7 (I'm using Win 7, have no idea if its the same about 8 or 8.1 etc.) function which you can Run called "netplwiz". Click the "Run..." and type netplwiz. There, you can add new Windows user accounts and also uncheck the "Users Must Enter A User Name And Password To Use This Computer check box". The next time you log in Windows, you'll not be asked which user account you wish to log in. :) Easy part over...

    My logic (!) :):
    In the User Accounts > Advanced > Advanced (Advanced user management), it will open the Iusermgr windows, and there, click on the Users menu-item. There, you will see all the user accounts. Right-Clicking on any user account, and opening the Properties, you can disable/enable any user account. I think that you can (programmatically) disable all other accounts and only enable a particular account through a variable each time, and that way you can open that user account the next time the PC boots. Programatically of course roll through all your user accounts one by one when the PC boots, so that the PC boots into the next user account (mentioned in a separate batch file, and using the variable set above, or whatever other way) when it reboots and then goes through your complete do-list. Be very careful about writing (and testing, re-testing) such a program or there will be a huge auto-mess which will be hard to correct later.

    P.S.:
    May be, if this is workable, then you can find a Windows programmer who can write the code for you by advertising in our Hire A Freelancer section... During the tests, don't use the program on ebay, but use/test on another disposable but similar site.

    HTH :)
     
    Last edited: Oct 20, 2014
  12. obamax

    obamax Newbie

    Joined:
    Nov 5, 2014
    Messages:
    15
    Likes Received:
    0
    Windows isnt built for loging multiple account simultanously, so "syncing inf" would be hard, but it is possible through virtual server i think.