Managing Persistent Chat Rooms in Skype for Business 2015

Pshell reference https://technet.microsoft.com/en-gb/library/hh847759.aspx

way to be able to run the Lync 2010 client on a OCS 2007 R2 environment – simply by bypassing a version check. To bypass this check, you have to create a new registry entry:
Key: HKEY_CURRENT_USER\Software\Policies\Microsoft\Communicator
Name:  DisableServerCheck
Type: DWORD
Value: 1 (00000001)

List AD user details :
Get-CsUser -Identity “sat*”

#Rename Room
Set-CsPersistentChatRoom -Identity “SatroomAA” -name “SatroomA”
Get-CsPersistentChatRoom -Identity “DevSFB2015PCpoolA.devsfb2015.local\Bangalore”

#Adduser to room :
Set-CsPersistentChatRoom -Identity “SatRoomAA” -Members @{Add=”sip:hunjans@devlync2013.local”}

#Add Manager to a room
Set-CsPersistentChatRoom -Identity “F_CG_Sales_Team” -Managers @{Add=”sip:satpal.hunjan@fcg.im”}

#Create Auditorium
New-CsPersistentChatRoom -Name “SatRoomAA” -Category “DevChats2” -Type “Auditorium”
Set-CsPersistentChatRoom -Identity “SatRoomAA” -Type “Auditorium”
Set-CsPersistentChatRoom -Identity “SatRoomAA” -Type “Normal”

Set-CsPersistentChatRoom -Identity Datagrid -Members @{Add=”sip:satpal.hunjan@fcg.im”}
Set-CsPersistentChatRoom -Identity testCat -Managers @{Add=”sip:hunjans@devlync2013.local”} Set-CsPersistentChatRoom -Identity testCat -Presenters @{Add=”sip:hunjans@devlync2013.local”}
Set-CsPersistentChatRoom -Identity Contoso_All -Presenters @{Add=”sip:srv_trendbot@fcg.im”}
Set-CsPersistentChatRoom -Identity Contoso_All -Presenters @{Remove=”sip:srv_trendbot@fcg.im”}

From <http://technet.microsoft.com/en-us/library/jj205292.aspx>

#list channels in category
Get-CsPersistentChatRoom | Where-Object {$_.Category -eq “ML-Teams”}

#list parts
Get-CsPersistentChatRoom | Where-Object {$_.Category -eq “ML-Teams”} | Select-Object Name

#multicondition
Get-CsPersistentChatRoom | Where-Object {$_.Category -eq “ML-Teams” -and $_.Name -eq “newChannel”} | Select-Object Name
Get-CsPersistentChatRoom | Where-Object {$_.Category -like “ML*” -and $_.Name -like “F_CG_C_*”} | Select-Object Category,Name

#add as manager to a whole category
Get-CsPersistentChatRoom | Where-Object {$_.Category -eq “ML-Teams” -and $_.Members -contains “sip:satpal.hunjan@fcg,im”} | ForEach-Object {Set-CsPersistentChatRoom -Category “ML-Teams” -Identity  $_.Name -Managers @{Add=”sip:satpal.hunjan@fcg,im”}}

Get-CsPersistentChatRoom | Where-Object {$_.Category -eq “ML-Teams”}  | ForEach-Object {Set-CsPersistentChatRoom -Category “ML-Teams” -Identity  $_.Name -Managers @{Add=”CN=PchatManagers,OU=Accounts,DC=devlync2013,DC=local”} -AsObject}

2015 multipool
Get-CsPersistentChatRoom -PersistentChatPoolFqdn “Devsfb2015PCpoolA.devsfb2015.local” |Where {$_.Category -eq “PCPoolA TestRooms”} | Set-CsPersistentChatRoom -Members @{Add=”OU=Service Accounts,DC=devsfb2015,DC=local”}

Remove member from channels
Get-CsPersistentChatRoom -PersistentChatPoolFqdn pl2013pca.fcg.im | Where-Object {$_.Members -like “*Forrest*”} | ForEach-Object {Set-CsPersistentChatRoom -Identity $_.Name -Members @{Remove=”sip:justin.forrest@mindlinksoft.com”}}

Disable-CsUser -Identity “CN=Justin Forrest,OU=FCG Contacts,OU=Lync Contacts,DC=fcg,DC=im”

Add Members

Get-CsPersistentChatRoom -PersistentChatPoolFqdn “Devsfb2015PCpoolA.devsfb2015.local” |Where {$_.Category -eq “PCPoolA TestRooms”} | Set-CsPersistentChatRoom -Members @{Add=”OU=Service Accounts,DC=devsfb2015,DC=local”}

List all rooms with addin
Get-CsPersistentChatRoom | Where-Object {$_.Addin -ne $null} | Select-Object Name,Category,Addin | ft

# Create a Persistent Chat Category
New-CsPersistentChatCategory –Name <String>

# Set the allowed members of the Category (add AllowedMembers  first to avoid scope error)
Set-CsPersistentChatCategory -Identity “ML_teams” -Allowedmembers @{Add=”CN=ChannelAdmins,OU=Lync Groups,OU=Groups,DC=fcg,DC=im”}  -AsObject
Set-CsPersistentChatCategory -Identity “ML_teams”  -Creators @{Add=”CN=ChannelAdmins,OU=Lync -Groups,OU=Groups,DC=fcg,DC=im”}

Set-CsPersistentChatCategory -Identity “devlync2013pcpoola.devlync2013.local\ML-Teams” -Creators  @{Add=”CN=PchatManagers,OU=Accounts,DC=devlync2013,DC=local”} -AsObject

