есть скрипт, вызываю его из консоли, всё ок. если закидываю в планировщик, от своего имени с наивысшими привелегиями, кучу всего в АД делает, но ругается на Get-ADPrincipalGroupMembership, говорит не может найти. в чём может быть разница?
A computer account doesn't disable logins to that computer, a user account disabled, disables login to any computer in a domain. ... If the user has already logged in, their password is cached so even if the computer is disabled in AD , they can still login.