Lenovo ThinkCentre M92z (German) Rescue and Recovery 4.3 Deployment Guide - Page 67

Aktualisierung, Rufen Sie die Datei FORCE_BU.CMD auf, nachdem Sie sie auf den Ziel

Page 67 highlights

5. Ändern Sie den Code der Datei ″install.cmd″. Die Datei ″install.cmd″ enthält folgenden Code: :: Copy custom rnrdeploy.xml here copy rnrdeploy.xml "c:\SWTOOLS\Program Files\Lenovo\Rescue and Recovery" :: Install using the MSI with no reboot (Remove "REBOOT="R"" to force a reboot) start /WAIT msiexec /i "c:\SWTOOLS\Rescue and Recovery.msi" /qn REBOOT="R" :: Start the service. This is needed to create a base backup. start /WAIT net start "Rescue and Recovery Service" :: Make an ISO file here - ISO will reside in c:\Program Files\Lenovo\Rescue and Recovery\rrcd Anmerkung: Sie müssen die Umgebung nicht einrichten, wenn das System erneut gebootet wird. :: Set up the environment set PATH=%SystemDrive%\Program Files\Common Files\Lenovo\Python24 set PATHEXT=%PATHEXT%;.PYW;.PYO;.PYC;.PY set TCL_LIBRARY=%SystemDrive%\Program Files\Common Files\Lenovo\Python24 \tcl\tcl8.4 set TK_LIBRARY=%SystemDrive%\Program Files\Common Files\Lenovo\Python24 \tcl\tk8.4 set PYTHONCASEOK=1 set RR=C:\Program Files\Lenovo\Rescue and Recovery\ set PYTHONPATH="C:\Program Files\Common Files\Lenovo\Python24" :: The next line will create the ISO silently and not burn it C:\Program Files\Common Files\Lenovo\Python24\python C:\Program Files\Common Files\Lenovo\spi\mkspiim.pyc :: Take the base backup... service must be started c: cd "C:\Program Files\Lenovo\Rescue and Recovery" RRcmd.exe backup location=L name=Base level=0 :: Reboot the system C:\Program Files\Common Files\Lenovo\BMGR"/bmgr32.exe /R Aktualisierung Sie müssen möglicherweise wesentliche Änderungen an Ihrem System vornehmen, beispielsweise ein Service-Pack-Update für Windows. Gehen Sie wie folgt vor, um vor der Installation des Service-Packs eine inkrementelle Sicherung zu erzwingen und diese mit einem eigenen Namen zu kennzeichnen: 1. Erstellen Sie die Datei FORCE_BU.CMD, und speichern Sie sie auf den Ziel- systemen. 2. Rufen Sie die Datei FORCE_BU.CMD auf, nachdem Sie sie auf den Ziel- systemen gespeichert haben. Die Datei FORCE_BU.CMD enthält folgenden Inhalt: :: Force a backup now "%RR%rrcmd" backup location=L name="Backup Before XP-SP2 Update" Kapitel 4. Bewährte Verfahren 59

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106

5.
Ändern Sie den Code der Datei
install.cmd
. Die Datei
install.cmd
enthält
folgenden Code:
:: Copy custom rnrdeploy.xml here
copy rnrdeploy.xml "c:\SWTOOLS\Program Files\Lenovo\Rescue and Recovery"
:: Install using the MSI with no reboot (Remove "REBOOT="R"" to force a reboot)
start /WAIT msiexec /i "c:\SWTOOLS\Rescue and Recovery.msi" /qn REBOOT="R"
:: Start the service. This is needed to create a base backup.
start /WAIT net start "Rescue and Recovery Service"
:: Make an ISO file here - ISO will reside in c:\Program Files\Lenovo\Rescue and
Recovery\rrcd
Anmerkung:
Sie müssen die Umgebung nicht einrichten, wenn das System
erneut gebootet wird.
:: Set up the environment
set PATH=%SystemDrive%\Program Files\Common Files\Lenovo\Python24
set PATHEXT=%PATHEXT%;.PYW;.PYO;.PYC;.PY
set TCL_LIBRARY=%SystemDrive%\Program Files\Common Files\Lenovo\Python24
\tcl\tcl8.4
set TK_LIBRARY=%SystemDrive%\Program Files\Common Files\Lenovo\Python24
\tcl\tk8.4
set PYTHONCASEOK=1
set RR=C:\Program Files\Lenovo\Rescue and Recovery\
set PYTHONPATH="C:\Program Files\Common Files\Lenovo\Python24"
:: The next line will create the ISO silently and not burn it
C:\Program Files\Common Files\Lenovo\Python24\python
C:\Program Files\Common Files\Lenovo\spi\mkspiim.pyc
:: Take the base backup... service must be started
c:
cd "C:\Program Files\Lenovo\Rescue and Recovery"
RRcmd.exe backup location=L name=Base level=0
:: Reboot the system
C:\Program Files\Common Files\Lenovo\BMGR"/bmgr32.exe /R
Aktualisierung
Sie müssen möglicherweise wesentliche Änderungen an Ihrem System vornehmen,
beispielsweise ein Service-Pack-Update für Windows. Gehen Sie wie folgt vor, um
vor der Installation des Service-Packs eine inkrementelle Sicherung zu erzwingen
und diese mit einem eigenen Namen zu kennzeichnen:
1.
Erstellen Sie die Datei FORCE_BU.CMD, und speichern Sie sie auf den Ziel-
systemen.
2.
Rufen Sie die Datei FORCE_BU.CMD auf, nachdem Sie sie auf den Ziel-
systemen gespeichert haben.
Die Datei FORCE_BU.CMD enthält folgenden Inhalt:
:: Force a backup now
"%RR%rrcmd" backup location=L name="Backup Before XP-SP2 Update"
Kapitel 4. Bewährte Verfahren
59