-
Notifications
You must be signed in to change notification settings - Fork 532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when running Start-DscConfiguration #4206
Comments
Receiving an error when trying to import our snapshot to a new tenant: Start-DscConfiguration: The computer name was not specified and the configuration directory does not have any configuration files. |
We will need more details. Can you share the error and the redacted configuration used? |
Error log attached |
Lots of problems here, you're using PS7 instead of PS5 (see https://microsoft365dsc.com/user-guide/get-started/powershell7-support/), you have multiple versions of M365DSC installed so there's lots of "This class was already |
Please run Uninstall-Module PSDesiredStateConfiguration to remove the DSC module that is causing the issues in PS 5.1. |
Got one step further and got this error: PS C:\Temp> Start-DscConfiguration -Path C:\temp -Wait -Verbose
|
Could you please share the top of you configuration? It looks like the Node Element of your configuration is not properly set. |
Here is the entire PS session: PS C:\temp> Uninstall-Module PSDesiredStateConfiguration cmdlet Get-Credential at command pipeline position 1 Authentication methods specified:
⌛ Export took {1 seconds} Destination Path: C:\temp cmdlet Get-Credential at command pipeline position 1 PS C:\temp> Start-DscConfiguration -Path C:\temp -Wait -Verbose
We are using this link as a guide for the commands: https://microsoft365dsc.com/user-guide/get-started/cloning-tenants/ |
Thanks for the addtional context. Could you please verify if there is an configuration (.mof file) within the specified folder: c:\temp\ |
The export is not creating the blueprint since the command given in the prompt is incorrect, see below, there aren't any components called Intune, if all need to be exported you need to instead use parameter -Workloads INTUNE instead of Components Export-M365DSCConfiguration -Components @("Intune") -Credential $SourceCredential |
About a year ago I added a condition to bailout if no components were found to be extracted, but @ykuijs made a revamp there to select the most secure authentication methods and that chunk was lost. |
Getting these errors: So, I'm running the command against EXO and getting results. |
Could you share the list of API permissions of your M365 DSC Application within your tenant? Your command to set the permissions for your M365 DSC Application does not run successfully. You need either to list all resources - Intune is a workload and not a resource. |
PS C:\Temp> Start-DscConfiguration -Path C:\temp\M365TenantConfig -Wait -Verbose VERBOSE: Operation 'Invoke CimMethod' complete. Switched gears to EXO and this is the error we got when running that last command. |
Please run |
Complete |
Hello, |
Have you tried starting Start-DSCConfiguration again? |
Start-DscConfiguration -Path C:\temp\M365TenantConfig -Wait -Verbose VERBOSE: Operation 'Invoke CimMethod' complete. |
There is the following recommendation: We recommend increasing the MaxEnvelopeSize of the agent's WinRM to a minimum of 10 Mb. To make the change, run: Set-Item -Path WSMan:\localhost\MaxEnvelopeSizekb -Value 10240 You could additionally run |
Test-M365DSCAgent
The following recommendations were issued. We strongly recommend adressing those: |
Did you set the envelope size to 10MB as recommended? |
I got an error that the file path could be found. Would it be possible to have a working session to go through the steps together in real-time so we can address the errors as they come up? It seems like with every issue addressed, a new error comes up. |
Hi all. We are getting a ton of pressure to get our test environment stood up as we have some custom development work that needs to be done. Any help we can get is greatly appreciated |
@Rob-Davita were you able to run a configuration with the change to the max envelope size? Set-Item -Path WSMan:\localhost\MaxEnvelopeSizekb -Value 10240 |
As Ben stated above, he is getting a file path not found error when running that. |
Within PS 5 and as local admin and within an elevated PS? |
Yes. PS 5, local admin, and admin PS: Set-Item -Path WSMan:\localhost\MaxEnvelopeSizekb -Value 10240
|
Could you share the output of Get-ComputerInfo -Property @( $PSVersionTable |
PS C:\Temp> Get-ComputerInfo -Property @(
OsName : Microsoft Windows 10 Enterprise PS C:\Temp> $PSVersionTable Name Value PSVersion 5.1.19041.3803 |
Could you please verify that the windows remote management (start-service winrm) service is started as well. |
PS C:\Temp> start-service winrm
|
There is something off with your windows 10 box. Could you share the outcome of get-psdrive |
PS C:\Temp> get-psdrive Name Used (GB) Free (GB) Provider Root CurrentLocation Alias Alias |
Please try the following: winrm invoke Restore winrm/Config |
PS C:\Temp> winrm invoke Restore winrm/Config PS C:\Temp> winrm quickconfig Create a WinRM listener on HTTP://* to accept WS-Man requests to any IP on this machine. Make these changes [y/n]? y WinRM has been updated for remote management. Created a WinRM listener on HTTP://* to accept WS-Man requests to any IP on this machine.
|
Do you have any chance to use another system and try to run the configuration there. I haven’t seen this kind of issue before. |
From a jump I was able to run the set-item command with no error. I will work with Jeff to start the process from the beginning on the jump server. I will update if we run into any problems. |
Was able to pull the export of the M365 configuration.
Mode LastWriteTime Length Name -a--- 2/15/2024 11:34 AM 48296013 localhost.mof.error |
Could you share details about your configuration? e.g. Number of resource, File Size, number of lines,... Could you search for the value: 96591698 within your configuration? A while back, we had someone reporting the same issue, but we were not able to investigate: #3249 |
Number of lines: 546944 We just need the configuration settings for Exchange. Is there a way to just pull that and bypass objects? The script ran for two days because of 90+ thousand objects that needs to be exported. |
@BenG0uld I know I'm late, but the issue you mentioned in the last comment is because your exported configuration is too big. You need to reduce the size of the export to make it work. You can do that by specifying |
Closing for now. If you require further assistance, feel free to reopen it. |
Tasks
The text was updated successfully, but these errors were encountered: