Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SCCM/Retire-CMApplication.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function Retire-CMApplication {
)

# import cm module
Import-Module '\\sccm01\SMS_Company\AdminConsole\bin\ConfigurationManager.psd1'
Import-Module ($Env:SMS_ADMIN_UI_PATH.Substring(0,$Env:SMS_ADMIN_UI_PATH.Length-5) + '\ConfigurationManager.psd1')

# change to the cm site drive
$PSD = Get-PSDrive -PSProvider CMSite
Expand Down
2 changes: 1 addition & 1 deletion SCCM/Retire-CMApplicationGUI.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ function Create-UtilityForm {

try {
# make sure we have access to CM commands before we continue
Import-Module 'E:\SCCM\AdminConsole\bin\ConfigurationManager.psd1'
Import-Module ($Env:SMS_ADMIN_UI_PATH.Substring(0,$Env:SMS_ADMIN_UI_PATH.Length-5) + '\ConfigurationManager.psd1')
Set-Location -Path "$(Get-PSDrive -PSProvider CMSite):\" -ErrorAction Stop
Create-UtilityForm
} catch {
Expand Down