windows powershell content

Problems? Post here...
Post Reply
User avatar
nightkid
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 306
Joined: 27 May 2007, 16:00
16
Location: interwebz

windows powershell content

Post by nightkid »

anyone heard of this?
seems interesting


Windows PowerShell™ Primer
Microsoft Corporation
Published: September 2006
Abstract
Windows PowerShell™ is a new Windows command-line shell designed especially for system administrators. The shell includes an interactive prompt and a scripting environment that can be used independently or in combination.
This document describes the basic concepts and features of Windows PowerShell and suggests ways that you can use Windows PowerShell in system administration.



Contents
Windows PowerShell Primer Copyright 9
Windows PowerShell Introduction 9
Audience 10
About Windows PowerShell 10
Discoverability 10
Consistency 10
Interactive and Scripting Environments 11
Object Orientation 11
Easy Transition to Scripting 11
Installing and Running Windows PowerShell 12
Installation Requirements 12
Installing Windows PowerShell 12
Running Windows PowerShell 13
Windows PowerShell Basics 13
Understanding Important Windows PowerShell Concepts 14
Commands are not Text-based 14
The Command Family is Extensible 14
Windows PowerShell Handles Console Input and Display 15
Windows PowerShell Uses Some C# Syntax 16
Learning Windows PowerShell Names 16
Cmdlets Use Verb-Noun Names to Reduce Command Memorization 17
Cmdlets Use Standard Parameters 18
The Help Parameter (?) 19
Common Parameters 19
Suggested Parameters 19
Getting Summary Command Information 19
Displaying available command types 20
Getting Detailed Help Information 21
Using Familiar Command Names 22
Interpreting Standard Aliases 23
Creating New Aliases 24
Using Tab Expansion to Automatically Complete Names 24
Object Pipeline 26
Understanding the Windows PowerShell Pipeline 26
Viewing Object Structure (Get-Member) 28
Using Format Commands to Change Output View 30
Using Format-Wide for Single-Item Output 30
Controlling Format-Wide Display with Column 31
Using Format-List for a List View 31
Getting Detailed Information by using Format-List with Wildcards 31
Using Format-Table for Tabular Output 32
Improving Format-Table Output (AutoSize) 32
Wrapping Format-Table Output in Columns (Wrap) 33
Organizing Table Output (-GroupBy) 34
Redirecting Data with Out-* Cmdlets 35
Paging Console Output (Out-Host) 36
Discarding Output (Out-Null) 37
Printing Data (Out-Printer) 37
Saving Data (Out-File) 37
Windows PowerShell Navigation 38
Managing the Current Location in Windows Powershell 39
Getting Your Current Location (Get-Location) 39
Setting Your Current Location (Set-Location) 40
Saving and Recalling Recent Locations (Push-Location and Pop-Location) 41
Managing Windows PowerShell Drives 43
Adding New Windows PowerShell Drives (New-PSDrive) 45
Deleting Windows PowerShell Drives (Remove-PSDrive) 46
Adding and Removing Drives Outside Windows PowerShell 47
Working With Files, Folders and Registry Keys 47
Enumerating Files, Folders, and Registry Keys (Get-ChildItem) 47
Listing all Contained Items (-Recurse) 48
Filtering Items by Name (-Name) 48
Forcibly Listing Hidden Items (-Force) 48
Matching Item Names with Wildcards 49
Excluding Items (-Exclude) 49
Mixing Get-ChildItem Parameters 50
Manipulating Items Directly 51
Creating New Items (New-Item) 52
Why Registry Values are not Items 53
Renaming Existing Items (Rename-Item) 53
Moving Items (Move-Item) 53
Copying Items (Copy-Item) 54
Deleting Items (Remove-Item) 55
Executing Items (Invoke-Item) 55
Working with Objects 56
Getting WMI Objects (Get-WmiObject) 56
Getting WMI Objects (Get-WmiObject) 56
Listing WMI Classes 56
Displaying WMI Class Details 58
Displaying Non-Default Properties with Format Cmdlets 59
Creating .NET and COM Objects (New-Object) 59
Using New-Object for Event Log Access 60
Using Constructors with New-Object 60
Storing Objects in Variables 60
Accessing a Remote Event Log with New-Object 61
Clearing an Event Log with Object Methods 61
Creating COM Objects with New-Object 62
Creating a Desktop Shortcut with WScript.Shell 63
Using Internet Explorer from Windows PowerShell 65
Getting Warnings about .NET-Wrapped COM Objects 66
Using Static Classes and Methods 67
Getting Environment Data with System.Environment 67
Referring to the Static System.Environment Class 68
Displaying Static Properties of System.Environment 69
Doing Math with System.Math 69
Removing Objects from the Pipeline (Where-Object) 71
Performing Simple Tests with Where-Object 71
Filtering Based on Object Properties 72
Repeating a Task for Multiple Objects (ForEach-Object) 74
Selecting Parts of Objects (Select-Object) 75
Sorting Objects 76
Using Variables to Store Objects 77
Creating a Variable 77
Manipulating Variables 78
Using Cmd.exe Variables 79
Using Windows PowerShell for Administration 79
Managing Local Processes 80
Listing Processes (Get-Process) 80
Stopping Processes (Stop-Process) 81
Stopping All Other Windows PowerShell Sessions 82
Managing Local Services 83
Listing Services 83
Stopping, Starting, Suspending, and Restarting Services 84
Collecting Information About Computers 84
Listing Desktop Settings 85
Listing BIOS Information 85
Listing Processor Information 85
Listing Computer Manufacturer and Model 86
Listing Installed Hotfixes 86
Listing Operating System Version Information 87
Listing Local Users and Owner 88
Getting Available Disk Space 88
Getting Logon Session Information 89
Getting the User Logged on to a Computer 89
Getting Local Time from a Computer 89
Displaying Service Status 89
Working with Software Installations 90
Listing Windows Installer Applications 90
Listing All Uninstallable Applications 92
Installing Applications 93
Removing Applications 94
Upgrading Windows Installer Applications 94
Changing Computer State: Locking, Logging Off, Shutting Down, and Rebooting 95
Locking a Computer 95
Logging Off the Current Session 95
Shutting Down or Rebooting a Computer 96
Working with Printers 96
Listing Printer Connections 96
Adding a Network Printer 96
Setting a Default Printer 97
Removing a Printer Connection 97
Performing Networking Tasks 97
Listing IP Addresses for a Computer 97
Listing IP Configuration Data 98
Pinging Computers 99
Retrieving Network Adapter Properties 100
Assigning the DNS Domain for a Network Adapter 100
Performing DHCP Configuration Tasks 101
Determining DHCP-Enabled Adapters 101
Retrieving DHCP Properties 101
Enabling DHCP on Each Adapter 101
Releasing and Renewing DHCP Leases on Specific Adapters 101
Releasing and Renewing DHCP Leases on All Adapters 102
Creating a Network Share 103
Removing a Network Share 103
Connecting a Windows Accessible Network Drive 103
Working with Files and Folders 104
Listing All the Files and Folders Within a Folder 104
Copying Files and Folders 104
Creating Files and Folders 105
Removing All Files and Folders Within a Folder 105
Mapping a Local Folder as a Windows Accessible Drive 106
Reading a Text File into an Array 106
Working with Registry Keys 107
Listing All Subkeys of a Registry Key 107
Copying Keys 108
Creating Keys 109
Deleting Keys 109
Removing All Keys Under a Specific Key 109
Working with Registry Entries 110
Listing Registry Entries 110
Getting a Single Registry Entry 111
Creating New Registry Entries 112
Renaming Registry Entries 113
Deleting Registry Entries 114
Appendix 1 - Compatibility Aliases 114
Appendix 2 - Creating a Custom PowerShell Shortcut 115

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

Never heard of it to be honest =)

But found some stuff here...

DL and info
HERE


And a picture HERE
"The best place to hide a tree, is in a forest"

User avatar
nightkid
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 306
Joined: 27 May 2007, 16:00
16
Location: interwebz

Post by nightkid »

i actually have it, i have a "non-authentic" copy of windows xp, called XP BLACK, that comes with loads of software and etc. this came with it and i saw "terminal" i thought just a little cutsie thing for window's prompt but i clicked it and saw powershell, went to start-> all programs, and it was there...so im reading up on this slowly..since i just discovered it i thought i would share it with everyone :wink:

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

Ok =)

Well do tell us if you find something useful with it ^^
"The best place to hide a tree, is in a forest"

Post Reply