Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

3187

August 28th, 2017 02:00

Unattend XML Check fail

create or inport unattend file on virtual machine. failed information.

Fail: "C:\Windows\Panther\unattend.xml" System.UnauthorizedAccessException: Access to the path 'C:\Windows\Panther\unattend.xml' is denied.
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
   at System.Xml.XmlWriterSettings.CreateWriter(String outputFileName)
   at System.Xml.XmlWriter.Create(String outputFileName, XmlWriterSettings settings)
   at System.Xml.Linq.XDocument.Save(String fileName, SaveOptions options)
   at System.Xml.Linq.XDocument.Save(String fileName)
   at a.A.h()

August 31st, 2017 20:00

Thanks for your support, this issue has been solved. I had set this unattend file Read-Only.

43 Posts

August 28th, 2017 06:00

Hello,

Are you importing your own answer file and are you going through the guide me process?

August 30th, 2017 21:00

yes. also have this issue while creating unattend xml file.

43 Posts

August 31st, 2017 07:00

Hello,

Unfortunately we are not able to troubleshoot the answer file imported.  You may want to consider using the unattend.xml creator built into the ImageAssist tool.  There are many users that utilize the ImageAssist tool that use the built in unattend.xml creator without issue.  If you continue to experience this fail mechanism, re-downloading the ImageAssist tool may be helpful.

No Events found!

Top