Jan 30
dim dayweekdim strBackup dayweek = datepart("w",(date)) strBackup = """C:Program FilesCommon FilesMicrosoft Sharedweb server extensions60BINstsadm""" + _
"-o backup -url http://companyweb -filename x:backupscompanyweb" + cstr(dayweek) + ".dat -overwrite"
Set WshShell = WScript.CreateObject("WScript.Shell") Return = WshShell.Run(strBackup, 0, true) Set WshShell = Nothing
To add this script as a scheduled task, follow these steps:
| 1. | Open Control Panel. |
| 2. | Double-click Scheduled Tasks. |
| 3. | On the File menu in Scheduled Tasks, point to New, and then click Scheduled Task. |
| 4. | Type a name for the scheduled task, such as Companyweb Backup. |
| 5. | Double-click the new task to open the task properties. |
| 6. | In the Run box, type cscript Drive:\Wssback.vbs.Note In this step, Drive is the location of the Wssback.vbs file. |
| 7. | Click Set password, type the password for the user account that the task will use in the Password box and in the Confirm password box, and then click OK. |
| 8. | Click the Schedule tab, configure the appropriate schedule, and then click OK. |
| 9. | To test the scheduled task, right-click the task, and then click Run. After the task runs, visit the location that you specified for the backup file to verify that the script created the file. |
Powered by ScribeFire.




Recent Comments