The tag has no wiki summary.

learn more… | top users | synonyms

-6
votes
1answer
32 views

Power Shell command GET-CHILDITEM is not seting -errorVariable $ORIG_ERR when supplied [on hold]

New to Power Shell. I am trying to add in better error handling in my programs. I am using GET-CHILDITEMS to get the names of the files in a folder. Command below: $AGENT_FILES = GET-CHILDITEM ...
-6
votes
1answer
36 views

Power Shell Test-Path not givinging an error for non existing part of path [on hold]

New to using powershell. I am trying to use TEST-PATH to check for the existance of a path. The Path is UNC; i.e. \testapp02\e$\my_dir. here is my code line: $DEST_RENAMED_EXISTS[$LOOP1]=test-path ...
0
votes
1answer
32 views

Unix way of filtering/mapping/mapcatting records via the pipeline?

At home I use Linux and have for more than a decade. At work we use Windows and so I find PowerShell more familiar. I am a Linux/Unix fanboy at heart, but I've had greater success grokking the ...
-2
votes
1answer
2k views

Integrated PowerShell Console Window [closed]

I would like to have a tab open for PowerShell inside of my VS2012. There are other consoles that I have access to, such as "Command Window" and "Package Manager Console" Is there any way to get a ...
4
votes
1answer
141 views

How is Pash licensed?

Pash is an open source reimplementation of Windows PowerShell. It was released in 2008, and has been idle since then. I would like to take up the mantle. It's not clear what the license is. There is ...
0
votes
1answer
795 views

Multiple files in powershell [closed]

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?
13
votes
2answers
1k views

Are there well-known PowerShell coding conventions?

Are there any well-defined conventions when programming in PowerShell? For example, in scripts which are to be maintained long-term, do we need to: Use the real cmdlet name or alias? Specify the ...