none
Getting Windows Parental Controls Class Instances and Settings RRS feed

  • Question

  • Hello,

    In Windows 8.1 Enterprise MDM,  Sending following SyncML to get parental controls settings.

    <SyncML xmlns="SYNCML:SYNCML1.2"><SyncHdr><VerDTD>1.2</VerDTD><VerProto>DM/1.2</VerProto><SessionID>1</SessionID><MsgID>2</MsgID><Target><LocURI>460ba6d8-0fe3-467d-b0bb-aa434fab8a2f</LocURI></Target><Source><LocURI>http://localhost:8000/handler.ashx</LocURI></Source></SyncHdr><SyncBody><Status><CmdID>1</CmdID><MsgRef>2</MsgRef><CmdRef>0</CmdRef><Cmd>SyncHdr</Cmd><Data>200</Data></Status><Status><CmdID>2</CmdID><MsgRef>2</MsgRef><CmdRef>6</CmdRef><Cmd>Results</Cmd><Data>200</Data></Status><Status><CmdID>3</CmdID><MsgRef>2</MsgRef><CmdRef>8</CmdRef><Cmd>Results</Cmd><Data>200</Data></Status><Status><CmdID>4</CmdID><MsgRef>2</MsgRef><CmdRef>10</CmdRef><Cmd>Results</Cmd><Data>200</Data></Status><Status><CmdID>5</CmdID><MsgRef>2</MsgRef><CmdRef>12</CmdRef><Cmd>Results</Cmd><Data>200</Data></Status><Get><CmdID>6</CmdID><Item><Target><LocURI>./cimv2/Applications/WindowsParentalControls/WpcAppOverride</LocURI></Target></Item></Get><Get><CmdID>7</CmdID><Item><Target><LocURI>./cimv2/Applications/WindowsParentalControls/WpcClamper</LocURI></Target></Item></Get><Get><CmdID>8</CmdID><Item><Target><LocURI>./cimv2/Applications/WindowsParentalControls/WpcCustomEvent</LocURI></Target></Item></Get><Get><CmdID>9</CmdID><Item><Target><LocURI>./cimv2/Applications/WindowsParentalControls/WpcExtension</LocURI></Target></Item></Get><Get><CmdID>10</CmdID><Item><Target><LocURI>./cimv2/Applications/WindowsParentalControls/WpcGameOverride</LocURI></Target></Item></Get><Get><CmdID>11</CmdID><Item><Target><LocURI>./cimv2/Applications/WindowsParentalControls/WpcGamesSettings</LocURI></Target></Item></Get><Get><CmdID>12</CmdID><Item><Target><LocURI>./cimv2/Applications/WindowsParentalControls/WpcRating</LocURI></Target></Item></Get><Get><CmdID>13</CmdID><Item><Target><LocURI>./cimv2/Applications/WindowsParentalControls/WpcRatingsDescriptor</LocURI></Target></Item></Get><Get><CmdID>14</CmdID><Item><Target><LocURI>./cimv2/Applications/WindowsParentalControls/WpcRatingsSystem</LocURI></Target></Item></Get><Get><CmdID>15</CmdID><Item><Target><LocURI>./cimv2/Applications/WindowsParentalControls/WpcSystemSettings</LocURI></Target></Item></Get><Get><CmdID>16</CmdID><Item><Target><LocURI>./cimv2/Applications/WindowsParentalControls/WpcURLOverride</LocURI></Target></Item></Get><Get><CmdID>17</CmdID><Item><Target><LocURI>./cimv2/Applications/WindowsParentalControls/WpcUserSettings</LocURI></Target></Item></Get><Get><CmdID>18</CmdID><Item><Target><LocURI>./cimv2/Applications/WindowsParentalControls/WpcWebSettings</LocURI></Target></Item></Get><Get><CmdID>19</CmdID><Item><Target><LocURI>./cimv2/Applications/WindowsParentalControls/WpcWebSync</LocURI></Target></Item></Get><Get><CmdID>20</CmdID><Item><Target><LocURI>./cimv2/Applications/WindowsParentalControls</LocURI></Target></Item></Get><Final/></SyncBody></SyncML>

     But in return, I am getting status 406 instead of results, 

    <SyncML xmlns="SYNCML:SYNCML1.2"><SyncHdr><VerDTD>1.2</VerDTD><VerProto>DM/1.2</VerProto><SessionID>1</SessionID><MsgID>3</MsgID><Target><LocURI>http://localhost:8000/handler.ashx</LocURI></Target><Source><LocURI>460ba6d8-0fe3-467d-b0bb-aa434fab8a2f</LocURI></Source></SyncHdr><SyncBody><Status><CmdID>1</CmdID><MsgRef>3</MsgRef><CmdRef>0</CmdRef><Cmd>SyncHdr</Cmd><Data>200</Data></Status><Status><CmdID>2</CmdID><MsgRef>2</MsgRef><CmdRef>1</CmdRef><Cmd>Status</Cmd><Data>200</Data></Status><Status><CmdID>3</CmdID><MsgRef>2</MsgRef><CmdRef>2</CmdRef><Cmd>Status</Cmd><Data>200</Data></Status><Status><CmdID>4</CmdID><MsgRef>2</MsgRef><CmdRef>3</CmdRef><Cmd>Status</Cmd><Data>200</Data></Status><Status><CmdID>5</CmdID><MsgRef>2</MsgRef><CmdRef>4</CmdRef><Cmd>Status</Cmd><Data>200</Data></Status><Status><CmdID>6</CmdID><MsgRef>2</MsgRef><CmdRef>5</CmdRef><Cmd>Status</Cmd><Data>200</Data></Status><Status><CmdID>7</CmdID><MsgRef>2</MsgRef><CmdRef>6</CmdRef><Cmd>Get</Cmd><Data>406</Data></Status><Status><CmdID>8</CmdID><MsgRef>2</MsgRef><CmdRef>7</CmdRef><Cmd>Get</Cmd><Data>406</Data></Status><Status><CmdID>9</CmdID><MsgRef>2</MsgRef><CmdRef>8</CmdRef><Cmd>Get</Cmd><Data>406</Data></Status><Status><CmdID>10</CmdID><MsgRef>2</MsgRef><CmdRef>9</CmdRef><Cmd>Get</Cmd><Data>406</Data></Status><Status><CmdID>11</CmdID><MsgRef>2</MsgRef><CmdRef>10</CmdRef><Cmd>Get</Cmd><Data>406</Data></Status><Status><CmdID>12</CmdID><MsgRef>2</MsgRef><CmdRef>11</CmdRef><Cmd>Get</Cmd><Data>406</Data></Status><Status><CmdID>13</CmdID><MsgRef>2</MsgRef><CmdRef>12</CmdRef><Cmd>Get</Cmd><Data>406</Data></Status><Status><CmdID>14</CmdID><MsgRef>2</MsgRef><CmdRef>13</CmdRef><Cmd>Get</Cmd><Data>406</Data></Status><Status><CmdID>15</CmdID><MsgRef>2</MsgRef><CmdRef>14</CmdRef><Cmd>Get</Cmd><Data>406</Data></Status><Status><CmdID>16</CmdID><MsgRef>2</MsgRef><CmdRef>15</CmdRef><Cmd>Get</Cmd><Data>406</Data></Status><Status><CmdID>17</CmdID><MsgRef>2</MsgRef><CmdRef>16</CmdRef><Cmd>Get</Cmd><Data>406</Data></Status><Status><CmdID>18</CmdID><MsgRef>2</MsgRef><CmdRef>17</CmdRef><Cmd>Get</Cmd><Data>406</Data></Status><Status><CmdID>19</CmdID><MsgRef>2</MsgRef><CmdRef>18</CmdRef><Cmd>Get</Cmd><Data>406</Data></Status><Status><CmdID>20</CmdID><MsgRef>2</MsgRef><CmdRef>19</CmdRef><Cmd>Get</Cmd><Data>406</Data></Status><Status><CmdID>21</CmdID><MsgRef>2</MsgRef><CmdRef>20</CmdRef><Cmd>Get</Cmd><Data>406</Data></Status><Final/></SyncBody></SyncML>

    How to retrieve correct results ?

    And how to set values in parental controls ? Can you provide any sample ?

    Thank you.

    Monday, July 28, 2014 7:02 AM

