Jump to content
oemript

How to logon different window user using AutoIT?

Recommended Posts

oemript

I would like to know on how to logon different window user using AutoIT.

1) window > switch to user (AccountB) under existing user (AccountA)

2) Logon AccountB

3) window > switch to user (AccountA) under existing user (AccountB)

Does anyone have any suggestions?
Thanks in advance for any suggestions

 

Share this post


Link to post
Share on other sites
orbs

short answer: you can't.

unless you're talking about a GUI-oriented VM viewer, and even then it's not always possible. and considering what you are asking falls short of malicious (bypass Windows security), i doubt you'll get any help before you are asked to provide more information.

long answer: you don't need to.

whatever goal you are trying to achieve, there is probably a better to do it without secondary logon.

Share this post


Link to post
Share on other sites
Melba23

oemript,

2 hours ago, orbs said:

considering what you are asking falls short of malicious (bypass Windows security), i doubt you'll get any help before you are asked to provide more information

Too right. A detailed explanation of what you are trying to do is required before this thread goes any further.

M23


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______Open Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
oemript
2 hours ago, Melba23 said:

oemript,

Too right. A detailed explanation of what you are trying to do is required before this thread goes any further.

M23

A program can only be run under 1 user account for 1 instance only, so I need to run a program under different user account, which can be done on 2 separated PCs without any problem, but if I would like to run 2 programs at the same time under a single PC, which requires to logon 2 different user accounts.  Another user account need to be logon manually everyday, if any approach to logon another account to solve this manual task, that would be great.

Does anyone have any suggestions?
Thanks, to everyone very much for any suggestions (^v^)

 

Share this post


Link to post
Share on other sites
Subz

Have you looked at the RunAs functions?

Share this post


Link to post
Share on other sites
Melba23

oemript,

Quote

 I need to run a program under different user account

And just why exactly? Your explanation was very detailed on what you want to do, but I want to understand why.

Subz,

In future, when a Mod is querying a thread please stay out until the all-clear is given. Thanks in advance for your cooperation.

M23


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______Open Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
aa2zz6
5 hours ago, oemript said:

A program can only be run under 1 user account for 1 instance only, so I need to run a program under different user account, which can be done on 2 separated PCs without any problem, but if I would like to run 2 programs at the same time under a single PC, which requires to logon 2 different user accounts.  Another user account need to be logon manually everyday, if any approach to logon another account to solve this manual task, that would be great.

Does anyone have any suggestions?
Thanks, to everyone very much for any suggestions (^v^)

 

If I'm reading this correctly, I tried creating multiple users on a simple machine thinking I could possible run a single script on a certain program but I was disappointed finding out that it was impossible. I resorted to using VMware Workstation to run multiple sessions.

Share this post


Link to post
Share on other sites
oemript

I would like to switch user from User_A to User_B and would it be possible to implement using AutoIT?

The task involved as shown below

1) switch user under window

2) select User_B

3) input password and click for logon

Does anyone have any suggestions?
Thanks in advance for any suggestions

 

Share this post


Link to post
Share on other sites
orbs

and how is this different from your previous topic?

Share this post


Link to post
Share on other sites
Melba23

oemript,

I agree with orbs. And seeing how you posted this in a lesser frequented section of the site (perhaps hoping that no-one would notice?) and have still failed to offer any sensible reason as to why this is required I am locking the thread. Do NOT start another one on the same subject.

M23


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______Open Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×