Answered by:
Testing a UNC Path with an ManagedService Account

Question
-
Hi folks,
Iam using a managed Service Account for starting a Script on one of my Server. Inside the script I use Test-Path (UNC Path on a fileserver).
Always getting back the path don't esxist. For checking purposes I already added the Account in the DomainAdmin group but nothing changed.
Do I need a Manages ServiceGroup account? did't seems logic to me cause the scripts runs on the server and not on the fileserver. I have created the account with the "-RestrictedToSingleComputer" parameter.
With a "normal" user the script runs fine.
Any hints?
Best regards
Andreas Ernst
MCITP:EA, MCP, MCTS- Edited by Andreas Ernst Wednesday, November 11, 2015 3:22 PM
Answers
-
You restricted it and then asked it too contact a second computer.
\_(ツ)_/
- Marked as answer by Andreas Ernst Thursday, November 12, 2015 12:56 PM
All replies
-
You restricted it and then asked it too contact a second computer.
\_(ツ)_/
- Marked as answer by Andreas Ernst Thursday, November 12, 2015 12:56 PM
-
-
-
Hi there,
So I created a new user. Same error
New-ADServiceAccount -name Service1-DNSHostName Service1.domain.int -PrincipalsAllowedToRetrieveManagedPassword Domain Computer
Install-ADServiceAccount Service1OR
New-ADServiceAccount -name Service1-DNSHostName Service1.domain.int -PrincipalsAllowedToRetrieveManagedPassword fileserver$, otherserver$
Install-ADServiceAccount Service1won't work
thx for your help!
Best regards
Andreas Ernst
MCITP:EA, MCP, MCTS
- Edited by Andreas Ernst Thursday, November 12, 2015 12:16 PM
-
-