Question : taking backup edge server 2007 sp1

Dear all,

i want to export my edge transport server 2007 sp1 configs through a schedular. i have create  .bat file with this command:

 

PowerShell.exe -PSConsoleFile "C:\Program Files\Microsoft\Exchange Server\Bin\ExShell.psc1" -Command ". 'C:\Scripts\ExportEdgeConfig.ps1 -CloneConfigData:C:\edge.xml'"

 

in C:\Scripts folder i have copied .ps1 file from program files\.......exchange server\scripts\

it gives following error:

The term 'C:\Scripts\ExportEdgeConfig.ps1 -CloneConfigData:C:\edge.xml' is not recoginized as a cmdlet,function, operable program, or script file. verify the term and try again,

At line:1 char:2

+ . <<<< 'C:\Scripts\ExportEdgeConfig.ps1 -cloneconfigdata:c:\edge.xml'

 

and if i remove -CloneConfigData:C:\edge.xml it justs says:

Input parameters are not set

 

any help please....

Answer : taking backup edge server 2007 sp1


I thought you did not want to implement a new framework?

If you are trying to implement a framework, then you should go ahead and research them and choose one.   If you want my opinion on frameworks, I would consider simply posting each page to itself.   It's very easy and more powerful than many frameworks for error handling.  You can organize and share code using cfinclude for update statements and such.   Keep it simple!


But what you said was, you wanted to implement ONE PAGE of a framework (fusebox) and NOT the entire site.  

My comment is that this is not a good idea.   There is no real way to implement one page of fusebox.  It's easy enough to take the switch statement and put it at the top of your form and submit the page to itself.   Don't try to implement one page of a framework.

If you post the code, I can show you what I mean.  


Random Solutions  
 
programming4us programming4us