I am having a problem with a powershell script. THis is a snippet of the code and the error that is generate when it is run.
if (($AddlUserDirectoryPath1 -ne $Null) -and ($AddlUserDirectoryPath1 -ne “”))
{
if (!(Test-Path -path $AddlUserDirectoryPath1))
cannot bind argument to parameter ‘Path’ because it is an empty string.
I am not sure on how to make sure that the string is not empty before testing the path.
Any suggestions will be appreciated.
Thanks,
Art