Can't read/write Miscrosoft Account as trusted device

Discussions and Tech Support related to using the iMacros Component for .NET in your applications.
Forum rules
iMacros EOL - Attention!

The renewal maintenance has officially ended for Progress iMacros effective November 20, 2023 and all versions of iMacros are now considered EOL (End-of-Life). The iMacros products will no longer be supported by Progress (aside from customer license issues), and these forums will also no longer be moderated from the Progress side.

Thank you again for your business and support.

Sincerely,
The Progress Team

Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Post Reply
yoli
Posts: 11
Joined: Fri Jun 24, 2016 11:15 am

Can't read/write Miscrosoft Account as trusted device

Post by yoli » Fri Jun 02, 2017 3:32 am

Hi,

I'm using iMacros.Component.dll(10.1.25.9792) to automate the login for "https://www.microsoft.com/licensing/ser ... /Home.aspx"

One of the step is to check "I sign in frequently on this device. Don't ask me for a code". But unfortunately, the script only works in Windows 2008R2. It fails on Windows 2016 and Windows 2012 R2.

It seems in the failed scenario the process can't read/write the the cookie so that it can't remember user input.

I ran the executable as administrator and it's unlikely that I'll upgrade to a newer version of the iMacro component.


I'm calling the component from a .Net application with the code and the script like below:

Code: Select all

				string sMacro = MacroScript + "\r\nSAVEAS TYPE=HTM FOLDER=\"" + m_Dir.Replace(@"\", @"\\") + "\" FILE=\"" + Path.GetFileNameWithoutExtension(m_File) + ".htm\"";
				string sStart = "CODE: SET !TIMEOUT_MACRO " + m_WebRules.Timeout + "\r\n" +
					 "SET !TIMEOUT_PAGE " + 60 + "\r\n" +
					"SET !TIMEOUT_STEP " + 60 + "\r\n";

				iim.Play(sStart + sMacro);
				while (iim.PlayerMode == PlaybackModes.Playing)
					System.Threading.Thread.Sleep(100);
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=https://www.microsoft.com/licensing/ser ... /Home.aspx
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=NAME:ctl00$ctl00$MainContent$BodyContent$signInButton
TAG POS=5 TYPE=DIV ATTR=TXT:Email,<SP>phone,<SP>or<SP>Skype
TAG POS=1 TYPE=INPUT:EMAIL ATTR=NAME:loginfmt CONTENT="user1"
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=ID:idSIButton9
TAG POS=5 TYPE=DIV ATTR=TXT:Password
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD ATTR=NAME:passwd CONTENT="user1 pwd"
WAIT SECONDS=5
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=ID:idSIButton9
TAG POS=1 TYPE=A ATTR=TXT:View<SP>License<SP>Summary
TAG POS=1 TYPE=A ATTR=TXT:Download<SP>License<SP>Information
ONDOWNLOAD FOLDER={{downloaddir}} FILE=* WAIT=YES

Any ideas?
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Can't read/write Miscrosoft Account as trusted device

Post by chivracq » Sun Jun 04, 2017 1:45 am

yoli wrote:Hi,

I'm using

Code: Select all

iMacros.Component.dll(10.1.25.9792)
to automate the login for

Code: Select all

"https://www.microsoft.com/licensing/servicecenter/Home.aspx"
One of the step is to check "I sign in frequently on this device. Don't ask me for a code". But unfortunately, the script only works in Windows 2008R2. It fails on Windows 2016 and Windows 2012 R2.

It seems in the failed scenario the process can't read/write the the cookie so that it can't remember user input.

I ran the executable as administrator and it's unlikely that I'll upgrade to a newer version of the iMacro component.


I'm calling the component from a .Net application with the code and the script like below:

Code: Select all

				string sMacro = MacroScript + "\r\nSAVEAS TYPE=HTM FOLDER=\"" + m_Dir.Replace(@"\", @"\\") + "\" FILE=\"" + Path.GetFileNameWithoutExtension(m_File) + ".htm\"";
				string sStart = "CODE: SET !TIMEOUT_MACRO " + m_WebRules.Timeout + "\r\n" +
					 "SET !TIMEOUT_PAGE " + 60 + "\r\n" +
					"SET !TIMEOUT_STEP " + 60 + "\r\n";

				iim.Play(sStart + sMacro);
				while (iim.PlayerMode == PlaybackModes.Playing)
					System.Threading.Thread.Sleep(100);

Code: Select all

TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=https://www.microsoft.com/licensing/servicecenter/Home.aspx
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=NAME:ctl00$ctl00$MainContent$BodyContent$signInButton
TAG POS=5 TYPE=DIV ATTR=TXT:Email,<SP>phone,<SP>or<SP>Skype
TAG POS=1 TYPE=INPUT:EMAIL ATTR=NAME:loginfmt CONTENT="user1"
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=ID:idSIButton9
TAG POS=5 TYPE=DIV ATTR=TXT:Password
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD ATTR=NAME:passwd CONTENT="user1 pwd"
WAIT SECONDS=5
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=ID:idSIButton9
TAG POS=1 TYPE=A ATTR=TXT:View<SP>License<SP>Summary
TAG POS=1 TYPE=A ATTR=TXT:Download<SP>License<SP>Information
ONDOWNLOAD FOLDER={{downloaddir}} FILE=* WAIT=YES
Any ideas?
Sorry, can't really help you, I have never used the DOT.NET Component, but I need to send a Mail to TechSup this coming week (for other "things"... (Fake Users / Spammers to be banned, etc...)), and I will mention your Thread (+ a few others...) for them to have a look...! (Sorry, that's all I can do at this moment...)
Last edited by chivracq on Mon Jun 05, 2017 11:35 pm, edited 2 times in total.
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
yoli
Posts: 11
Joined: Fri Jun 24, 2016 11:15 am

Re: Can't read/write Miscrosoft Account as trusted device

Post by yoli » Mon Jun 05, 2017 11:18 pm

any update?
chivracq
Posts: 10301
Joined: Sat Apr 13, 2013 1:07 pm
Location: Amsterdam (NL)

Re: Can't read/write Miscrosoft Account as trusted device

Post by chivracq » Mon Jun 05, 2017 11:39 pm

yoli wrote:any update?
Nope, still WE with today as a Bank-Holiday in most Countries I think, and TechSup doesn't work on WE's I think, and I haven't therefore sent my Mail yet...
- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE'/'Trial').
- FCI not mentioned: I don't even read the Qt...! (or only to catch Spam!)
- Script & URL help a lot for more "educated" Help...
Post Reply