Get-AuthenticodeSignature It should return a value of CN=Microsoft....
Late night and happen to be reading email, have to check more in the morning. Steven On Tue, Aug 25, 2009 at 7:57 PM, Joseph L. Casale<[email protected]> wrote: > I have a powershell script that uses a wget like function and I want to > execute the contents after it downloads. > > > > The output when running the script looks like this: > > C:\Scripts\Maintenance>PS C:\Scripts\Maintenance> get-webfile http://url... > > > > > > Directory: Microsoft.PowerShell.Core\FileSystem::C:\Scripts\Maintenance > > > > > > Mode LastWriteTime Length Name > > ---- ------------- ------ ---- > > -a--- 8/25/2009 8:47 PM 1234 foo.exe > > > > Immediately, I would like to just run the damn thing, but if I could, I > would like to verify the digital sig is from MS before running it. > > I have just started reading through Steven Peck’s book reco posted earlier > but I kinda would like to get this simple script written rather than > continue in dos as I have beenJ > Anyone got any pointers? > > Thx, > jlc > > > > ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