Answers

  • Try removing the "/Applications/WindowsParentalControls" portion of the LocURI, ex:

    <SyncML xmlns="SYNCML:SYNCML1.2"><SyncHdr><VerDTD>1.2</VerDTD><VerProto>DM/1.2</VerProto><SessionID>1</SessionID><MsgID>2</MsgID><Target><LocURI>460ba6d8-0fe3-467d-b0bb-aa434fab8a2f</LocURI></Target><Source><LocURI>http://localhost:8000/handler.ashx</LocURI></Source></SyncHdr><SyncBody><Status><CmdID>1</CmdID><MsgRef>2</MsgRef><CmdRef>0</CmdRef><Cmd>SyncHdr</Cmd><Data>200</Data></Status><Status><CmdID>2</CmdID><MsgRef>2</MsgRef><CmdRef>6</CmdRef><Cmd>Results</Cmd><Data>200</Data></Status><Status><CmdID>3</CmdID><MsgRef>2</MsgRef><CmdRef>8</CmdRef><Cmd>Results</Cmd><Data>200</Data></Status><Status><CmdID>4</CmdID><MsgRef>2</MsgRef><CmdRef>10</CmdRef><Cmd>Results</Cmd><Data>200</Data></Status><Status><CmdID>5</CmdID><MsgRef>2</MsgRef><CmdRef>12</CmdRef><Cmd>Results</Cmd><Data>200</Data></Status><Get><CmdID>6</CmdID><Item><Target><LocURI>./cimv2/WpcAppOverride</LocURI></Target></Item></Get><Get><CmdID>7</CmdID><Item><Target><LocURI>./cimv2/WpcClamper</LocURI></Target></Item></Get><Get><CmdID>8</CmdID><Item><Target><LocURI>./cimv2/WpcCustomEvent</LocURI></Target></Item></Get><Get><CmdID>9</CmdID><Item><Target><LocURI>./cimv2/WpcExtension</LocURI></Target></Item></Get><Get><CmdID>10</CmdID><Item><Target><LocURI>./cimv2/WpcGameOverride</LocURI></Target></Item></Get><Get><CmdID>11</CmdID><Item><Target><LocURI>./cimv2/WpcGamesSettings</LocURI></Target></Item></Get><Get><CmdID>12</CmdID><Item><Target><LocURI>./cimv2/WpcRating</LocURI></Target></Item></Get><Get><CmdID>13</CmdID><Item><Target><LocURI>./cimv2/WpcRatingsDescriptor</LocURI></Target></Item></Get><Get><CmdID>14</CmdID><Item><Target><LocURI>./cimv2/WpcRatingsSystem</LocURI></Target></Item></Get><Get><CmdID>15</CmdID><Item><Target><LocURI>./cimv2/WpcSystemSettings</LocURI></Target></Item></Get><Get><CmdID>16</CmdID><Item><Target><LocURI>./cimv2/WpcURLOverride</LocURI></Target></Item></Get><Get><CmdID>17</CmdID><Item><Target><LocURI>./cimv2/WpcUserSettings</LocURI></Target></Item></Get><Get><CmdID>18</CmdID><Item><Target><LocURI>./cimv2/WpcWebSettings</LocURI></Target></Item></Get><Get><CmdID>19</CmdID><Item><Target><LocURI>./cimv2/WpcWebSync</LocURI></Target></Item></Get><Get><CmdID>20</CmdID><Item><Target><LocURI>./cimv2/Applications/WindowsParentalControls</LocURI></Target></Item></Get><Final/></SyncBody></SyncML>


    Eric Fleck, Windows Store and Windows Phone Developer Support. If you would like to provide feedback or suggestions for future improvements to the Windows Phone SDK please go to http://wpdev.uservoice.com/ where you can post your suggestions and/or cast your votes for existing suggestions.

    • Marked as answer by Biz_M Wednesday, July 30, 2014 8:07 AM
    Monday, July 28, 2014 5:44 PM
    Moderator

