Click here to Skip to main content
15,063,300 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
AnswerRe: I wish I liked Powershell Pin
megaadam5-Jul-20 14:05
professionalmegaadam5-Jul-20 14:05 
GeneralRe: I wish I liked Powershell Pin
Kiriander5-Jul-20 20:09
MemberKiriander5-Jul-20 20:09 
GeneralRe: I wish I liked Powershell Pin
honey the codewitch5-Jul-20 20:26
mvahoney the codewitch5-Jul-20 20:26 
GeneralRe: I wish I liked Powershell Pin
Kiriander5-Jul-20 20:29
MemberKiriander5-Jul-20 20:29 
GeneralRe: I wish I liked Powershell Pin
pmauriks5-Jul-20 21:17
Memberpmauriks5-Jul-20 21:17 
GeneralRe: I wish I liked Powershell Pin
Kiriander5-Jul-20 21:24
MemberKiriander5-Jul-20 21:24 
GeneralRe: I wish I liked Powershell Pin
pmauriks5-Jul-20 21:49
Memberpmauriks5-Jul-20 21:49 
GeneralRe: I wish I liked Powershell Pin
Phil.Benson5-Jul-20 21:18
professionalPhil.Benson5-Jul-20 21:18 
I hate it....

Try writing decent functions where you explicitly define a return value / object and it gets metamorphasied into a PSObject...
The only way I found to *always* get what you asked for was (for example)

return , VariableContainingObjectToBeReturned

Notice the comma after return and before the variable. Even explicitly casting the varaible to something does not always work...

Another Pet Peave is the fact that if you do not explicitly assign a varible as a return object from a Function (within a function), or pipe a functions return values to null (| Out-Null) it Elephants-Up the expected return value as well...
Who the f*** is General Failure, and why is he reading my harddisk?

GeneralRe: I wish I liked Powershell Pin
Jan Holst Jensen25-Jul-20 23:17
MemberJan Holst Jensen25-Jul-20 23:17 
GeneralRe: I wish I liked Powershell Pin
Phil.Benson5-Jul-20 23:24
professionalPhil.Benson5-Jul-20 23:24 
GeneralRe: I wish I liked Powershell Pin
da77a5-Jul-20 21:39
Memberda77a5-Jul-20 21:39 
GeneralRe: I wish I liked Powershell Pin
MikeTheFid6-Jul-20 2:36
MemberMikeTheFid6-Jul-20 2:36 
GeneralRe: I wish I liked Powershell Pin
obermd6-Jul-20 3:18
Memberobermd6-Jul-20 3:18 
GeneralRe: I wish I liked Powershell Pin
raddevus6-Jul-20 9:34
mvaraddevus6-Jul-20 9:34 
GeneralRe: I wish I liked Powershell Pin
MikeTheFid6-Jul-20 6:28
MemberMikeTheFid6-Jul-20 6:28 
GeneralRe: I wish I liked Powershell Pin
MSBassSinger6-Jul-20 6:37
professionalMSBassSinger6-Jul-20 6:37 
GeneralRe: I wish I liked Powershell Pin
raddevus6-Jul-20 9:31
mvaraddevus6-Jul-20 9:31 
GeneralRe: I wish I liked Powershell Pin
Member 132567506-Jul-20 11:26
MemberMember 132567506-Jul-20 11:26 
GeneralRe: I wish I liked Powershell Pin
thorne9997-Jul-20 6:53
Memberthorne9997-Jul-20 6:53 
GeneralRe: I wish I liked Powershell Pin
honey the codewitch7-Jul-20 7:07
mvahoney the codewitch7-Jul-20 7:07 
QuestionWhere are the article contests? Pin
honey the codewitch4-Jul-20 12:58
mvahoney the codewitch4-Jul-20 12:58 
AnswerRe: Where are the article contests? Pin
OriginalGriff4-Jul-20 19:41
mveOriginalGriff4-Jul-20 19:41 
GeneralRe: Where are the article contests? Pin
honey the codewitch5-Jul-20 3:13
mvahoney the codewitch5-Jul-20 3:13 
JokeDepartment of Health... Pin
Mike Hankey4-Jul-20 8:17
professionalMike Hankey4-Jul-20 8:17 
GeneralThere are going to be a lot of hangovers tomorrow! Pin
OriginalGriff4-Jul-20 3:12
mveOriginalGriff4-Jul-20 3:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.