Sign in
|
Join PowerShell.com!
|
Help
Home
PowerTips
Ask the Experts
Forums
Webcasts
Blogs
eBookV2
Script Library
Twitter Grid
Modules
QuickClick
Scripts
Snippets
Videos
Library
»
Snippet Library
»
WMI
»
Slideshow
WMI Slideshow
Share
|
Browse Library
Module Library
QuickClick Library
Script Library
Snippet Library
ADSI
Comparison
Conditions and Loops
.Net
Exception Handlers
Files and Folders
Functions
Headers
Includes
Network
Pipeline
PowerShell Internals
Registry
Samples
Script Functions Templates
Security
SQL Server
Templates
User Management
WMI
Video Library
Members Only
Tags
Snippet
WMI
View more
Get TCP Settings
<?
xml
version
=
"1.0"
?>
<CodeSnippets xmlns
=
"http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"
>
<CodeSnippet Format
=
"1.0.0"
>
<Header>
<Title>TCP Settings<
/
Title>
<Shortcut
/
>
<Description>get tcp settings and output to a file<
/
Description>
<Author>Idera<
/
Author>
<SnippetTypes>
<SnippetType>Expansion<
/
SnippetType>
<
/
SnippetTypes>
<
/
Header>
<Snippet>
<Declarations>
<Literal>
<ID>param1<
/
ID>
<ToolTip
/
>
<Default>Name
/
IP<
/
Default>
<
/
Literal>
<Literal>
<ID>param2<
/
ID>
<ToolTip
/
>
<Default>c:\
tcpipsettings.txt
<
/
Default>
<
/
Literal>
<
/
Declarations>
<Code Language
=
"PowerShell"
Kind
=
"70"
><
!
[CDATA[
Get-WmiObject
-class
win32_networkadapterconfiguration
-computername
'$param1$'
|
select-object
-property
servicename,description,ipaddress,dhcpenabled,defaultipgateway,index |
format-table
-wrap
|
out-file
-width
256
-filepath
$param2
$]]><
/
Code>
<
/
Snippet>
<
/
CodeSnippet>
<
/
CodeSnippets>
Loading...
Get TCP Settings
Get Services
Get Processor
OS Version
Network Adapter...
Local Groups...
Installed Hotfixes
Groups in Domain
Disk Capacity
View all files
Copyright 2011 PowerShell.com. All rights reserved.