Forum Discussion
Stacy Plante
Jul 01, 2021Copper Contributor
Powershell Results to TXT file
Powershell newbie here......looking to run the following but want to send the output to a text file. Get-SPOSite -Template REDIRECTSITE#0 I tried adding | Out-File -FilePath C:\somefilename...
- Jul 01, 2021Likely the issue is you’re writing to a file in the root of your C drive. That’s generally not allowed unless you are running PowerShell as a local admin. Try another location like your user folder.
pvanberlo
Jul 01, 2021MCT
Likely the issue is you’re writing to a file in the root of your C drive. That’s generally not allowed unless you are running PowerShell as a local admin. Try another location like your user folder.
- Stacy PlanteJul 01, 2021Copper ContributorYou are exactly right......when I chose a location under my user folder it worked. THANK YOU!