Skip to content

Commit dac86c8

Browse files
committed
Fix exchange session
1 parent 2b51d54 commit dac86c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/office-cmdlet-updater/constants/commands.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = {
1414
WHITEBOARD_INSTALL_MODULE: 'Install-Module -Name WhiteboardAdmin',
1515
EXCHANGE_INSTALL_MODULE: 'Install-Module -Name ExchangeOnlineShell -Force',
1616
EXCHANGE_GET_CRED: '$UserCredential = Get-Credential',
17-
EXCHANGE_GET_SESSION: '$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection',
17+
EXCHANGE_GET_SESSION: '$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $cred -Authentication Basic -AllowRedirection',
1818
EXCHANGE_SESSION_IMPORT: 'Import-PSSession $Session -DisableNameChecking',
1919
SET_LOGIN: '$Username = \'{}\'',
2020
SET_PASS: '$Password = \'{}\'',

0 commit comments

Comments
 (0)