All replies

  • Try removing the "/Applications/WindowsParentalControls" portion of the LocURI, ex:

    <SyncML xmlns="SYNCML:SYNCML1.2"><SyncHdr><VerDTD>1.2</VerDTD><VerProto>DM/1.2</VerProto><SessionID>1</SessionID><MsgID>2</MsgID><Target><LocURI>460ba6d8-0fe3-467d-b0bb-aa434fab8a2f</LocURI></Target><Source><LocURI>http://localhost:8000/handler.ashx</LocURI></Source></SyncHdr><SyncBody><Status><CmdID>1</CmdID><MsgRef>2</MsgRef><CmdRef>0</CmdRef><Cmd>SyncHdr</Cmd><Data>200</Data></Status><Status><CmdID>2</CmdID><MsgRef>2</MsgRef><CmdRef>6</CmdRef><Cmd>Results</Cmd><Data>200</Data></Status><Status><CmdID>3</CmdID><MsgRef>2</MsgRef><CmdRef>8</CmdRef><Cmd>Results</Cmd><Data>200</Data></Status><Status><CmdID>4</CmdID><MsgRef>2</MsgRef><CmdRef>10</CmdRef><Cmd>Results</Cmd><Data>200</Data></Status><Status><CmdID>5</CmdID><MsgRef>2</MsgRef><CmdRef>12</CmdRef><Cmd>Results</Cmd><Data>200</Data></Status><Get><CmdID>6</CmdID><Item><Target><LocURI>./cimv2/WpcAppOverride</LocURI></Target></Item></Get><Get><CmdID>7</CmdID><Item><Target><LocURI>./cimv2/WpcClamper</LocURI></Target></Item></Get><Get><CmdID>8</CmdID><Item><Target><LocURI>./cimv2/WpcCustomEvent</LocURI></Target></Item></Get><Get><CmdID>9</CmdID><Item><Target><LocURI>./cimv2/WpcExtension</LocURI></Target></Item></Get><Get><CmdID>10</CmdID><Item><Target><LocURI>./cimv2/WpcGameOverride</LocURI></Target></Item></Get><Get><CmdID>11</CmdID><Item><Target><LocURI>./cimv2/WpcGamesSettings</LocURI></Target></Item></Get><Get><CmdID>12</CmdID><Item><Target><LocURI>./cimv2/WpcRating</LocURI></Target></Item></Get><Get><CmdID>13</CmdID><Item><Target><LocURI>./cimv2/WpcRatingsDescriptor</LocURI></Target></Item></Get><Get><CmdID>14</CmdID><Item><Target><LocURI>./cimv2/WpcRatingsSystem</LocURI></Target></Item></Get><Get><CmdID>15</CmdID><Item><Target><LocURI>./cimv2/WpcSystemSettings</LocURI></Target></Item></Get><Get><CmdID>16</CmdID><Item><Target><LocURI>./cimv2/WpcURLOverride</LocURI></Target></Item></Get><Get><CmdID>17</CmdID><Item><Target><LocURI>./cimv2/WpcUserSettings</LocURI></Target></Item></Get><Get><CmdID>18</CmdID><Item><Target><LocURI>./cimv2/WpcWebSettings</LocURI></Target></Item></Get><Get><CmdID>19</CmdID><Item><Target><LocURI>./cimv2/WpcWebSync</LocURI></Target></Item></Get><Get><CmdID>20</CmdID><Item><Target><LocURI>./cimv2/Applications/WindowsParentalControls</LocURI></Target></Item></Get><Final/></SyncBody></SyncML>


    Eric Fleck, Windows Store and Windows Phone Developer Support. If you would like to provide feedback or suggestions for future improvements to the Windows Phone SDK please go to http://wpdev.uservoice.com/ where you can post your suggestions and/or cast your votes for existing suggestions.

    • Marked as answer by Biz_M Wednesday, July 30, 2014 8:07 AM
    Monday, July 28, 2014 5:44 PM
    Moderator
  • Hey Eric,

    I tried as you suggested but result is still the same. Status 406.

    Tuesday, July 29, 2014 12:41 AM
  • Hi Eric,

    On other VM, it seems working. Thank you.

    Could you help me out in setting values (Replace/Exec) in parental controls ? Can you provide any sample ?

    Thank you.

    Wednesday, July 30, 2014 8:07 AM
  • I don't have any sample SyncML handy.

    The Replace command should be similar to a Get command but with a <Data></Data> element following the <Target></Target> element. The Data element in the Replace command should look similar to the Data element you receive in response to a Get command.

     Replace command is only valid for WpcSystemSettings, WpcUserSettings, WpcGameOverride, WpcGamesSettings, WpcWebSettings, and WpcURLOverride.

    The Execute (Exec) command is only available for WpcSystemSettings. Available Exec options are AddUser and RemoveUser.

    I could not find any examples of this either but I expect it should be something like:

    <Exec>
       <CmdID>{unique command id in message}</CmdID>
       <Item>
         <Target>
           <LocURI> 
    	./cimv2/WpcSystemSettings/WpcSystemSettings/Exec=AddUser
           </LocURI>
         </Target>
         <Data>strSID={SID for account to add}</Data>
       </Item> 
    </Exec> 
    


    Eric Fleck, Windows Store and Windows Phone Developer Support. If you would like to provide feedback or suggestions for future improvements to the Windows Phone SDK please go to http://wpdev.uservoice.com/ where you can post your suggestions and/or cast your votes for existing suggestions.

    Thursday, July 31, 2014 6:06 PM
    Moderator
  • Thank you Eric,

    Could you also check out this question ?

    WpcUserSettings AllowanceMinutes Setting

    It is about , how to replace data values where values are int[] or string[], for example setting AllowanceMinutes for 7 days.

    [Update] I tried Exec command as you mentioned ( and other various possibilities), even though I get response code 200. I don't see user added in WpcSystemSettings if observed using WMI Explorer.

    Thank you.

    • Edited by Biz_M Friday, August 1, 2014 8:08 AM Updated after trying suggestion
    Friday, August 1, 2014 12:29 AM