# Set users who are allowed to create Rooms in the Category
Set-CsPersistentChatCategory -Identity <Identity> -Creators sip:username@contoso.com

# Indicate if users are notified when invited to a Room in the Category
Set-CsPersistentChatCategory –Identity <Identity> -Invitations <Boolean>

# Create a Room in a Category
New-CsPersistentChatRoom –Name newChannel -Category ML-teams -Description testroom

# Set the Managers of the Room

# Set the Members
Set-CsPersistentChatRoom -Identity <Identity> -Members <Members>

Enable-CsUser -Identity “srv_Emailconnector1@devsfb2015.local” -RegistrarPool “DevSFB2015PoolA.devsfb2015.local” -SipAddress “sip:srv_emailconnector1@devsfb2015.local”

# Create a new AddinSet-
New-CsPersistentChatAddin -Name <String> -PersistentChatPoolFqdn <String>-Url <String>

# Associate the Addin with a Room
Set-CsPersistentChatRoom -Identity <String> -Addin <String>

# Create a new Persistent Chat Endpoint
New-CsPersistentChatEndpoint -SipAddress <String> -PersistentChatPoolFqdn <String>

#list all channels with member
Get-CsPersistentChatRoom -PersistentChatPoolFqdn devlync2013pcpoola.devlync2013.local | Where-Object {$_.Members
-like “*Accounts*”} | Select-Object Name

#List all Disables users (set screen buffer width to 500)
Get-CsUser -Filter {Enabled -eq $true}|ft -Property Identity, DisplayName, SamAccountName, SipAddress -Autosize

#Add photo URL ability to Lync2013
$pe=New-CsClientPolicyEntry -Name EnablePresencePhotoOptions -Value True
$po=Get-CsClientPolicy -Identity Site:NorthAmerica
$po.PolicyEntry.Add($pe)
Set-CsClientPolicy -Instance $po
pers
Note that the example above modifies Site policy “NorthAmerica”. We cannot update all policies in “bulk” – must be done one at the time. To update the Global Client Policy:

$pe=New-CsClientPolicyEntry -Name EnablePresencePhotoOptions -Value True
$po=Get-CsClientPolicy -Identity Global
$po.PolicyEntry.Add($pe)
Set-CsClientPolicy -Instance $po

From <http://www.lynclog.com/>

Remoting powershell
$session = New-PSSession -ConnectionUri https://devlync2013fea.devlync2013.local/OcsPowershell -Credential (Get-Credential)
Import-PSSession -Session $session

$session = New-PSSession -ConnectionUri https://devsfb2015fea.devsfb2015.local/OcsPowershell -Credential (Get-Credential)
Import-PSSession -Session $session

$username = “Devsfb2015\Administrator”
$password = convertto-securestring -String “Password1” -AsPlainText -Force
$cred = new-object -typename System.Management.Automation.PSCredential -argumentlist $username, $password
$session = New-PSSession -ConnectionUri https://devsfb2015fea.devsfb2015.local/OcsPowershell -Credential $cred
Import-PSSession -Session $session

(run powershell as admin and set-executionpolicy as unrestricted)

http://www.ehloworld.com/269

Set-CsPersistentChatRoom -Identity “Lyncconf_Accounting” -name “Demo_Accounting”
Set-CsPersistentChatRoom -Identity “Lyncconf_Company” -name “Demo_Company”
Set-CsPersistentChatRoom -Identity “Lyncconf_Management” -name “Demo_Management”
Set-CsPersistentChatRoom -Identity “Lyncconf_Marketing” -name “Demo_Marketing”
Set-CsPersistentChatRoom -Identity “Lyncconf_ProjectA” -name “Demo_ProjectA”
Set-CsPersistentChatRoom -Identity “Lyncconf_ProjectB” -name “Demo_ProjectB”
Set-CsPersistentChatRoom -Identity “Lyncconf_ProjectC” -name “Demo_ProjectC”
Set-CsPersistentChatRoom -Identity “Lyncconf_Sales” -name “Demo_Sales”
Set-CsPersistentChatRoom -Identity “Lyncconf_Support” -name “Demo_Support”
Set-CsPersistentChatRoom -Identity “Lync_Conference_2014” -name “Demo_Conference_2014”

http://windowsitpro.com/windows-server/top-10-windows-firewall-netsh-commands

Get-WmiObject -query ‘select * from win32_product’ | where {$_.name -like “Microsoft Lync Server*”} |ft Name, Version -AutoSize

Get-WmiObject -query ‘select * from win32_product’ | where {$_.name -like “Skype for Business*”} |ft Name, Version -AutoSize

From <http://blogs.technet.com/b/premal/archive/2011/06/07/powershell-command-to-find-the-version-of-lync-server-installed-components.aspx>

Set-CsTrustedApplication -Identity DevLync2010appa.devlync2010.local/urn:application:socialconnector -Port 5061  From

In lync server mgmt shell – to get total of users in pool
$AllUsers = Get-CsUser | Where-Object {$_.RegistrarPool -like “devlync2013.delvync2013.local”}
$AllUsers.Count

Get-CsServerPatchVersion | ft -AutoSize

From <https://blogs.technet.microsoft.com/uclobby/2015/12/08/skype-for-business-server-component-version-using-get-csserverpatchversion/>

Comments

comments

Privacy Preference Center

Close your account?

Your account will be closed and all data will be permanently deleted and cannot be recovered. Are you sure?