Created
March 26, 2012 18:03
-
-
Save jjhamshaw/2207971 to your computer and use it in GitHub Desktop.
powershell pscx module example: 'write-zip'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Windows\System32\WindowsPowerShell\v1.0 | |
ModuleType Name ExportedCommands | |
---------- ---- ---------------- | |
Manifest AppLocker {} | |
Manifest BitsTransfer {} | |
Manifest PSDiagnostics {} | |
Manifest TroubleshootingPack {} | |
Manifest WebAdministration {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import-module Pscx | |
task Deploy { | |
$artifacts = "C:\src\build\" | |
$destination = "D:\Applications\Deploy" | |
$zipFilename = "MySite.zip" | |
write-zip $artifacts ($destination + $zipFilename) | |
} | |
remove-module Pscx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
write-host "$PSHome" | |
write-host "get-module -listAvailable" | |
import-module Pscx | |
task Deploy { | |
$artifacts = "C:\src\build\" | |
$destination = "D:\Applications\Deploy" | |
$zipFilename = "MySite.zip" | |
write-zip $artifacts ($destination + $zipFilename) | |
} | |
remove-module Pscx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment