Windows PowerShell Home
SampleFile.pssc file in Example 5 in New-PSSessionConfigurationFile topic is not valid
12/13/2012 3:57:54 AM
User(s) can reproduce this bug
SampleFile.pssc file in Example 5 in New-PSSessionConfigurationFile topic contains a few mistakes:
# Company associated with this session configuration
CompanyName = Fabrikam Corporation'
That should be 'Fabrikam Corporation'. An opening quote is missing.
# Copyright statement for this session configuration
Copyright = '(c) 2011 Fabrikam Corporation. All rights reserved.'
That should be ‘(c) Fabrikam Corporation. All rights reserved.’ because that value is passed in the command -Copyright "(c) Fabrikam Corporation. All rights reserved."
# Aliases defined in this session configuration
AliasDefinitions = @(
It should be 'Value' instead of 'Definition'.
# Type files (.ps1xml) that will be loaded in this session configuration
TypesToProcess = 'Types1.ps1xml', 'Types2.ps1xml'
# Format files (.ps1xml) that will be loaded in this session configuration
FormatsToProcess = 'CustomFormats.ps1xml'
# Specifies the scripts to execute after the session is configured
ScriptsToProcess = 'Get-Inputs.ps1'
Absolute paths are needed for all four files.
How often does this happen?
Have you seen this problem before in this product?
No, this is new to the most recent version
Where do you see this documentation issue.
On the box help (available with get-help)
to post a comment.
Please enter a comment.
to post a workaround.
Please enter a workaround.
© 2014 Microsoft