|
|
Hello,
I have the following script for changing the archive name of a publishing point from the command line:
' ' Fijar nombre del fichero archivo de WMS según el parámetro del script ' (c) 2008 ' ' Referencia: ' http://msdn.microsoft.com/en-us/library/ms755621(VS.85,printer).aspx '
set args = WScript.Arguments num = args.Count
if num = 0 then titulo = "Sense Títol" else titulo = args(0) end if
set server = CreateObject("WMSServer.server") set bcpubpoint = server.PublishingPoints("sala-actes") set plugin = bcpubpoint.BroadcastDataSinks("WMS Archive Data Writer") set adminarchivesink = plugin.CustomInterface adminarchivesink.autostart = true adminarchivesink.path = "D:\WMS\WMPub\WMArchive\<V>\<Y><m><d> - " + titulo + ".asf"
If I execute the script from the "Administrator" account it works without problems. But, if I execute the script from the "user" account (that is member of the "Administrators" group) it fails with the following error:
Line 18, Char 1 Permission denied: 'Create Object' Code: 800A0046
Any idea about what's this happening?
Thank you!
|
|
You need the admin privileges to access WMS object model.
Regards, Vladimir V. Polischuk IT Manager www.voynex.com - custom software development, solutions for Windows Media (pay-per-minute billing, streaming content protection, access control)
"Manel.Rodero" <manel.rodero[ at ]gmail.com> wrote in message news:4cad3aef-aa6b-4a80-a5de-b16a2d34cd0b[ at ]x16g2000prn.googlegroups.com... Hello,
I have the following script for changing the archive name of a publishing point from the command line:
' ' Fijar nombre del fichero archivo de WMS según el parámetro del script ' (c) 2008 ' ' Referencia: ' http://msdn.microsoft.com/en-us/library/ms755621(VS.85,printer).aspx '
set args = WScript.Arguments num = args.Count
if num = 0 then titulo = "Sense Títol" else titulo = args(0) end if
set server = CreateObject("WMSServer.server") set bcpubpoint = server.PublishingPoints("sala-actes") set plugin = bcpubpoint.BroadcastDataSinks("WMS Archive Data Writer") set adminarchivesink = plugin.CustomInterface adminarchivesink.autostart = true adminarchivesink.path = "D:\WMS\WMPub\WMArchive\<V>\<Y><m><d> - " + titulo + ".asf"
If I execute the script from the "Administrator" account it works without problems. But, if I execute the script from the "user" account (that is member of the "Administrators" group) it fails with the following error:
Line 18, Char 1 Permission denied: 'Create Object' Code: 800A0046
Any idea about what's this happening?
Thank you!
|
|
|