I receive an error on the follow variable. It cannot find the path to where log folder is stored. I have been debugging for a day and issue remains. I appreciate any advice and or help.
Here is Variable: $Logfolder = ‘C:\Util\LogFileServer’
PS C:\Users> $DFSShare = Get-Content -Path $Logfolder
Get-Content : Could not find a part of the path ‘C:\Util\LogFileServer’.
At line:1 char:13
- $DFSShare = Get-Content -Path $Logfolder
- CategoryInfo : ObjectNotFound: (C:\Util\LogFileServer:String) [Get-Content], DirectoryNotFoundException
- FullyQualifiedErrorId : GetContentReaderDirectoryNotFoundError,Microsoft.PowerShell.Commands.GetContentCommand