Powershell query

Soldato
Joined
1 Feb 2006
Posts
8,188
Somebody please tell me what the purpose of this > $null is? If the value is a null will it stop a script running? Is this another way of saying 'only continue if the result of the expression is not null'?

Code:
Get-SomeCmdlet [b]> $null[/b]
 
Ah great thanks.

Is that similar to doing -erroraction silentlycontinue and should I use this after every single command if I don't want error messages to be written to the console?
 
Ok makes sense. I am trying to build up some automated build scripts for SharePoint so I guess I am maybe better to keep the output visible to know whether the cmdlets are doing what they are supposed to.
 
Back
Top Bottom