mati Posted May 10 #1 Share Posted May 10 Hi, I am using a PS-script to create speedDial keys for all users. After all users of a certain group have been added to the SpeedDials in alphabetical order, there are still a handful of fixed external numbers that are added to everyone at the end. These should be separated by an empty SpeedDial button. In SwyxIt, I can edit a name button and simply insert a blank space so that it does not say “Namenstaste XX”. However, when I insert @{“DialNumber” = “”; “Label” = " "} in the ps-script, the space is not taken over. Variants with Unicode or HTML do not work at this point either. Does anyone have a tip for me on how I can pass an empty label name here? My used code: $FixedSpeedDials = @( @{"DialNumber" = ""; "Label" = " "}, [...] ) [...] foreach ($FixedSpeedDial in $FixedSpeedDials) { $update = Get-IpPbxSpeedDialKey -UserName $UserName -SpeedDialKeyId $counter $update.DialNumber = $FixedSpeedDial.DialNumber $update.Label = $FixedSpeedDial.Label update-IpPbxSpeedDialKey -UserName $UserName -SpeedDialKey $update } Thanks! Link to comment Share on other sites More sharing options...
Tom Wellige Posted May 10 #2 Share Posted May 10 This is not a powershell or character code problem, but a SwyxIt! "feature". Empty speeddial labels (empty, or with blank characeter) will trigger SwyxIt! to display "Speedial XX". I always navigate around that by setting a "." as label. Not the nicest solution, but it works. 1 Link to comment Share on other sites More sharing options...
Solution mati Posted May 12 Author Solution #3 Share Posted May 12 Thank you Tom, I almost expected it. But I still had a little hope, since a manually entered space is accepted and generates a blank SpeedDial key field. Link to comment Share on other sites More sharing options...
Most Valued User Markus Wallner Posted May 13 Most Valued User #4 Share Posted May 13 Probably does not help in this case, but for SwyxIt! you can disable the default labeling, so that a unconfigured speed dial is blank: [HKEY_CURRENT_USER\Software\Swyx\SwyxIt!\CurrentVersion\Options] "ShowSpeedDialDefaultLabel"=dword:00000000 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now