Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Windows 7 Forum Vista Tutorials Tags

Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

WMI, get-credentail and Pkt_Privacy

Reply
 
LinkBack Thread Tools Display Modes
Old 02-11-2007   #1 (permalink)
Steve Schofield
Guest


 
 

WMI, get-credentail and Pkt_Privacy

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 System SpecsSystem Spec
Old 02-11-2007   #2 (permalink)
Jeffrey Snover [MSFT]
Guest


 
 

Re: WMI, get-credentail and Pkt_Privacy

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/scr.../hubs/msh.mspx

My System SpecsSystem Spec
Old 02-11-2007   #3 (permalink)
Steve Schofield
Guest


 
 

Re: WMI, get-credentail and Pkt_Privacy

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?tabi...=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/scr.../hubs/msh.mspx
>


My System SpecsSystem Spec
Old 02-12-2007   #4 (permalink)
/\/\o\/\/ [MVP]
Guest


 
 

Re: WMI, get-credentail and Pkt_Privacy

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/p...rt-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?tabi...=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/scr.../hubs/msh.mspx
> >

>

My System SpecsSystem Spec
Reply

Thread Tools
Display Modes




Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53