diff --git a/DeleteUserProfile/DeleteUserProfile.psd1 b/DeleteUserProfile/DeleteUserProfile.psd1 index df36c62..67d9191 100644 --- a/DeleteUserProfile/DeleteUserProfile.psd1 +++ b/DeleteUserProfile/DeleteUserProfile.psd1 @@ -36,7 +36,7 @@ RootModule = '.\DeleteUserProfile.psm1' # Version number of this module. - ModuleVersion = '0.0.9' + ModuleVersion = '0.1.0' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/README.md b/README.md index ee4fb81..aef22fe 100644 --- a/README.md +++ b/README.md @@ -53,12 +53,12 @@ Get-RSUserProfile Return all user profiles that are saved on the local computer ``` -Get-RSUserProfile -Exclude "Frank, rstolpe" +Get-RSUserProfile -Exclude "Frank", "rstolpe" ``` This will return all of the user profiles saved on the local machine except user profiles that are named Frank and rstolpe ``` -Get-RSUserProfile -ComputerName "Win11-Test, Win10" +Get-RSUserProfile -ComputerName "Win11-Test", "Win10" ``` This will return all of the user profiles saved on the remote computers named Win11-Test and Win10 @@ -71,11 +71,11 @@ Remove-RSUserProfile -DeleteAll This will delete all of the user profiles from the localhost / computer your running the module from. ``` -Remove-RSUserProfile -Exclude "User1, User2" -DeleteAll +Remove-RSUserProfile -Exclude "User1", "User2" -DeleteAll ``` This will delete all of the user profiles except user profile User1 and User2 on the local computer ``` -Remove-RSUserProfile -Delete "User1, User2" +Remove-RSUserProfile -Delete "User1", "User2" ``` This will delete only user profile "User1" and "User2" from the local computer where you run the script from. \ No newline at end of file diff --git a/RSModuleBuilder.ps1 b/RSModuleBuilder.ps1 index 11c29ad..65d3fba 100644 --- a/RSModuleBuilder.ps1 +++ b/RSModuleBuilder.ps1 @@ -9,7 +9,7 @@ [string]$apiKey = "" # # Changes on every build -[string]$Version = "0.0.9" +[string]$Version = "0.1.0" [string]$PowerShellVersion = "5.1" [string]$Tags = '"Windows", "PowerShell", "ReturnUserProfile", "UserProfile", "DeleteUserProfile", "Support-Tools", "IT-Tools", "sysadmin-tools", "windows-user-folder", "windows-user-profile"' [string]$ProcessorArchitecture = "" diff --git a/test/PSScriptAnalyzer_DeleteUserProfile.psm1_2023-01-18.md b/test/PSScriptAnalyzer_DeleteUserProfile.psm1_2023-01-18.md index 5a4602b..e2a7574 100644 --- a/test/PSScriptAnalyzer_DeleteUserProfile.psm1_2023-01-18.md +++ b/test/PSScriptAnalyzer_DeleteUserProfile.psm1_2023-01-18.md @@ -1,16 +1,4 @@  -Line : 105 -Column : 10 -Message : Function 'Remove-RSUserProfile' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. -Extent : Remove-RSUserProfile -RuleName : PSUseShouldProcessForStateChangingFunctions -Severity : Warning -ScriptName : DeleteUserProfile.psm1 -ScriptPath : /Users/rstolpe/Dev/GitHub/DeleteUserProfile/DeleteUserProfile/DeleteUserProfile.psm1 -RuleSuppressionID : -SuggestedCorrections : -IsSuppressed : False - Line : 78 Column : 19 Message : The parameter 'Exclude' has been declared but not used. @@ -23,4 +11,16 @@ RuleSuppressionID : Exclude SuggestedCorrections : IsSuppressed : False +Line : 105 +Column : 10 +Message : Function 'Remove-RSUserProfile' has verb that could change system state. Therefore, the function has to support 'ShouldProcess'. +Extent : Remove-RSUserProfile +RuleName : PSUseShouldProcessForStateChangingFunctions +Severity : Warning +ScriptName : DeleteUserProfile.psm1 +ScriptPath : /Users/rstolpe/Dev/GitHub/DeleteUserProfile/DeleteUserProfile/DeleteUserProfile.psm1 +RuleSuppressionID : +SuggestedCorrections : +IsSuppressed : False +