From 2a7b5eef2b44aeaf79506bb4e52b73a6578c5942 Mon Sep 17 00:00:00 2001 From: Simon Heather Date: Sun, 28 Apr 2019 18:49:16 +0100 Subject: [PATCH] Revert "Fix example dir BOM files" This reverts commit 590a77441f71900be268a8067838f5d92b573000. --- 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 060e53c..c1572df 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 c530b53..c05d805 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 2ccc726..5578da9 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 7598e0b..9129fee 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 009a673..6b8270e 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 4d88e33..cabd3dd 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 122e851..702aa51 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 58b1a34..f75beee 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 62be584..a050a3b 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 320fe15..7e32668 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 f1a9b06..4c47f6f 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 c49cc96..138d78f 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 ea98dc3..df89a0a 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 f2cf276..79a2d17 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 37be0ec..2dec121 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 e086cf7..caea309 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 79c7820..d66b093 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 1ac00dd..fb8dfee 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 fc75587..b2aae55 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 bd44a8d..17cd506 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 db23f46..77d0352 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 48aeb95..9c82264 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 eb8ecdf..7e25124 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 151ba55..f2895d4 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 ea8eb61..25f6f7b 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 16fb179..13a84c6 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 656a4bf..49af41f 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.