Advertisement
Guest User

Untitled

a guest
Nov 24th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. Windows PowerShell
  2. Copyright (C) 2016 Microsoft Corporation. All rights reserved.
  3.  
  4. PS C:\Windows\system32> $UserCredential = Get-Credential
  5.  
  6. cmdlet Get-Credential at command pipeline position 1
  7. Supply values for the following parameters:
  8. Credential
  9. PS C:\Windows\system32> $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.of
  10. fice365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
  11. PS C:\Windows\system32> Import-PSSession $Session
  12. WARNING: The names of some imported commands from the module 'tmp_gm3bbfce.f13' include unapproved verbs that might
  13. make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the
  14. Verbose parameter. For a list of approved verbs, type Get-Verb.
  15.  
  16. ModuleType Version Name ExportedCommands
  17. ---------- ------- ---- ----------------
  18. Script 1.0 tmp_gm3bbfce.f13 {Add-AvailabilityAddressSpace, Add-DistributionGroupMember...
  19.  
  20.  
  21. PS C:\Windows\system32> Get-MobileDevice -Mailbox "ilage" | Format-List -Property Devideld, DeviceAcessState
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29. PS C:\Windows\system32> Get-MobileDevice -Mailbox "ilage" | Format-List -Property Deviceid, DeviceAcessState
  30.  
  31.  
  32. DeviceId : SEC14C90F4E321B0
  33.  
  34. DeviceId : SEC1D867D16B41FE
  35.  
  36. DeviceId : SEC15D186014E5E7
  37.  
  38.  
  39.  
  40. PS C:\Windows\system32> Get-MobileDevice -Mailbox "ilage" | Format-List -Property Deviceid,DeviceAcessState
  41.  
  42.  
  43. DeviceId : SEC14C90F4E321B0
  44.  
  45. DeviceId : SEC1D867D16B41FE
  46.  
  47. DeviceId : SEC15D186014E5E7
  48.  
  49.  
  50.  
  51. PS C:\Windows\system32> Get-MobileDevice -Mailbox "ilage" | Format-List -Property Deviceid, DeviceAcessState
  52.  
  53.  
  54. DeviceId : SEC14C90F4E321B0
  55.  
  56. DeviceId : SEC1D867D16B41FE
  57.  
  58. DeviceId : SEC15D186014E5E7
  59.  
  60.  
  61.  
  62. PS C:\Windows\system32> Set-CASMailbox -Identity: "ilage" -ActiveSyncAllowedDeviceIDs: "SEC14C90F4E321B0","SEC1D867D16B4
  63. 1FE","SEC15D186014E5E7"
  64. PS C:\Windows\system32> Get-MobileDevice -Mailbox "ilage" | Format-List -Property Deviceid, DeviceAcessState
  65.  
  66.  
  67. DeviceId : SEC14C90F4E321B0
  68.  
  69. DeviceId : SEC1D867D16B41FE
  70.  
  71. DeviceId : SEC15D186014E5E7
  72.  
  73.  
  74.  
  75. PS C:\Windows\system32> Get-MobileDevice -Mailbox "ilage" | Format-List -Property Deviceid,DeviceAcessState
  76.  
  77.  
  78. DeviceId : SEC14C90F4E321B0
  79.  
  80. DeviceId : SEC1D867D16B41FE
  81.  
  82. DeviceId : SEC15D186014E5E7
  83.  
  84.  
  85.  
  86. PS C:\Windows\system32>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement