Skip to content

Commit 80013a9

Browse files
authored
Add note about importing new version of module (#141)
1 parent d499607 commit 80013a9

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Install-PSResource.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.PSResourceGet.dll-Help.xml
33
Module Name: Microsoft.PowerShell.PSResourceGet
44
ms.custom: 1.0.5
5-
ms.date: 05/17/2024
5+
ms.date: 06/07/2024
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.psresourceget/install-psresource?view=powershellget-3.x&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
---
@@ -60,6 +60,10 @@ scope, and version for a resource, and suppress license prompts.
6060
This cmdlet combines the functions of the `Install-Module` and `Install-Script` cmdlets from
6161
**PowerShellGet** v2.
6262

63+
`Install-PSResource` doesn't load the newly installed module into the current session. You must
64+
import the new version or start a new session to use the updated module. For more information, see
65+
[Import-Module](xref:Microsoft.PowerShell.Core.Import-Module).
66+
6367
## EXAMPLES
6468

6569
### Example 1

powershell-gallery/powershellget-3.x/Microsoft.PowerShell.PSResourceGet/Update-PSResource.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
external help file: Microsoft.PowerShell.PSResourceGet.dll-Help.xml
33
Module Name: Microsoft.PowerShell.PSResourceGet
44
ms.custom: 1.0.5
5-
ms.date: 05/17/2024
5+
ms.date: 06/07/2024
66
online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.psresourceget/update-psresource?view=powershellget-3.x&WT.mc_id=ps-gethelp
77
schema: 2.0.0
88
---
@@ -30,7 +30,12 @@ local machine. This cmdlet replaces the `Update-Module` and `Update-Script` cmdl
3030
versions in a new versioned folder.
3131

3232
By default, `Update-PSResource` installs the latest version of the package and any of its
33-
dependencies without deleting the older versions installed.
33+
dependencies without deleting the older versions installed. There is no command to uninstall older
34+
versions of a package. You must manually delete the files and folders of the older versions.
35+
36+
`Update-PSResource` doesn't load the updated module into the current session. You must import the
37+
new version or start a new session to use the updated module. For more information, see
38+
[Import-Module](xref:Microsoft.PowerShell.Core.Import-Module).
3439

3540
## EXAMPLES
3641

0 commit comments

Comments
 (0)