Questions tagged [pscx]

The PowerShell Community Extensions (PSCX) is an open source PowerShell module.

Description of PSCX

PSCX is an acronym for the PowerShell Community Extensions which is an open source PowerShell module project. The latest version is 3.3.2. The extension provides a wide variety of generic CmdLets e.g.:

  • Out-Clipboard
  • Get-FileTail (tail)
  • Set-FileTime (touch)
  • Invoke-BatchFile - to execute *.bat and *.cmd files.
  • Unblock-File
  • Format-Hex
  • Format-Xml
  • Test-Xml
  • Test-Assembly
  • Write-Zip
  • Read-Archive
  • Expand-Archive
  • etc.

Resources

23 questions
0
votes
1 answer

Pscx.IO.PscxPathInfo

I was trying to create a shortcut using new-shortcut from Pscx. But putting in paths I'm always getting that PscxPathInfo error ( string cannot be converted to PscxPathinfo). I already tried $dest = "...path" - and used "get-item $dest" - but…
0
votes
1 answer

choco install pscx fails

I get error this trying to install pscx powershell module via Chocolatey ERROR: Chocolatey expected a file at 'C:\Users\zf58\AppData\Local\Temp\chocolatey\pscx\3.2.0\pscxInstall.msi' to be of length '667' but the length was '1408'. The install of…
Sreerag
  • 1,381
  • 3
  • 11
  • 16
0
votes
1 answer

Reading zip archive files for content

I created the following code, but it is not actually reading any of the .zip or .prd files as expected, but the other parts are working. Might you help me figure out why it is not actually reading the zip files in the ForEach loop? #Set variables…
RadFox
  • 419
  • 1
  • 4
  • 17
0
votes
1 answer

PowerShell PSCX Read-Archive: Cannot bind parameter... problem

I'm running across a problem I can't seem to wrap my head around using the Read-Archive cmdlet available via PowerShell Community Extensions (v2.0.3782.38614). Here is a cut down sample used to exhibit the problem I'm running into: $mainPath =…
Robert Groves
  • 7,574
  • 6
  • 38
  • 50
0
votes
1 answer

PowerShell Community Extensions Write-Zip Progress Bar

I am using the PowerShell Community Extensions (PSCX), but one one particular job we are having to zip up several files before transmitting to our hosted server. using: Write-Zip -IncludeEmptyDirectories -OutputPath $outputZip -Path…
Luke Duddridge
  • 4,285
  • 35
  • 50
0
votes
1 answer

Error Running Powershell Script Using PSCX

We're running a Team City build server which already executes this script locally with no problem. However, when I try to run this script manually I have the following problem: Windows PowerShell Copyright (C) 2012 Microsoft Corporation. All rights…
NotNormal
  • 125
  • 2
  • 8
0
votes
0 answers

backing up and compressing in powershell

Our corporate backup crap ware has failed me and I am rolling my own backup/archival script to be scheduled to run on a weekly basis. What I have so far is: $dst = "S:\VM-Bak" $src = "D:\Work\Projects\CPS\MR4" $fileName = "CPS-MR4.tar.gz" $archive =…
SteveMustafa
  • 621
  • 2
  • 8
  • 19
0
votes
2 answers

How do I write some code to run whenever the pscx module is imported?

The Powershell Community Extensions (pscx) override the standard "help" function when the module is imported, to use the supplied "less" function which in turn calls the less.exe command supplied with pscx. Unfortunately, less.exe crashes the…
Paul Moore
  • 6,569
  • 6
  • 40
  • 47
1
2