SCCM Site Code Değiştirme
Merhaba, aşağıdaki ps kodunu kullanarak sitecode’u değiştirebilirsiniz.
$sms = New-Object -ComObject Microsoft.SMS.Client
$result = $sms.GetAssignedSite() # This returns a string value
$sms.SetAssignedSite("000")
$regpath = 'HKLM:\SOFTWARE\Microsoft\SMS\Mobile Client'
if(Get-ItemProperty -Path $regpath -Name 'GPRequestedSiteAssignmentCode' -ErrorAction SilentlyContinue )
{
Get-Item –Path $regpath | Remove-ItemProperty -Name 'GPRequestedSiteAssignmentCode' -Force -Verbose
}
if(Get-ItemProperty -Path $regpath -Name 'GPSiteAssignmentRetryInterval(Min)' -ErrorAction SilentlyContinue )
{
Get-Item –Path $regpath | Remove-ItemProperty –Name 'GPSiteAssignmentRetryInterval(Min)' –Force -Verbose
}
if(Get-ItemProperty -Path $regpath -Name 'GPSiteAssignmentRetryDuration(Hour)' -ErrorAction SilentlyContinue )
{
Get-Item –Path $regpath | Remove-ItemProperty –Name 'GPSiteAssignmentRetryDuration(Hour)' –Force -Verbose
}
Post Views: 147
Son Yazılar
Arşivler
- Eylül 2026
- Haziran 2026
- Mayıs 2026
- Nisan 2026
- Mart 2026
- Şubat 2026
- Aralık 2025
- Kasım 2025
- Ekim 2025
- Eylül 2025
- Ağustos 2025
- Temmuz 2025
- Haziran 2025
- Mayıs 2025
- Nisan 2025
- Mart 2025
- Şubat 2025
- Ocak 2025
- Aralık 2024
- Kasım 2024
- Ekim 2024
- Eylül 2024
- Ağustos 2024
- Temmuz 2024
- Haziran 2024
- Mayıs 2024
- Nisan 2024
Kategoriler
Son yorumlar
- RDS “We can’t sign into your account”, Temp Profil Sorunu ve Çözümü için Mehmet Sait YILMAZ
- RDS “We can’t sign into your account”, Temp Profil Sorunu ve Çözümü için Can Karapınar