From edb1e062e2e7ebb33036fb5a49c227c5482c2aec Mon Sep 17 00:00:00 2001 From: Simon Heather Date: Sun, 28 Apr 2019 18:51:33 +0100 Subject: [PATCH] Fix Example dir BOM files --- Examples/Sample_Archive_ExpandArchiveNoValidationCredential.ps1 | 2 +- Examples/Sample_Archive_RemoveArchiveChecksum.ps1 | 2 +- Examples/Sample_Archive_RemoveArchiveNoValidation.ps1 | 2 +- Examples/Sample_Environment_CreateNonPathVariable.ps1 | 2 +- Examples/Sample_Environment_CreatePathVariable.ps1 | 2 +- Examples/Sample_Environment_Remove.ps1 | 2 +- Examples/Sample_GroupSet_AddMembers.ps1 | 2 +- Examples/Sample_Group_RemoveMembers.ps1 | 2 +- Examples/Sample_Group_SetMembers.ps1 | 2 +- Examples/Sample_ProcessSet_Start.ps1 | 2 +- Examples/Sample_ProcessSet_Stop.ps1 | 2 +- Examples/Sample_RegistryResource_AddKey.ps1 | 2 +- Examples/Sample_RegistryResource_AddOrModifyValue.ps1 | 2 +- Examples/Sample_RegistryResource_RemoveKey.ps1 | 2 +- Examples/Sample_RegistryResource_RemoveValue.ps1 | 2 +- Examples/Sample_Script.ps1 | 2 +- Examples/Sample_ServiceSet_BuiltInAccount.ps1 | 2 +- Examples/Sample_ServiceSet_StartServices.ps1 | 2 +- Examples/Sample_User_CreateUser.ps1 | 2 +- Examples/Sample_User_Generic.ps1 | 2 +- Examples/Sample_WindowsFeature.ps1 | 2 +- Examples/Sample_WindowsFeatureSet_Install.ps1 | 2 +- Examples/Sample_WindowsFeatureSet_Uninstall.ps1 | 2 +- Examples/Sample_WindowsOptionalFeature.ps1 | 2 +- Examples/Sample_WindowsOptionalFeatureSet_Disable.ps1 | 2 +- Examples/Sample_WindowsOptionalFeatureSet_Enable.ps1 | 2 +- Examples/Sample_WindowsPackageCab.ps1 | 2 +- 27 files changed, 27 insertions(+), 27 deletions(-) diff --git a/Examples/Sample_Archive_ExpandArchiveNoValidationCredential.ps1 b/Examples/Sample_Archive_ExpandArchiveNoValidationCredential.ps1 index c1572df..060e53c 100644 --- a/Examples/Sample_Archive_ExpandArchiveNoValidationCredential.ps1 +++ b/Examples/Sample_Archive_ExpandArchiveNoValidationCredential.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS Expands the archive located at 'C:\ExampleArchivePath\Archive.zip' to the destination path 'C:\ExampleDestinationPath\Destination'. diff --git a/Examples/Sample_Archive_RemoveArchiveChecksum.ps1 b/Examples/Sample_Archive_RemoveArchiveChecksum.ps1 index c05d805..c530b53 100644 --- a/Examples/Sample_Archive_RemoveArchiveChecksum.ps1 +++ b/Examples/Sample_Archive_RemoveArchiveChecksum.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS Remove the expansion of the archive located at 'C:\ExampleArchivePath\Archive.zip' from the destination path 'C:\ExampleDestinationPath\Destination'. diff --git a/Examples/Sample_Archive_RemoveArchiveNoValidation.ps1 b/Examples/Sample_Archive_RemoveArchiveNoValidation.ps1 index 5578da9..2ccc726 100644 --- a/Examples/Sample_Archive_RemoveArchiveNoValidation.ps1 +++ b/Examples/Sample_Archive_RemoveArchiveNoValidation.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS Removes the expansion of the archive located at 'C:\ExampleArchivePath\Archive.zip' from the destination path 'C:\ExampleDestinationPath\Destination'. diff --git a/Examples/Sample_Environment_CreateNonPathVariable.ps1 b/Examples/Sample_Environment_CreateNonPathVariable.ps1 index 9129fee..7598e0b 100644 --- a/Examples/Sample_Environment_CreateNonPathVariable.ps1 +++ b/Examples/Sample_Environment_CreateNonPathVariable.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS Creates the environment variable 'TestEnvironmentVariable' and sets the value to 'TestValue' both on the machine and within the process. diff --git a/Examples/Sample_Environment_CreatePathVariable.ps1 b/Examples/Sample_Environment_CreatePathVariable.ps1 index 6b8270e..009a673 100644 --- a/Examples/Sample_Environment_CreatePathVariable.ps1 +++ b/Examples/Sample_Environment_CreatePathVariable.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS Creates the environment variable 'TestPathEnvironmentVariable' and sets the value to 'TestValue' if it doesn't already exist or appends the value 'TestValue' to the existing path if it does diff --git a/Examples/Sample_Environment_Remove.ps1 b/Examples/Sample_Environment_Remove.ps1 index cabd3dd..4d88e33 100644 --- a/Examples/Sample_Environment_Remove.ps1 +++ b/Examples/Sample_Environment_Remove.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS Removes the environment variable 'TestEnvironmentVariable' from both the machine and the process. diff --git a/Examples/Sample_GroupSet_AddMembers.ps1 b/Examples/Sample_GroupSet_AddMembers.ps1 index 702aa51..122e851 100644 --- a/Examples/Sample_GroupSet_AddMembers.ps1 +++ b/Examples/Sample_GroupSet_AddMembers.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS If the groups named GroupName1 and Administrators do not exist, creates the groups named GroupName1 and Administrators and adds the users with the usernames Username1 and Username2 diff --git a/Examples/Sample_Group_RemoveMembers.ps1 b/Examples/Sample_Group_RemoveMembers.ps1 index f75beee..58b1a34 100644 --- a/Examples/Sample_Group_RemoveMembers.ps1 +++ b/Examples/Sample_Group_RemoveMembers.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS If the group named GroupName1 does not exist, creates a group named GroupName1. diff --git a/Examples/Sample_Group_SetMembers.ps1 b/Examples/Sample_Group_SetMembers.ps1 index a050a3b..62be584 100644 --- a/Examples/Sample_Group_SetMembers.ps1 +++ b/Examples/Sample_Group_SetMembers.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS If the group named GroupName1 does not exist, creates a group named GroupName1 and adds the users with the usernames Username1 and Username2 to the group. diff --git a/Examples/Sample_ProcessSet_Start.ps1 b/Examples/Sample_ProcessSet_Start.ps1 index 7e32668..320fe15 100644 --- a/Examples/Sample_ProcessSet_Start.ps1 +++ b/Examples/Sample_ProcessSet_Start.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS Starts the processes with the executables at the file paths C:\Windows\cmd.exe and C:\TestPath\TestProcess.exe with no arguments. diff --git a/Examples/Sample_ProcessSet_Stop.ps1 b/Examples/Sample_ProcessSet_Stop.ps1 index 4c47f6f..f1a9b06 100644 --- a/Examples/Sample_ProcessSet_Stop.ps1 +++ b/Examples/Sample_ProcessSet_Stop.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS Stops the processes with the executables at the file paths C:\Windows\cmd.exe and C:\TestPath\TestProcess.exe with no arguments and logs any output to the path diff --git a/Examples/Sample_RegistryResource_AddKey.ps1 b/Examples/Sample_RegistryResource_AddKey.ps1 index 138d78f..c49cc96 100644 --- a/Examples/Sample_RegistryResource_AddKey.ps1 +++ b/Examples/Sample_RegistryResource_AddKey.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS Create a new registry key called MyNewKey as a subkey under the key 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment'. diff --git a/Examples/Sample_RegistryResource_AddOrModifyValue.ps1 b/Examples/Sample_RegistryResource_AddOrModifyValue.ps1 index df89a0a..ea98dc3 100644 --- a/Examples/Sample_RegistryResource_AddOrModifyValue.ps1 +++ b/Examples/Sample_RegistryResource_AddOrModifyValue.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS If the registry key value MyValue under the key 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment' does not exist, diff --git a/Examples/Sample_RegistryResource_RemoveKey.ps1 b/Examples/Sample_RegistryResource_RemoveKey.ps1 index 79a2d17..f2cf276 100644 --- a/Examples/Sample_RegistryResource_RemoveKey.ps1 +++ b/Examples/Sample_RegistryResource_RemoveKey.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS Removes the registry key called MyNewKey under the parent key 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment'. diff --git a/Examples/Sample_RegistryResource_RemoveValue.ps1 b/Examples/Sample_RegistryResource_RemoveValue.ps1 index 2dec121..37be0ec 100644 --- a/Examples/Sample_RegistryResource_RemoveValue.ps1 +++ b/Examples/Sample_RegistryResource_RemoveValue.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS Removes the registry key value MyValue from the key 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment'. diff --git a/Examples/Sample_Script.ps1 b/Examples/Sample_Script.ps1 index caea309..e086cf7 100644 --- a/Examples/Sample_Script.ps1 +++ b/Examples/Sample_Script.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS Creates a file at the given file path with the specified content through the Script resource. diff --git a/Examples/Sample_ServiceSet_BuiltInAccount.ps1 b/Examples/Sample_ServiceSet_BuiltInAccount.ps1 index d66b093..79c7820 100644 --- a/Examples/Sample_ServiceSet_BuiltInAccount.ps1 +++ b/Examples/Sample_ServiceSet_BuiltInAccount.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS Sets the Secure Socket Tunneling Protocol and DHCP Client services to run under the built-in account LocalService. diff --git a/Examples/Sample_ServiceSet_StartServices.ps1 b/Examples/Sample_ServiceSet_StartServices.ps1 index fb8dfee..1ac00dd 100644 --- a/Examples/Sample_ServiceSet_StartServices.ps1 +++ b/Examples/Sample_ServiceSet_StartServices.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS Ensures that the DHCP Client and Windows Firewall services are running. #> diff --git a/Examples/Sample_User_CreateUser.ps1 b/Examples/Sample_User_CreateUser.ps1 index b2aae55..fc75587 100644 --- a/Examples/Sample_User_CreateUser.ps1 +++ b/Examples/Sample_User_CreateUser.ps1 @@ -1,4 +1,4 @@ -Configuration UserExample +Configuration UserExample { param ( [System.Management.Automation.PSCredential] diff --git a/Examples/Sample_User_Generic.ps1 b/Examples/Sample_User_Generic.ps1 index 17cd506..bd44a8d 100644 --- a/Examples/Sample_User_Generic.ps1 +++ b/Examples/Sample_User_Generic.ps1 @@ -1,4 +1,4 @@ -param +param ( [Parameter(Mandatory)] [System.String] diff --git a/Examples/Sample_WindowsFeature.ps1 b/Examples/Sample_WindowsFeature.ps1 index 77d0352..db23f46 100644 --- a/Examples/Sample_WindowsFeature.ps1 +++ b/Examples/Sample_WindowsFeature.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS Creates a custom configuration for installing or uninstalling a Windows role or feature. diff --git a/Examples/Sample_WindowsFeatureSet_Install.ps1 b/Examples/Sample_WindowsFeatureSet_Install.ps1 index 9c82264..48aeb95 100644 --- a/Examples/Sample_WindowsFeatureSet_Install.ps1 +++ b/Examples/Sample_WindowsFeatureSet_Install.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS Installs the TelnetClient and RSAT-File-Services Windows features, including all their subfeatures. Logs the operation to the file at 'C:\LogPath\Log.log'. diff --git a/Examples/Sample_WindowsFeatureSet_Uninstall.ps1 b/Examples/Sample_WindowsFeatureSet_Uninstall.ps1 index 7e25124..eb8ecdf 100644 --- a/Examples/Sample_WindowsFeatureSet_Uninstall.ps1 +++ b/Examples/Sample_WindowsFeatureSet_Uninstall.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS Uninstalls the TelnetClient and RSAT-File-Services Windows features, including all their subfeatures. Logs the operation to the file at 'C:\LogPath\Log.log'. diff --git a/Examples/Sample_WindowsOptionalFeature.ps1 b/Examples/Sample_WindowsOptionalFeature.ps1 index f2895d4..151ba55 100644 --- a/Examples/Sample_WindowsOptionalFeature.ps1 +++ b/Examples/Sample_WindowsOptionalFeature.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS Enables the Windows optional feature with the specified name and outputs a log to the specified path. diff --git a/Examples/Sample_WindowsOptionalFeatureSet_Disable.ps1 b/Examples/Sample_WindowsOptionalFeatureSet_Disable.ps1 index 25f6f7b..ea8eb61 100644 --- a/Examples/Sample_WindowsOptionalFeatureSet_Disable.ps1 +++ b/Examples/Sample_WindowsOptionalFeatureSet_Disable.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS Disables the Windows optional features TelnetClient and LegacyComponents and removes all files associated with these features. diff --git a/Examples/Sample_WindowsOptionalFeatureSet_Enable.ps1 b/Examples/Sample_WindowsOptionalFeatureSet_Enable.ps1 index 13a84c6..16fb179 100644 --- a/Examples/Sample_WindowsOptionalFeatureSet_Enable.ps1 +++ b/Examples/Sample_WindowsOptionalFeatureSet_Enable.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS Enables the Windows optional features MicrosoftWindowsPowerShellV2 and Internet-Explorer-Optional-amd64 and outputs a log of the operations to a file at the path diff --git a/Examples/Sample_WindowsPackageCab.ps1 b/Examples/Sample_WindowsPackageCab.ps1 index 49af41f..656a4bf 100644 --- a/Examples/Sample_WindowsPackageCab.ps1 +++ b/Examples/Sample_WindowsPackageCab.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS Installs a package from the cab file with the specified name from the specified source path and outputs a log to the specified log path.