Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Windows PowerShell
- Copyright (C) 2016 Microsoft Corporation. All rights reserved.
- PS C:\Windows\system32> $UserCredential = Get-Credential
- cmdlet Get-Credential at command pipeline position 1
- Supply values for the following parameters:
- Credential
- PS C:\Windows\system32> $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.of
- fice365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
- PS C:\Windows\system32> Import-PSSession $Session
- WARNING: The names of some imported commands from the module 'tmp_gm3bbfce.f13' include unapproved verbs that might
- make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the
- Verbose parameter. For a list of approved verbs, type Get-Verb.
- ModuleType Version Name ExportedCommands
- ---------- ------- ---- ----------------
- Script 1.0 tmp_gm3bbfce.f13 {Add-AvailabilityAddressSpace, Add-DistributionGroupMember...
- PS C:\Windows\system32> Get-MobileDevice -Mailbox "ilage" | Format-List -Property Devideld, DeviceAcessState
- PS C:\Windows\system32> Get-MobileDevice -Mailbox "ilage" | Format-List -Property Deviceid, DeviceAcessState
- DeviceId : SEC14C90F4E321B0
- DeviceId : SEC1D867D16B41FE
- DeviceId : SEC15D186014E5E7
- PS C:\Windows\system32> Get-MobileDevice -Mailbox "ilage" | Format-List -Property Deviceid,DeviceAcessState
- DeviceId : SEC14C90F4E321B0
- DeviceId : SEC1D867D16B41FE
- DeviceId : SEC15D186014E5E7
- PS C:\Windows\system32> Get-MobileDevice -Mailbox "ilage" | Format-List -Property Deviceid, DeviceAcessState
- DeviceId : SEC14C90F4E321B0
- DeviceId : SEC1D867D16B41FE
- DeviceId : SEC15D186014E5E7
- PS C:\Windows\system32> Set-CASMailbox -Identity: "ilage" -ActiveSyncAllowedDeviceIDs: "SEC14C90F4E321B0","SEC1D867D16B4
- 1FE","SEC15D186014E5E7"
- PS C:\Windows\system32> Get-MobileDevice -Mailbox "ilage" | Format-List -Property Deviceid, DeviceAcessState
- DeviceId : SEC14C90F4E321B0
- DeviceId : SEC1D867D16B41FE
- DeviceId : SEC15D186014E5E7
- PS C:\Windows\system32> Get-MobileDevice -Mailbox "ilage" | Format-List -Property Deviceid,DeviceAcessState
- DeviceId : SEC14C90F4E321B0
- DeviceId : SEC1D867D16B41FE
- DeviceId : SEC15D186014E5E7
- PS C:\Windows\system32>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement