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: 116
Son Yazılar
Arşivler
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