Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem running DSconfig script

3 views
Skip to first unread message

Bernard

unread,
Nov 24, 2009, 2:10:02 PM11/24/09
to
When running the DSconfig script, as instructed in the documentation when
hosting VMs on a CSV, it constantly fails with the following error:

Get-Content : Impossible de lier l'argument au paramètre « Path », car il a
la valeur Null.
Au niveau de c:\script\DSConfig.ps1 : 33 Caractère : 8
+ type <<<< $file >> DataSourceGroups.xml # Consolidating groups
pertaining to all the volumes.
+ CategoryInfo : InvalidData: (:) [Get-Content],
ParameterBindingValidationException
+ FullyQualifiedErrorId :
ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.GetContentC
ommand

Remove-Item : Impossible de trouver un paramètre correspondant au nom
« Recursive ».
Au niveau de c:\script\DSConfig.ps1 : 37 Caractère : 30
+ Remove-Item -Force -Recursive <<<< $dir
+ CategoryInfo : InvalidArgument: (:) [Remove-Item],
ParameterBindingException
+ FullyQualifiedErrorId :
NamedParameterNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand

The script was executed on one of the cluster's host, which is running W2k8
R2 French.

Thank you

Angad Pal Singh [MSFT]

unread,
Nov 25, 2009, 12:59:41 AM11/25/09
to
Can you change the line "$filelist = dir $dir\Volume*" to "$filelist = dir
$dir\*" ?
Also change the option "Recursive" to "Recurse"

Please run the script after these changes.

Thanks,
--Angad.


--
This posting is provided “AS IS” with no warranties, and confers no rights

"Bernard" <Ber...@discussions.microsoft.com> wrote in message
news:E2B3B950-4082-4100...@microsoft.com...

Narendran Gunasekaran[MSFT]

unread,
Nov 25, 2009, 1:17:28 AM11/25/09
to
Hi Bernard,
1. Can you please check if your CSV volumes are mounted in paths of format
<Drive>:\ClusterStorage\Volume* ? Also check if there is a folder with a
guid name in the folder containing your script, and see if it contains files
of format Volume*. If not, please send the contents of the folder to
nguna[AT]microsoft[DOT]com
2. Please replace -Recursive with -Recurse in Line 37 of the script.

--
Narendran[MSFT]
This posting is provided "AS IS" with no warranties, and confers no rights.

"Bernard" <Ber...@discussions.microsoft.com> wrote in message
news:E2B3B950-4082-4100...@microsoft.com...

Bernard

unread,
Nov 26, 2009, 7:38:04 AM11/26/09
to
Hi Angad

The script executes just fine now, thank you!

Bernard

unread,
Nov 26, 2009, 7:42:01 AM11/26/09
to
Hi Narendran

I did rename my volumes to custom names. This is why the script wouldn't
run properly. After applying the fix proposed by Andad, it completed
successully.

Thank you!

0 new messages