I'm a powershell beginner and I would like to write a script to create a complete inventory of our fileserver. I tried it with --> Get-ChildItem -Path X -Force -Recurse | Export-Csv -Path X -Encoding ASCII -NoTypeInformation , but I get all the time errors. Any tips please ?
Thanks a lot
PS C:\windows\system32> Get-ChildItem -Path \iv-ccl-vm-fp01\GLOBAL_Intervest -Force -Recurse | Export-Csv -Path C:\Users\NAHA\Documents\Test.csv -Encoding ASCII -NoTypeInformation Get-ChildItem : Toegang tot het pad \iv-ccl-vm-fp01\GLOBAL_Intervest\1. Algemeen\CanonScanFolder is geweigerd. At line:1 char:1
- Get-ChildItem -Path \iv-ccl-vm-fp01\GLOBAL_Intervest -Force -Recurse ...
-
+ CategoryInfo : PermissionDenied: (\\iv-ccl-vm-fp0...CanonScanFolder:String) [Get-ChildItem], UnauthorizedAccessException + FullyQualifiedErrorId : DirUnauthorizedAccessError,Microsoft.PowerShell.Commands.GetChildItemCommand