D
D
David Fokin2021-05-17 12:30:39
PowerShell
David Fokin, 2021-05-17 12:30:39

How to make PowerShell work through Kerberos?

I have a script that ...

UPD: My question is, there are scripts that are in the TaskScheduler and run on behalf of another user (who has access to the resource), now the script goes to a certain resource, gets authorized and downloads the file
, it does it like this: Invoke- WebRequest -uri $site -UseDefaultCredential
as soon as I disable NTLMv2 it all stops working. Turning it on is not an option. How can I fix it?

UPD: if you leave -credential "" and enter crits manually, then similarly, it works with ntlm enabled, not with disabled.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Dmitriev, 2021-05-17
@SignFinder

You need to go google how to set up WinRM via Kerberos - and set it up. And then write to the forum - what you did and what did not work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question