Skip to content

Commit

Permalink
Merge pull request #18 from rstolpe/dev
Browse files Browse the repository at this point in the history
readme and version no
  • Loading branch information
rstolpe authored Jan 18, 2023
2 parents d399cbd + 6ede0b9 commit f98b549
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion DeleteUserProfile/DeleteUserProfile.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
RootModule = '.\DeleteUserProfile.psm1'

# Version number of this module.
ModuleVersion = '0.0.9'
ModuleVersion = '0.1.0'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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.
2 changes: 1 addition & 1 deletion RSModuleBuilder.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down
24 changes: 12 additions & 12 deletions test/PSScriptAnalyzer_DeleteUserProfile.psm1_2023-01-18.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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


0 comments on commit f98b549

Please sign in to comment.