• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

WMI, get-credentail and Pkt_Privacy

S

Steve Schofield

#1
I'm writing some interactive examples of using get-wmiobject. One of the
name spaces requires Pkt_Privacy authentication level to access remote
machines. Is there a way or plans to implement a property we can use to
select which type of authentication level. Not all WMI name space require
this level from what I'm finding. I looked the help for get-wmiobject and
get-credential, nothing out the box appears to have a property we can
define. TIA\\

Here is the error that shows up on the remote Longhorn server.

"Access to the root\WebAdministration namespace was denied because the
namespace is marked with RequiresEncryption but the script or application
attempted to connect to this namespace with an authentication level below
Pkt_Privacy. Change the authentication level to Pkt_Privacy and run the
script or application again"

--

Steve Schofield
Windows Server MVP - IIS
 

My Computer

J

Jeffrey Snover [MSFT]

#2

My Computer

S

Steve Schofield

#3
Hi Jeffrey,

Thanks for the information. That would be a nice to have in the future.
I'm not sure what you mean by your answer, but for now I'll see if I can
write a cmdlet that would implement this functionality. There is an article
on http://www.iis.net that covers this..

http://www.iis.net/default.aspx?tabid=2&subtabid=25&i=1211&p=1

--

Steve Schofield
Windows Server MVP - IIS
ASPInsider Member - MCP

http://www.orcsweb.com/
Managed Complex Hosting
#1 in Service and Support

"Jeffrey Snover [MSFT]" <jsnover@ntdev.microsoft.com> wrote in message
news:AD9DBF7E-70EE-4D73-9F33-0C49B18899C9@microsoft.com...
> Pkt_Privacy is not supported in V1.
> The only thing I can suggest is using WMIC to get XML and then operating
> on that.
> --
> Jeffrey Snover [MSFT]
> Windows PowerShell Architect
> Microsoft Corporation
> This posting is provided "AS IS" with no warranties, no confers rights.
> Visit the Windows PowerShell Team blog at:
> http://blogs.msdn.com/PowerShell
> Visit the Windows PowerShell ScriptCenter at:
> http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx
>
 

My Computer

O

/\/\o\/\/ [MVP]

#4
You can set PacketPrivacy on the Managementscope :

PoSH> $w = [wmi]''
PoSH> $w.PSBase.Scope.Options.Authentication
Unchanged
PoSH> $w.PSBase.Scope.Options.Authentication = 'PacketPrivacy'
PoSH> $w.PSBase.Scope.Options.Authentication
PacketPrivacy

See also :

http://mow001.blogspot.com/2006/10/powershell-wmi-support-in-rc2.html

@ Jeffrey : > The only thing I can suggest is using WMIC

hmm, did you make that ;-)

Greetings /\/\o\/\/

"Steve Schofield" wrote:

> Hi Jeffrey,
>
> Thanks for the information. That would be a nice to have in the future.
> I'm not sure what you mean by your answer, but for now I'll see if I can
> write a cmdlet that would implement this functionality. There is an article
> on http://www.iis.net that covers this..
>
> http://www.iis.net/default.aspx?tabid=2&subtabid=25&i=1211&p=1
>
> --
>
> Steve Schofield
> Windows Server MVP - IIS
> ASPInsider Member - MCP
>
> http://www.orcsweb.com/
> Managed Complex Hosting
> #1 in Service and Support
>
> "Jeffrey Snover [MSFT]" <jsnover@ntdev.microsoft.com> wrote in message
> news:AD9DBF7E-70EE-4D73-9F33-0C49B18899C9@microsoft.com...
> > Pkt_Privacy is not supported in V1.
> > The only thing I can suggest is using WMIC to get XML and then operating
> > on that.
> > --
> > Jeffrey Snover [MSFT]
> > Windows PowerShell Architect
> > Microsoft Corporation
> > This posting is provided "AS IS" with no warranties, no confers rights.
> > Visit the Windows PowerShell Team blog at:
> > http://blogs.msdn.com/PowerShell
> > Visit the Windows PowerShell ScriptCenter at:
> > http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx
> >

>
 

My Computer

Users Who Are Viewing This Thread (Users: 1, Guests: 0)