Hi, I have a problem restarting the server via Otter after promoting Windows Server to a domain controller, Restart-Server generates an error: Server restart failed: The current user does not have permission to initiate a restart. The service is running on the system account. What is the cause of the problem?
Posts made by Adam1
-
[Otter]Server restart failed
-
[InedoAgent] Agent->Server communication
Hi, is it planned to add the possibility of changing the way the server communicates with the agent? I would like the agent to contact the server and not, as it works now, the server to the agent.
-
[OTTER] Avaliability of variables from multiple roles
Hi,
I have trouble accessing variables from different roles. I have two roles defined:- Role1.
a. It has a TestVariable variable of Value1.
b. Has a configuration plan:
Ensure-Directory c:\$TestVariable;
- Role2
a. It has a TestVariable variable of Value2.
b. Has a configuration plan:
Ensure-Directory c:\$TestVariable;
After assigning both roles to the server, only the directory from Role1 is created. I would expect two directories to be created.
Is this correct?This is the execution output:
DEBUG: 2020-08-21 19:16:22Z - Beginning collection run...
DEBUG: 2020-08-21 19:16:22Z - Collecting configuration...
DEBUG: 2020-08-21 19:16:22Z - Looking for c:\Value1...
DEBUG: 2020-08-21 19:16:22Z - Directory does not exist.
DEBUG: 2020-08-21 19:16:22Z - Comparing configuration...
DEBUG: 2020-08-21 19:16:22Z - Difference: Exists
DEBUG: 2020-08-21 19:16:22Z - =Template=> True
DEBUG: 2020-08-21 19:16:22Z - = Actual => False
INFO : 2020-08-21 19:16:22Z - Configuration drift detected.
DEBUG: 2020-08-21 19:16:22Z - Adding to execution plan.
DEBUG: 2020-08-21 19:16:22Z - Collecting configuration...
DEBUG: 2020-08-21 19:16:22Z - Looking for c:\Value1...
DEBUG: 2020-08-21 19:16:22Z - Directory does not exist.
DEBUG: 2020-08-21 19:16:22Z - Comparing configuration...
DEBUG: 2020-08-21 19:16:22Z - Difference: Exists
DEBUG: 2020-08-21 19:16:22Z - =Template=> True
DEBUG: 2020-08-21 19:16:22Z - = Actual => False
INFO : 2020-08-21 19:16:22Z - Configuration drift detected.
DEBUG: 2020-08-21 19:16:22Z - Adding to execution plan.
DEBUG: 2020-08-21 19:16:22Z - Collection run complete.
INFO : 2020-08-21 19:16:22Z - Collection run succeeded.
DEBUG: 2020-08-21 19:16:22Z - Beginning execution run...
DEBUG: 2020-08-21 19:16:22Z - Looking for c:\Value1...
DEBUG: 2020-08-21 19:16:22Z - Directory does not exist, creating...
INFO : 2020-08-21 19:16:22Z - Directory c:\Value1 configured.
DEBUG: 2020-08-21 19:16:22Z - Storing configuration template...
DEBUG: 2020-08-21 19:16:22Z - Looking for c:\Value1...
INFO : 2020-08-21 19:16:22Z - Directory c:\Value1 configured.
DEBUG: 2020-08-21 19:16:22Z - Storing configuration template...
INFO : 2020-08-21 19:16:22Z - Execution run succeeded. - Role1.
-
RE: Availability of variables from sub environments
Yes, the problem occurs in Otter.
-
Availability of variables from sub environments
Hi,
I have a problem with the availability of variables if it is defined in the parent environment and the server is in two sub environments simultaneously. The problem does not occur if the server is added to only one sub environment.Schema of environments:
TestEnvironment
|-SubEnvironment1
|-SubEnvironment2The variable is defined in TestEnvironment.
I have added a very simple configuration plan to the server:
Ensure-Directory c:\$TestVariable;
I get an error:
ERROR: 2020-08-21 11:31:05Z - Could not resolve variable $TestVariable.What is the cause of the problem?
-
Credentials_CreateOrUpdateCredential
Hi,
I would like to use Native API for Otter to add new credentials but I have a problem with creating encrypted password using the key from the configuration file.
Do you have any guide on how to generate such password? -
RE: Maps in vector and PowerShell
Should this problem already be solved in version 1.7.0? I have this version of the extension installed but the problem still exists.
-
Ensure-DscResource and DSC Resource with embedded subclass
Hi, how can I use Ensure-DscResource with a resource containing embedded subclass e.g. https://github.com/dsccommunity/cNtfsAccessControl. Can you please give some examples?
-
How to always execute Get-Asset in Role?
I use the custom DSC resource to import and apply the certificate for use with the RDS role.
Before running Ensure-DscResource I need to download the appropriate certificate from the repository. I'm trying to download the certificate to a temporary directory using Get-Asset to use it later with a DSC resource. The server configuration is as follows:
Get-Asset server.domain.lab.pfx ( Type: File ); Ensure-DscResource ( ConfigurationKey: $Role, Name: xRDCertificateConfiguration, Module: xRemoteDesktopSessionHost, Properties: %( Role: RDRedirector, ConnectionBroker: server.domain.lab, ImportPath: $PathCombine($WorkingDirectory, server.domain.lab.pfx), Credential: $PSCredential(Certificate, P@ssw0rd) ) );
The file is unfortunately not downloaded.
If I create a plan with the same script, everything works fine and the file is downloaded.How can I assure that this file is downloaded in a role? I try to avoid using Ensure-Asset.