@בערל תודה רבה!
אבל נראה לי שהדברים האלו שמציעים שם הם יותר בכיוון של צורות שליטה נוספות שאין לי כרגע. אני פשוט לא הבנתי מילה מזה (ראיתי את זה לפני ששאלתי) לא הבנתי איך זה אמור לעבוד (כלומר - זה לא עובד, בדקתי, המחשב שלי לא מכיר את cim ולא את MDM או שפשוט לא עשיתי טוב. מה שעשיתי זה לייצר ממה שכתוב שם (יש שם שלוש דרכים) קובץ powershell ולהריץ אותו במצב powershell מסוים (Set-ExecutionPolicy ByPass) כמובן הרצה כמנהל. המחשב חושב כמה זמן ואז מחזיר כמה שגיאות כגון זו לדוגמא:
Invoke-CimMethod : The input object cannot be bound because it did not contain the information required to bind all
mandatory parameters: MethodName
At C:\Users\user\Desktop\updatemoderapps.ps1:1 char:116
+ ... MDM_EnterpriseModernAppManagement_AppManagement01" | Invoke-CimMethod
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (MDM_EnterpriseM...rnAppManage...):PSObject) [Invoke-CimMethod], Parame
terBindingException
+ FullyQualifiedErrorId : InputObjectMissingMandatory,Microsoft.Management.Infrastructure.CimCmdlets.InvokeCimMeth
odCommand
-MethodName : The term '-MethodName' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\user\Desktop\updatemoderapps.ps1:2 char:2
+ -MethodName UpdateScanMethod
+ ~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (-MethodName:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
זה פלט של powershell שלא תתבלבלו עם העיצוב שנודביבי עושה לזה. זה קורה כשאני מריץ את ה-powershell הזה:
Get-CimInstance -Namespace "Root\cimv2\mdm\dmmap" -ClassName "MDM_EnterpriseModernAppManagement_AppManagement01" | Invoke-CimMethod
-MethodName UpdateScanMethod
בקיצור לא מבין..)
תראו אני דקה מלהתקין את הוינדוס מחדש, גם ככה אני כבר הרבה זמן עם המערכת הזאת וצריך לשמן את המנוע. אני רק רוצה לדעת אם יש מישהו שמבין בזה או יש לו איזו ידיעה בנושא, זה יהיה ממש מדהים לעדכן דרך powershell..
שוב תודה רבה לך @בערל תמיד עוזר וברמה!!
נ.ב. הקישור השני שהבאת @בערל - זה לא עובד כמובן.. ניסתי את כל הפיצ'רים האלה כבר בהתחלה, זה בכלל כלי לתקן (אולי..) את עדכון וינדוס לא את החנות, היא מרכיב שלא קשור לupdate הרגיל של וינדוס (חשוב להבין את זה). תודה בכל אופן