Forum Discussion
darangua
Feb 03, 2020Copper Contributor
Access denied when I want create to File in Powershell
Hi, Please, your help me! I have problem to access denied, when i want create to file. I have the account in the group administrator. I valued the permission in the tab security and i have admini...
- Feb 03, 2020
Hi darangua
I reread your post - I missed something in the original.
When you export out, you need to name the exported file name, not just the folder location. Try:
$cre | Export-Clixml -Path c:\test\name.xml
This will export out the name.xlm file in the test folder.
The result:
Hope this helps,
Mark
HidMov
Feb 03, 2020Iron Contributor
Hi darangua
I reread your post - I missed something in the original.
When you export out, you need to name the exported file name, not just the folder location. Try:
$cre | Export-Clixml -Path c:\test\name.xml
This will export out the name.xlm file in the test folder.
The result:
Hope this helps,
Mark
RokeJulianLockhart
Dec 19, 2024Brass Contributor
Strange that the error message doesn't explicitly state this.