You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `ConvertTo-JsonForPSWS` cmdlet converts any object to a string in JavaScript Object Notation (JSON) format for PowerShell Web Services. The properties are converted to field names, the field values are converted to property values, and the methods are removed.
21
+
22
+
You can then use the `ConvertTo-JsonForPSWS` cmdlet to convert a JSON-formatted string to a JSON object, which is easily managed in Windows PowerShell.
23
+
24
+
Many web sites use JSON instead of XML to serialize data for communication between servers and web-based apps.
21
25
22
26
## EXAMPLES
23
27
24
28
### -------------------------- Example 1 --------------------------
This command shows the effect of using the Compress parameter of `ConvertTo-JsonForPSWS`. The compression affects only the appearance of the string, not its validity.
53
+
54
+
### -------------------------- Example 3 --------------------------
"DateTime": "domingo, 27 de mayo de 2018 19:01:15",
63
+
"Date": "\/Date(1527390000000)\/",
64
+
"Day": 27,
65
+
"DayOfWeek": {
66
+
"value": 0,
67
+
"Value": "Sunday"
68
+
},
69
+
"DayOfYear": 147,
70
+
"Hour": 19,
71
+
"Kind": {
72
+
"value": 2,
73
+
"Value": "Local"
74
+
},
75
+
"Millisecond": 225,
76
+
"Minute": 1,
77
+
"Month": 5,
78
+
"Second": 15,
79
+
"Ticks": 636630444752251610,
80
+
"TimeOfDay": {
81
+
"Hours": 19,
82
+
"Minutes": 1,
83
+
"Seconds": 15,
84
+
"Ticks": 684752251610,
85
+
"Days": 0,
86
+
"Milliseconds": 225,
87
+
"TotalDays": 0.79253732825231482,
88
+
"TotalHours": 19.020895878055555,
89
+
"TotalMilliseconds": 68475225.161,
90
+
"TotalMinutes": 1141.2537526833335,
91
+
"TotalSeconds": 68475.225161
92
+
},
93
+
"Year": 2018
94
+
}
27
95
```
28
96
29
-
{{ Add example description here }}
97
+
This command shows how to use the `ConvertTo-JsonForPSWS` cmdlet to convert an object to a JSON string for PowerShell Web Services.
98
+
99
+
It uses the `ConvertTo-JsonForPSWS` cmdlet to convert a System.DateTime object from the Get-Date cmdlet to a JSON-formatted string for PowerShell Web Services. The command uses the Select-Object cmdlet to get all () of the properties of the **DateTime* object. The output shows the JSON string that `ConvertTo-JsonForPSWS` returned.
100
+
101
+
### -------------------------- Example 4 --------------------------
This command uses the `ConvertTo-JsonForPSWS` cmdlet to convert a Windows PowerShell Help file from XML format to JSON format for PowerShell Web Services.
30
107
31
108
## PARAMETERS
32
109
33
110
### -Compress
34
-
{{Fill Compress Description}}
111
+
Omits white space and indented formatting in the output string.
Specifies the objects to convert to JSON format. Enter a variable that contains the objects, or type a command or expression that gets the objects. You can also pipe an object to `ConvertTo-JsonForPSWS`.
144
+
145
+
The InputObject parameter is required, but its value can be null ($Null) or an empty string. When the input object is $Null, `ConvertTo-JsonForPSWS` does not generate any output. When the input object is an empty string, `ConvertTo-JsonForPSWS` returns an empty string.
Indicates that this cmdlet runs as a background job.
162
+
163
+
When you specify the AsJob parameter, the command immediately returns an object that represents the background job. You can continue to work in the session while the job finishes. The job is created on the local computer and the results from the Skype for Business Online session are automatically returned to the local computer. To get the job results, use the Receive-Job cmdlet.
164
+
165
+
For more information about Windows PowerShell background jobs, see [about_Jobs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_jobs?view=powershell-6) and [about_Remote_Jobs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_remote_jobs?view=powershell-6).
83
166
84
167
```yaml
85
168
Type: SwitchParameter
@@ -100,14 +183,15 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
Copy file name to clipboardExpand all lines: skype/skype-ps/skype/Get-CsBusyOptions.md
+19-8Lines changed: 19 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ schema: 2.0.0
8
8
# Get-CsBusyOptions
9
9
10
10
## SYNOPSIS
11
-
{{Fill in the Synopsis}}
11
+
Returns the settings for processing of incoming calls for users who are already engaged in another communication stream. This cmdlet was introduced in Skype for Business Server 2015 June 2016 Cumulative Update.
This example returns the Busy Options setting for "[email protected]".
31
35
32
36
33
37
## PARAMETERS
34
38
35
39
### -Identity
36
-
{{Fill Identity Description}}
40
+
Indicates the Identity of the user account to be modified. User Identities can be specified using one of four formats: 1) the user's SIP address; 2) the user's user principal name (UPN); 3) the user's domain name and logon name, in the form domain\logon (for example, litwareinc\kenmyer) and 4) the user's Active Directory display name (for example, Ken Myer). User Identities can also be referenced by using the user's Active Directory distinguished name.
41
+
42
+
You can use the asterisk (*) wildcard character when using the display name as the user Identity. For example, the Identity "*Smith" returns all the users who have a display name that ends with the string value "Smith".
Copy file name to clipboardExpand all lines: skype/skype-ps/skype/Get-CsPushNotificationConfiguration.md
+7-19Lines changed: 7 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -43,31 +43,15 @@ For example, users can receive notice for events such as these:
43
43
Without the push notification service users would receive these notices only when Skype for Business was in the foreground and serving as the active application.
44
44
45
45
Administrators have the ability to enable or disable push notifications for iPhone users and/or Windows Phone users.
46
-
(By default, push notifications are disabled for both iPhone users and Windows Phone users.) Administrators can enable or disable push notifications at the global scope by using the Set-CsPushNotificationConfiguration cmdlet.
47
-
They can also create custom push notification settings at the site scope by using the New-CsPushNotificationConfiguration cmdlet.
46
+
(By default, push notifications are disabled for both iPhone users and Windows Phone users.) Administrators can enable or disable push notifications at the global scope by using the `Set-CsPushNotificationConfiguration` cmdlet.
47
+
They can also create custom push notification settings at the site scope by using the `New-CsPushNotificationConfiguration` cmdlet.
48
48
49
-
The Get-CsPushNotificationConfiguration cmdlet provides a way for you to return information about the push notification configuration settings currently in use in your organization.
49
+
The `Get-CsPushNotificationConfiguration` cmdlet provides a way for you to return information about the push notification configuration settings currently in use in your organization.
50
50
51
51
52
52
53
53
## EXAMPLES
54
54
55
-
### -------------------------- EXAMPLE 1 -------------------------- (Lync Server 2013)
56
-
```
57
-
58
-
```
59
-
60
-
Example 1 returns information about all the push notification settings configured for use in your organization.
61
-
62
-
Get-CsPushNotificationConfiguration
63
-
64
-
### Example 1 (Skype for Business Online)
65
-
```
66
-
PS C:\> {{ Add example code here }}
67
-
```
68
-
69
-
{{ Add example description here }}
70
-
71
55
### -------------------------- Example 1 --------------------------
72
56
```
73
57
Get-CsPushNotificationConfiguration
@@ -273,4 +257,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
This cmdlet returns the Skype for Business Server version for each component installed on the server. It replaces the previous methods (Windows Registry and WMI Classes).
21
+
You should have installed November 2015 Cumulative Update (6.0.9319.102) for Skype for Business Server 2015 or later.
21
22
22
23
## EXAMPLES
23
24
24
25
### -------------------------- Example 1 --------------------------
25
26
```
26
-
{{ Add example code here }}
27
+
Get-CsServerPatchVersion
27
28
```
28
29
29
-
{{ Add example description here }}
30
+
This example returns the version for each component installed on the Skype for Business Server.
30
31
31
32
32
33
## PARAMETERS
33
34
34
35
### -Report
35
-
{{Fill Report Description}}
36
+
Generates a log file with the result of the operation. You should specify the file name in html format.
0 commit comments