Skip to content

Commit 1175686

Browse files
authored
Merge pull request #12 from bitsofinfo/nf/command-import-fix
Added spaces to separate init commands when importing commands into s…
2 parents 2b93b4f + bb28b92 commit 1175686

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ Three sets of init commands are availiable as of version `1.1.0`:
5757
### <a id="history"></a>History
5858

5959
```
60+
v1.1.1 - 2020-12-07
61+
- Fixed bug import of custom commands if provided for certificate based auth
62+
6063
v1.1.0 - 2020-12-03
6164
- Added option for key and thumbprint based Exchange authentication
6265

o365Utils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ module.exports.getO365PSKeyInitCommands = function (pathToDecryptUtilScript,
146146
'$CertificatePassword = (ConvertTo-SecureString -String "' + authCertificatePassword + '" -AsPlainText -Force)',
147147

148148
// #6 connect to exchange
149-
'Connect-ExchangeOnline -CertificateFilePath $CertificateFilePath -CertificatePassword $CertificatePassword -AppID ' + applicationId + ' -Organization ' + organizationId + psCommandsToImport,
149+
'Connect-ExchangeOnline -CertificateFilePath $CertificateFilePath -CertificatePassword $CertificatePassword -AppID ' + applicationId + ' -Organization ' + organizationId + ' ' + psCommandsToImport,
150150

151151
// #7 cleanup
152152
'Remove-Variable -Force -ErrorAction SilentlyContinue $PSCredential'
@@ -235,7 +235,7 @@ module.exports.getO365PSThumbprintInitCommands = function (pathToDecryptUtilScri
235235
('$sessionOpt = New-PSSessionOption -OpenTimeout ' + openTimeout + ' -OperationTimeout ' + operationTimeout + ' -IdleTimeout ' + idleTimeout),
236236

237237
// #6 connect to exchange
238-
'Connect-ExchangeOnline -CertificateThumbPrint ' + certificateThumbPrint + ' -AppID ' + applicationId + ' -Organization ' + organizationId + psCommandsToImport,
238+
'Connect-ExchangeOnline -CertificateThumbPrint ' + certificateThumbPrint + ' -AppID ' + applicationId + ' -Organization ' + organizationId + ' ' + psCommandsToImport,
239239

240240
// #7 cleanup
241241
'Remove-Variable -Force -ErrorAction SilentlyContinue $PSCredential'

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "powershell-command-executor",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Provides a registry and gateway for execution powershell commands through long-lived established remote PSSessions via a stateful-process-command-proxy pool of powershell processes",
55
"main": "psCommandService.js",
66
"directories": {
@@ -23,9 +23,9 @@
2323
"exec"
2424
],
2525
"dependencies": {
26-
"stateful-process-command-proxy": "latest",
26+
"mustache": "^4.1.0",
2727
"promise": "latest",
28-
"mustache": "latest"
28+
"stateful-process-command-proxy": "latest"
2929
},
3030
"devDependencies": {
3131
"mocha": "latest"

0 commit comments

Comments
 (0)