登录事件下载脚本问题 [英] sign-in events download script question

查看:67
本文介绍了登录事件下载脚本问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您转到登录事件页面并单击下载脚本,则该脚本实际上可以按预期运行,但是会出现密码提示.是否有人修改了此脚本以不提示输入密码?应该使用哪种身份验证方法?一世 需要每天在一个任务上运行.

if you go to the sign-in events page and click on download script, the script actually works as expected but there is a password prompt. Has anyone modified this script to not prompt for a password? which authentication method should be used for this? I need to run this daily on a task.

这是脚本中提示输入密码的部分:

This is the part of the script that prompts for a password:

$authority = https://login.microsoftonline.com/$tenantId
$authContext
 = New-Object "Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext" -ArgumentList $authority

$authResult
 = $authContext.AcquireToken($MSGraphURI, $clientId, $redirectUri, "Always") 



推荐答案

这是标准的ADAL调用,如Modern身份验证中所示.如果您需要详细信息,请阅读此处: https://docs.microsoft.com/en-us/graph/auth-overview
That's a standard ADAL call, as in Modern authentication. Read here if you need details: https://docs.microsoft.com/en-us/graph/auth-overview


这篇关于登录事件下载脚本问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