I need to rebuild a sccm 2007 secondary site server. I was going to do the following, please let me know if these are the correct steps or if I'm missing something.
1. Launch the SCCM setup DVD and run the "uninstall site server".
2. Confirm the Site Server is gone from the local machine and from the SCCM Admin Console.
3. On the now clean Windows server (that used to be a secondary site) create a folder called d:\smspkg
4. From a healthy secondary site copy all of the .PCK files to the d:\smspkg folder I just created
5. Run this PowerShell script on the secondary site I'm trying to rebuild.
$pkgs = get-wmiobject sms_package -computer OurCentralSite -namespace root\sms\site_CN1
$pkgs | foreach {
write-host @("D:\smspkg\" + $_.PackageID + ".pck")
if (test-path @("D:\smspkg\" + $_.PackageID + ".pck"))
{
$output += @("PreloadPkgOnSite.exe " + $_.PackageID + " /UpdateStoredPkgVersion " + $_.StoredPkgVersion)
write-host @("PreloadPkgOnSite.exe " + $_.PackageID + " /UpdateStoredPkgVersion " + $_.StoredPkgVersion)
}
}
$output | out-file -filepath "D:\preloadpkgonsite\preloadpck.bat" -encoding ascii
6. Go to our Central Site \ Package Node and run the COPY PACKAGE wizard to popupate this secondary site.
Have I missed anything?
1. Launch the SCCM setup DVD and run the "uninstall site server".
2. Confirm the Site Server is gone from the local machine and from the SCCM Admin Console.
3. On the now clean Windows server (that used to be a secondary site) create a folder called d:\smspkg
4. From a healthy secondary site copy all of the .PCK files to the d:\smspkg folder I just created
5. Run this PowerShell script on the secondary site I'm trying to rebuild.
$pkgs = get-wmiobject sms_package -computer OurCentralSite -namespace root\sms\site_CN1
$pkgs | foreach {
write-host @("D:\smspkg\" + $_.PackageID + ".pck")
if (test-path @("D:\smspkg\" + $_.PackageID + ".pck"))
{
$output += @("PreloadPkgOnSite.exe " + $_.PackageID + " /UpdateStoredPkgVersion " + $_.StoredPkgVersion)
write-host @("PreloadPkgOnSite.exe " + $_.PackageID + " /UpdateStoredPkgVersion " + $_.StoredPkgVersion)
}
}
$output | out-file -filepath "D:\preloadpkgonsite\preloadpck.bat" -encoding ascii
6. Go to our Central Site \ Package Node and run the COPY PACKAGE wizard to popupate this secondary site.
Have I missed anything?
mqh7