Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Entertainment » microsoft.public.windowsmedia.sdk
Thread: CreateObject("WMSServer.server") fails for 'user' but is member of 'Administrators' group, why?

HTVi
TV Discussion Newsgroups

CreateObject("WMSServer.server") fails for 'user' but is member of 'Administrators' group, why?
"Manel.Rodero" <manel.rodero[ at ]gmail.com> 11/11/2008 2:10:19 PM
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!
Re: CreateObject("WMSServer.server") fails for 'user' but is member of 'Administrators' group, why?
"Vladimir Polischuk" <vlad_at_voynex.com> 11/14/2008 9:31:34 AM
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!


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen