Questions tagged [powershell]

Apply this tag to questions related to any version of PowerShell.

PowerShell is a Microsoft .NET based general purpose script language. It is well integrated into Microsoft Windows, which makes it very useful for system management tasks.

Still primarily being a Windows-bound technology, there are Open Source initiatives supported by Microsoft to make it available on Mac OS X and some Linux distributions.

17 questions
7
votes
2 answers

Correct way to initialize variables in PowerShell

Is there a preferred practice around initialising variables which are first defined within a branch of code, or is this purely subjective / personal preference? i.e. there are multiple ways this can be done; the most obvious of which are…
0
votes
1 answer

Multiple files in powershell

How to using multiple files in Powershell to ensure modularity? function.ps1 could have all the utility functions? command1.ps1 could have calls related to a command?