Windows Live Login

Welcome Forums General PowerShell Q&A Windows Live Login

This topic contains 3 replies, has 3 voices, and was last updated by

4 years, 2 months ago.

  • Author
  • #19288

    Points: 0
    Rank: Member

    attempting to login to windows live using powershell but getting an error about cookies which is weird because I am able to login just fine when done manually.
    this is the exact message "cookies must be allowed"

    $windowslive = ""
    $result = Invoke-WebRequest -Uri $windowslive -SessionVariable wlive

    any help is appreciated.

  • #19311

    Points: 1
    Rank: Member
  • #19315

    Points: 1,704
    Helping HandTeam Member
    Rank: Community Hero

    Yeah, the problem here is that while a web browser automatically accepts and sends cookies, Invoke-WebRequest does not. The examples in Invoke-WebRequest's help file shows an example of accepting and re-sending a cookie. Since you're not using a web browser, you have to manually code some of the plumbing a web browser normally provides.

  • #19318

    Points: 0
    Rank: Member

    @sponsen – thanks for the link. I had seen this 🙂 but it didn't have what I need.

    @don – I took a look at the help file on my computer as well as online(help invoke-webrequest -online) but couldn't find an example that shows how to accept cookies.

The topic ‘Windows Live Login’ is closed to new replies.