Quantcast
Channel: Exchange Server 2013 - Setup, Deployment, Updates, and Migration forum
Viewing all articles
Browse latest Browse all 7129

Powershell Export-CSV Access to the path \\servername\sharename is Denied

$
0
0

Hi I'm new to PowerShell and I've been attempting to migrate an Exchange 2010 SP3 Public folder to Exchange 2013. I'm following the directions found athttp://technet.microsoft.com/en-us/library/jj150486(v=exchg.150).aspx .

I have gotten to Step 3 .\Export-PublicFolderStatistics.ps1 <Folder to size map path> <FQDN of source server>

It runs the command but when it attempts to write the CSV to the drive I get:

Export-csv : Access to the path '\\servername\sharename' is denied

I am running the Exchange PowerShell in Administrator mode

Within File Manager I have given:

the share Everyone Full permissions

NTFS Full permissions to:

Everyone, Domain Admins, Domain Users, Exchange Servers, Exchange Organization Admins,

PS] C:\Windows\system32>C:\ps_scripts\Export-PublicFolderStatistics.ps1 "\\server\sharename" server.domain.local
[11/21/2013 9:59:42 AM] Enumerating folders under NON_IPM_SUBTREE...
[11/21/2013 9:59:50 AM] Enumerating folders under NON_IPM_SUBTREE completed...25 folders found.
[11/21/2013 9:59:51 AM] Retrieving statistics from server SERVER
[11/21/2013 9:59:52 AM] Retrieving statistics from server SERVER complete...45 folders found.
[11/21/2013 9:59:52 AM] Total unique folders found : 45.
[11/21/2013 9:59:52 AM] Exporting statistics for 45 folders
[11/21/2013 9:59:52 AM] Exporting folders to a CSV file
Export-CSV : Access to the path '\server\sharename' is denied.
At C:\ps_scripts\Export-PublicFolderStatistics.ps1:221 char:70
+ $script:ExportFolders | Sort-Object -Property FolderName | Export-CSV <<<<  -Path $ExportFile -Force -NoTypeInformati
on -Encoding "Unicode";
    + CategoryInfo          : OpenError: (:) [Export-Csv], UnauthorizedAccessException
    + FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.ExportCsvCommand

[PS] C:\Windows\system32>

  


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>