Script to clone publishing points
WMPTalk.com Forum Index WMPTalk.com
Discuss Windows Media Player
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web wmptalk.com
Script to clone publishing points

 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Windows Media Server
Author Message
Jason
Guest





Posted: Thu Dec 08, 2005 9:30 pm    Post subject: Script to clone publishing points Reply with quote

I am trying to get a vbscript to clone a publishing point. I have
other scripts which allow me to add, remove and change points but I
can't seem to clone one. Here is what I have:

clonepub.vbs
---------------------------------------------
pubpointcopy "x.x.x.x"


sub pubpointcopy (wmsserver_ip)
set Srvobj = createobject("WMSServer.server",wmsserver_ip)
set pubpoints = Srvobj.PublishingPoints

'pubpoint(6) is the point I was to use as a template
set originalPubPoint = pubpoints(6)

strName = "Cloned Pub Point"
set NewPubPoint = PubPoints.Clone(strName, originalPubPoint)

end sub
---------------------------------------------

The error i get is:

C:\scripts\clone>cscript clonepub.vbs
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved

C:\scripts\clone\clonepub.vbs(12, 1) (null): Access is denied.

Line 12 = set NewPubPoint = PubPoints.Clone(strName, originalPubPoint)

Any ideas or code samples that do clone?

Back to top
Mike Lowery
Guest





Posted: Fri Dec 09, 2005 5:30 pm    Post subject: Re: Script to clone publishing points Reply with quote

Are you running the script as an Administrator?
Back to top
 
Post new topic   Reply to topic    WMPTalk.com Forum Index -> Windows Media Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Microsoft Office Forum New Topics
Powered by phpBB