Anthony K O365
asked on
Trouble running Powershell Script
This is a SharePoint PS running in Windows PowerShell ISE. I get the followng error message:
Test-Path : Cannot bind argument to parameter 'Path' because it is an empty string.
At C:\Users\katadmin\Desktop\ O 365 items\Remove-OneDriveForBu sinessFold er.ps1:143 char:19
+ If (!(Test-Path $LogFile))
+ ~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Test-Path], ParameterBindingValidation Exception
+ FullyQualifiedErrorId : ParameterArgumentValidatio nErrorEmpt yStringNot Allowed,Mi crosoft.Po werShell.C ommands
.TestPathCommand
I'm wanting to run the attached PS Script to remove certain folders in Office 365 OneDrive for Business. Any thoughts?
Remove-OneDriveForBusinessFolder.txt
Test-Path : Cannot bind argument to parameter 'Path' because it is an empty string.
At C:\Users\katadmin\Desktop\
+ If (!(Test-Path $LogFile))
+ ~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Test-Path], ParameterBindingValidation
+ FullyQualifiedErrorId : ParameterArgumentValidatio
.TestPathCommand
I'm wanting to run the attached PS Script to remove certain folders in Office 365 OneDrive for Business. Any thoughts?
Remove-OneDriveForBusinessFolder.txt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Actually, after inserting the name of logfile I got pass that error. Thanks. However, it's not asking for the location of the csv file, but it's navigating throughout the entire Tenant.
ASKER
Once again, I apologize. I have also supply the Input file. Thanks!!
ASKER
thanks!!
ASKER