Microsoft
Software
Hardware
Network
Question : Microsoft Exchange Management Shell script error - SBS2008
We have a single SBS2008 which were are trying to resolve a Microsoft Backup problem on, and have been advised to run the following script with the Microsoft Management Shell. The file is called enable.PS1 and is stored in the c:\ location.
The script is :-
$WsbBinPath="c:\program files\microsoft\exchange server\bin\wsbexchange.exe
"
if ((get-service wsbexchange* | where {$_.name -eq "wsbexchange"}))
{
if ((get-service wsbexchange).Status -eq "Running")
{
sc stop wsbexchange
}
sc.exe delete wsbexchange
}
reg add "HKCR\CLSID\{D8A2E312-3B17
-4293-B71E
-CD72A7C04
BF3}" /t REG_SZ /d "CExchangeHelper Class" /f
reg add "HKCR\CLSID\{D8A2E312-3B17
-4293-B71E
-CD72A7C04
BF3}" /v AppId /t REG_SZ /d "{D8A2E312-3B17-4293-B71E-
CD72A7C04B
F3}" /f
reg add "HKCR\CLSID\{D8A2E312-3B17
-4293-B71E
-CD72A7C04
BF3}\Local
Server32" /t REG_SZ /d "$WsbBinPath" /f
reg add "HKCR\APPID\{D8A2E312-3B17
-4293-B71E
-CD72A7C04
BF3}" /t REG_SZ /d "CExchangeHelper Class" /f
reg add "HKCR\APPID\{D8A2E312-3B17
-4293-B71E
-CD72A7C04
BF3}" /v LocalService /t REG_SZ /d "wsbexchange" /f
reg add "HKCR\APPID\{D8A2E312-3B17
-4293-B71E
-CD72A7C04
BF3}" /v LaunchPermission /t REG_BINARY /d
"0100048060000000700000000
0000000140
0000002004
c000300000
0000014001
f000000010
1000000000
0051200000
0000018001
f000000010
2000000000
005200
00000200200000000180003000
0000102000
0000000052
0000000270
2000001020
0000000000
5200000002
0020000010
2000000000
0052000000
020020000"
/f
reg add "HKCR\APPID\wsbexchange.ex
e" /v AppId /t REG_SZ /d "{D8A2E312-3B17-4293-B71E-
CD72A7C04B
F3}" /f
reg add "HKLM\Software\Microsoft\w
indows nt\currentversion\WindowsS
erverBacku
p\Applicat
ion Support\{76fe1ac4-15f7-4bc
d-987e-
8e1acb462fb7}" /v "Application Identifier" /t REG_SZ /d Exchange /f
reg add "HKLM\Software\Microsoft\w
indows nt\currentversion\WindowsS
erverBacku
p\Applicat
ion Support\{76fe1ac4-15f7-4bc
d-987e-
8e1acb462fb7}" /v CLSID /t REG_SZ /d "{D8A2E312-3B17-4293-B71E-
CD72A7C04B
F3}" /f
reg add "HKLM\Software\Microsoft\w
indows nt\currentversion\WSBAppEx
changeHelp
er" /v AutoMarkDbRecoverable /t REG_DWORD /d 1 /f
reg add "HKLM\Software\Microsoft\w
indows nt\currentversion\WSBAppEx
changeHelp
er" /v AutoMountOnPITRecovery /t REG_DWORD /d 1 /f
sc.exe create wsbexchange binpath= $WsbBinPath type= own start= demand error= ignore obj= LocalSystem DisplayName= "Microsoft Exchange Server Extension for Windows Server Backup"
sc.exe description wsbexchange "Enables Windows Server Backup users to back up and recover application data for Microsoft Exchange Server."
To run this we type c:\enable.PS1
Each time we run it, we get the foloowing error :-
You must provide a value expression on the right-hand side of the "/" operator. At C:\enable.PS1:18 char:129 + 00000200200000000180003000
0000102000
0000000052
0000000270
2000001020
0000000000
5200000002
0020000010
2000000000
0052000000
020020000"
/f <<<<<<<<
Can anyone assist in explaining what we need to do to get this to complete?
Answer : Microsoft Exchange Management Shell script error - SBS2008
I suspect you might have something wrong with the CRLF try this instead
Random Solutions
Load a BLANK/EMPTY tree and list view in form
w32time
Retrieving Office 2007 License Code from a Backup Drive
automatically install tomcat 5.5
get textarea line count.. full and correct line count.. in FF to IE to safari
Adding URL Parameter
Print Management Export issue srv 2008
Best practices in building test harness
Select statement with Datepart failing
Shadowing/Overriding in C#