Boomer,
I found an SDK that might help you with what you want to do:
Windows Media Format 11 SDK
http://msdn2.microsoft.com/en-us/lib...10(VS.85).aspx
This SDK lets you query all kinds of DRM information for a file, and
the SDK comes with a whole bunch of useful sample code. It doesn't
look like any of it is easily accessible from .NET (no TLBs or COM
servers), so you may have to write a small Win32 console application
to query what you want, and then call it from your PowerShell script.
I hope this helps.
Jeff
Jeff wrote:
Quote:
> On Feb 25, 1:00 pm, Boomer <Boo...@xxxxxx> wrote: Quote:
> > Hi all,
> >
> > My intent is use PS to search through my digital music library and remove
> > all DRM files for which I no longer have rights.
> >
> > I used to subscribe to the URGE music store, and have a bunch of files
> > tagged with "protected content" under the License Property Set. This
> > "license" tab can be viewed as a tab along side the general, the security,
> > and the summary tabs, if one clicks on the file's property.
> >
> > For the life of me, I cannot find anything that describes how to show/list
> > the presence of the "license" tab. TypeName: System.IO.FileInfo ... I can
> > retreive info about the file with the memberType Property ... Nothing out of
> > the ordinary is listed for memberType when I enter the following command on a
> > file in question:
> >> >
> > I figured it would the easiest to do it in PS, but it didn't turn out to be
> > such a good assumption.
> >
> > Your assistance is greatly appreciated. >
> Boomer,
>
> I looked around at what was available through Windows Media player,
> and the best I could come up with is this little script that tells you
> if a file has DRM protection or not:
>
> # Get-Protected.ps1
> param( [string] $wmaFile )
>
> if ( Test-Path $wmaFile )
> {
> $wmplayer = New-Object -ComObject "WMPlayer.OCX"
>
> $media = $wmplayer.newMedia( $wmaFile )
>
> [bool]::Parse( $media.getItemInfo( "Is_Protected" ) )
> }
> # Get-Protected.ps1
>
> If you want much more information that that, it looks like you might
> need to get a license from Microsoft for a DRM SDK of some kind:
> http://msdn2.microsoft.com/en-us/win.../bb190309.aspx
>
> These licenses are necessary if you are creating an application to
> manage licenses or something like that, so it seems like they
> shouldn't be necessary if all you want to do is query the
> information. If you do find anything, please post back here; I would
> certainly be interested.
>
> Jeff