7 thoughts on “Powershell : Automated Login to All your Websites in One Go.

  1. I did it.

    # Feed in your credentials to input fields on the web page
    $usernamefield = $ie.Document.getElementByID(‘login-usr’)
    $usernamefield.value = ‘xxxxxxx’
    $passwordfield = $ie.Document.getElementByID(‘login-pass’)
    $passwordfield.value = ‘xxxxxxx’
    #$Link=$ie.Document.getElementByID(‘signup-spotify’)
    $Link=$ie.Document.getElementsByTagName(“button”)
    Foreach ($btn2 In $Link)
    {
    if ($btn2.outerHTML -eq “Login”)
    {
    $btn2.Click()
    }
    else{
    }
    }

    Liked by 1 person

  2. Hi, What todo about below errors ?

    You cannot call a method on a null-valued expression.
    At C:\Users\43919773\Desktop\AUTO\25102016\one-connect.ps1:14 char:1
    + $usernamefield = $ie.Document.getElementByID(‘userid’)
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

    Like

  3. Hi Prateek,

    can assist me in below —
    the requirement is as below

    1- Open multiple tab for all different Sites
    2- Remove security SSL
    3- Auto key user ID and Password
    4- Hit enter to get login
    5- from step 2-4 go one by one sites
    6- Close complete IE in every 5 min and reopen and steps 1-6

    Please assist and u may mail me at mukeshgupta23may@gmail.com

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s