>>Invoke-Command -session $session {Get-Command Restore* | ?{$_.ModuleName -eq "Microsoft.SharePoint.PowerShell" } |select Name}
Restore-SPEnterpriseSearchServiceApplication
Restore-SPFarm
Restore-SPSite
>>Invoke-Command -session $session {Get-Command *Backup*|?{$_.CommandType -eq "CmdLet"}|sele
http://huddledmasses.org/powershell-modules/
"Modules appear destined to replace snapins as the main way to extend PowerShell.
http://huddledmasses.org/whats-new-in-powershell-2/
Advanced Functions
Modules
Help
Remoting
Eventing
Integrated Script Editor (debugging)
Transaction support
>>function test ($x) { &$x(3) }
>>test { param($x) $x + 2 }
5
:)
http://technet.microsoft.com/en-us/library/ee806878(office.14).aspx
- To retrieve a list of all SharePoint 2010 Products cmdlets using the Noun parameter, at the Windows PowerShell command prompt, type the following command: Get-Command –module Microsoft.SharePoint.PowerShell
- To retrieve a list
http://technet.microsoft.com/en-us/library/ee176842.aspx
Can’t remember the name of each and every Windows PowerShell cmdlet? Don’t worry about it; that’s one of the things Get-Command can help you with.
gets alphabetic listing of all currently defined aliases, want to assign alias? check Set-Alias
shows a list of all about documents, very helpful
powershell 2.0 and credssp, works just great
First I thought it is like Kerberos delegation. That is a pain, you have to do bunch of tricks with SPN and AD accounts. But credssp is much easier to turn on and use.
http://support.microsoft.com/kb/951608
CredSSP is a new Security Support Provider (SSP) that is available in Windows XP SP3 by using the Security Support Provider Interface (SSPI).
Very simple scenario
|import |
|powerslim|
!|scenario|given user: _ with password: _ |user, pwd |
|start |PowerShell |
|eval |^s = new-object -typeName System.Security.SecureString |
|eval |foreach(^a in "@pwd".ToCharArray()) { ^s.AppendChar( ^a ) } |
|eval |^creds = new-object -typename Syst
http://technet.microsoft.com/en-us/library/ee176955.aspx
Get-Process | select name,id
http://www.computerperformance.co.uk/powershell/powershell_where.htm
gwmi -list | ? {$_.name -match "Network"}
http://withaherring.blogspot.com/
This major release supports fitnesse release 2010-01-03 and slim protocol v0.1:
-Added support for delegating from fixture to system under test with fixture.sut()
-Added support for library fixtures
-Added EchoFixture for use as a library fixture
-Added support
http://www.hanselminutes.com/default.aspx?showID=169
There is no Fit anymore, but there is Fitnesse plus SLIM from Uncle Bob! Also interesting points about Domain Language. Do recommend.
http://gojko.net/2009/09/24/top-10-reasons-why-teams-fail-with-acceptance-testing/
...
http://www.computerperformance.co.uk/powershell/powershell_syntax.htm
"The fact that you almost don't need this page is a testament to the intuitive nature of PowerShell.
http://goo.gl/9hgU
"When you use the Get-Credential cmdlet, you get a GUI dialog box to enter the credentials. This is the "Common Criteria Certified" way of handling credentials. It is also a pain in the butt at times.
Something like this :)
$s = New-Object -TypeName System.Security.SecureString
$s.AppendChar( '1' )
$creds = new-object -typename System.Management.Automation.PSCredential -argumentlist product\Administrator, $s
invoke-command -ComputerName sp2010dc -Credential $creds {Get-Process}
Within the remoting session to computer B, we want to execute a command — as below — to create test.txt on computer C.
Add a comment