T
2022-11-19 06:56:15 UTC
Hi All,
Windows Chromebook Edition (W11-Pro 22H2)
https://learn.microsoft.com/en-us/windows/win32/api/wtsapi32/nf-wtsapi32-wtssendmessagea
Rudy probably knows this one off the top of his head.
I have a weird one trying to use WTSSendMessageA. It
works perfectly from the command line as both
user and Administrator.
WTSSendMessageA(
$Handle,
$SessionId,
$pTitle,
$TitleLength,
$pMessage,
$MessageLength,
$Style,
$Timeout,
$pResponse,
$bWait );
But when I try to run it from the Task Scheduler
as Administrator, I get back: error 5 (GetLastError),
"Access is Denied" (nf-winbase-formatmessagew)
https://ibb.co/9nR9pcc
And to add insult to injury, The pop up you see
from ibb comes from a DLL a guy at M$ wrote me.
And that one works in Task Scheduler. AAAAHHHHHH!!!!
$Handle = WTS_CURRENT_SERVER_HANDLE;
$bWait = 1;
Yours in frustration,
-T
Windows Chromebook Edition (W11-Pro 22H2)
https://learn.microsoft.com/en-us/windows/win32/api/wtsapi32/nf-wtsapi32-wtssendmessagea
Rudy probably knows this one off the top of his head.
I have a weird one trying to use WTSSendMessageA. It
works perfectly from the command line as both
user and Administrator.
WTSSendMessageA(
$Handle,
$SessionId,
$pTitle,
$TitleLength,
$pMessage,
$MessageLength,
$Style,
$Timeout,
$pResponse,
$bWait );
But when I try to run it from the Task Scheduler
as Administrator, I get back: error 5 (GetLastError),
"Access is Denied" (nf-winbase-formatmessagew)
https://ibb.co/9nR9pcc
And to add insult to injury, The pop up you see
from ibb comes from a DLL a guy at M$ wrote me.
And that one works in Task Scheduler. AAAAHHHHHH!!!!
$Handle = WTS_CURRENT_SERVER_HANDLE;
$bWait = 1;
Yours in frustration,
-T