testPSSCFile.pssc
@{ # Version number of the schema used for this document SchemaVersion = '1.0.0.0' # ID used to uniquely identify this document GUID = 'f2e19fef-dceb-48fe-a4ac-cf67d337092b' # Author of this document Author = 'User01' # Description of the functionality provided by these settings Description = 'This is a sample file.' # Company associated with this document CompanyName = 'Fabrikam Corporation' # Copyright statement for this document Copyright = '(c) Fabrikam Corporation. All rights reserved.' # Session type defaults to apply for this session configuration. Can be 'RestrictedRemoteServer' (recommended), 'Empty', or 'Default' SessionType = 'Default' # Directory to place session transcripts for this session configuration # TranscriptDirectory = 'C:\Transcripts\' # Whether to run this session configuration as the machine's (virtual) administrator account RunAsVirtualAccount = $true # Groups associated with machine's (virtual) administrator account RunAsVirtualAccountGroups = 'Backup Operators' # Scripts to run when applied to a session ScriptsToProcess = 'Get-Inputs.ps1' # User roles (security groups), and the role capabilities that should be applied to them when applied to a session # RoleDefinitions = @{ 'CONTOSO\SqlAdmins' = @{ RoleCapabilities = 'SqlAdministration' }; 'CONTOSO\ServerMonitors' = @{ VisibleCmdlets = 'Get-Process' } } # Language mode to apply when applied to a session. Can be 'NoLanguage' (recommended), 'RestrictedLanguage', 'ConstrainedLanguage', or 'FullLanguage' LanguageMode = 'FullLanguage' # Execution policy to apply when applied to a session ExecutionPolicy = 'AllSigned' # Version of the Windows PowerShell engine to use when applied to a session PowerShellVersion = '3.0' # Modules to import when applied to a session ModulesToImport = @{ 'GUID' = '50cdb55f-5ab7-489f-9e94-4ec21ff51e59' 'ModuleName' = 'PSScheduledJob' 'ModuleVersion' = '1.0.0.0' }, 'PSDiagnostics' # Aliases to make visible when applied to a session VisibleAliases = 'c*', 'g*', 'i*', 's*' # Cmdlets to make visible when applied to a session VisibleCmdlets = 'Get*' # Functions to make visible when applied to a session VisibleFunctions = 'Get*' # Providers to make visible when applied to a session VisibleProviders = 'FileSystem', 'Function', 'Variable' # Aliases to be defined when applied to a session AliasDefinitions = @{ 'Description' = 'Gets help.' 'Name' = 'hlp' 'Options' = 'AllScope' 'Value' = 'Get-Help' }, @{ 'Description' = 'Updates help' 'Name' = 'Update' 'Options' = 'ReadOnly' 'Value' = 'Update-Help' } # Functions to define when applied to a session FunctionDefinitions = @{ 'Name' = 'Get-Function' 'Options' = 'ReadOnly' 'ScriptBlock' = {Get-Command -CommandType Function} } # Variables to define when applied to a session VariableDefinitions = @{ 'Name' = 'WarningPreference' 'Value' = 'SilentlyContinue' } # Environment variables to define when applied to a session EnvironmentVariables = @{ 'TESTSHARE' = '\\Test2\Test' } # Type files (.ps1xml) to load when applied to a session TypesToProcess = 'Types1.ps1xml', 'Types2.ps1xml' # Format files (.ps1xml) to load when applied to a session FormatsToProcess = 'CustomFormats.ps1xml' # Assemblies to load when applied to a session AssembliesToLoad = 'System.Web.Services', 'FSharp.Compiler.CodeDom.dll' } |