Share via

error while exporting the task sequence using cmd

Richa Kumari 326 Reputation points
2021-11-24T06:45:17.2+00:00

Hello,
I have trying to export the task sequence cmd
Export-CMTaskSequence -Name $name.name -WithDependence $true -withContent $true -ExportFilePath ("z:\exported files.........................

It worked well for some ts but i found issue one TS exporting with error
ERROR Access to path 'z:\test -v2.3_testfiles\RMS1.0\client32\stage\xyzstrap\jre\COPYRIGHT'

later I have checked the path for RMS1.0 Package it showing Like below in TS
\xysserver\DML\Applications\SC\ASDCounty\RMS 1.0\DT-SHD-RMS1.0\client32

Not getting exact reason for error ,is the path too long issue or the folder name DT-SHD-RMS1.0 is not supported that why is showing \ in error path.

Please suggest,

Thanks
RICH

Microsoft Security | Intune | Configuration Manager | Other
0 comments No comments

1 answer

Sort by: Most helpful
  1. Amandayou-MSFT 11,166 Reputation points
    2021-11-25T07:57:40.467+00:00

    Hi @Richa Kumari

    It may be something wrong with the space character or the path is too long in the path.

    Please delete the space character or shorten the path to check if the problem is solved.

    For example: RMS 1.0 --> RMS1.0


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.