Jump to content

Creating a blank SpeedDial with Powershell


mati
 Share


Go to solution Solved by mati,

Recommended Posts

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


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.

 

Link to comment
Share on other sites


  • Solution

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


  • Most Valued User

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


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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.