Regarding the issue where the Windows Admin center SDK cannot obtain a session

Leo 0 信誉分
2025-07-25T16:16:07.7166667+00:00

I am developing an extension using the Windows Admin Center SDK.I built the project using the solution extension method and wrote the angular code and power shell script according to the official guidance document. WAC server is deployed on local host, and when I followed the guidance document to connect the session. I found that the session was always 'undefined'. Where is the problem and how to solve it?

The code for connecting the session is as follows:

const session = this.appContextService.powerShell.createSession('Local IP');

Official guidance document: https://learn.microsoft.com/en-us/windows-server/manage/windows-admin-center/extend/guides/powershell

Windows 开发 | Windows 应用 SDK
0 个注释 无注释
{count} 票

你的答案

提问者可以将答案标记为“已接受”,版主可以将答案标记为“已推荐”,这有助于用户了解答案是否解决了提问者的问题。