Quantcast
Channel: AutoSPInstaller
Viewing all articles
Browse latest Browse all 2279

Edited Issue: Install path trailing slash causes fail for Search share [20884]

$
0
0
Hi,

I have found that if the data dir path is set in the file with a trailing "\" then the create search share task fails: As you can see below it runs the command with double "\"
```
- Creating network share "SearchIndex=E:\SharePoint\\Office Server\Applications"
The syntax of this command is:

NET SHARE
sharename
sharename=drive:path [/GRANT:user,[READ | CHANGE | FULL]]
[/USERS:number | /UNLIMITED]
[/REMARK:"text"]
[/CACHE:Manual | Documents| Programs | BranchCache | None]
sharename [/USERS:number | /UNLIMITED]
[/REMARK:"text"]
[/CACHE:Manual | Documents | Programs | BranchCache | None]
{sharename | devicename | drive:path} /DELETE
sharename \\computername /DELETE

```

Can a check be run to see what the trailing character is or a note added to the description.
Comments: ** Comment from web user: brianlala **

Confirmed. Will add the line:

```
$dataDir = $dataDir.TrimEnd("\")
```

To a couple of places in the script in order to prevent this from happening. Look for the fix in the next release.

Cheers
Brian


Viewing all articles
Browse latest Browse all 2279

Trending Articles



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