Set-CMMicrosoftEdgeBrowserProfiles   
为 Microsoft Edge 旧版浏览器配置文件配置策略。
语法
Set-CMMicrosoftEdgeBrowserProfiles
   -Id <Int32>
   [-NewName <String>]
   [-PassThru]
   [-SupportedPlatform <IResultObject[]>]
   [-AllowAddressBarDropDown <EdgeBrowserSettingType>]
   [-AllowAutoFill <EdgeBrowserSettingType>]
   [-AllowCookies <EdgeBrowserSettingType>]
   [-AllowDeveloperTools <EdgeBrowserSettingType>]
   [-AllowDoNotTrack <EdgeBrowserSettingType>]
   [-AllowExtensions <EdgeBrowserSettingType>]
   [-AllowPasswordManager <EdgeBrowserSettingType>]
   [-AllowPopups <EdgeBrowserSettingType>]
   [-AllowSearchSuggestions <EdgeBrowserSettingType>]
   [-AllowSmartScreen <EdgeBrowserSettingType>]
   [-ClearBrowsingDataOnExit <EdgeBrowserSettingType>]
   [-Description <String>]
   [-PreventOverrideFiles <EdgeBrowserSettingType>]
   [-PreventPromptOverride <EdgeBrowserSettingType>]
   [-SendIntranetTrafficToIE <EdgeBrowserSettingType>]
   [-SetEdgeBrowserAsDefault <EdgeBrowserAsDefaultSettingType>]
   [-SyncFavoritesIEAndEdge <EdgeBrowserSettingType>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]   Set-CMMicrosoftEdgeBrowserProfiles
   -InputObject <IResultObject>
   [-NewName <String>]
   [-PassThru]
   [-SupportedPlatform <IResultObject[]>]
   [-AllowAddressBarDropDown <EdgeBrowserSettingType>]
   [-AllowAutoFill <EdgeBrowserSettingType>]
   [-AllowCookies <EdgeBrowserSettingType>]
   [-AllowDeveloperTools <EdgeBrowserSettingType>]
   [-AllowDoNotTrack <EdgeBrowserSettingType>]
   [-AllowExtensions <EdgeBrowserSettingType>]
   [-AllowPasswordManager <EdgeBrowserSettingType>]
   [-AllowPopups <EdgeBrowserSettingType>]
   [-AllowSearchSuggestions <EdgeBrowserSettingType>]
   [-AllowSmartScreen <EdgeBrowserSettingType>]
   [-ClearBrowsingDataOnExit <EdgeBrowserSettingType>]
   [-Description <String>]
   [-PreventOverrideFiles <EdgeBrowserSettingType>]
   [-PreventPromptOverride <EdgeBrowserSettingType>]
   [-SendIntranetTrafficToIE <EdgeBrowserSettingType>]
   [-SetEdgeBrowserAsDefault <EdgeBrowserAsDefaultSettingType>]
   [-SyncFavoritesIEAndEdge <EdgeBrowserSettingType>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]   Set-CMMicrosoftEdgeBrowserProfiles
   -Name <String>
   [-NewName <String>]
   [-PassThru]
   [-SupportedPlatform <IResultObject[]>]
   [-AllowAddressBarDropDown <EdgeBrowserSettingType>]
   [-AllowAutoFill <EdgeBrowserSettingType>]
   [-AllowCookies <EdgeBrowserSettingType>]
   [-AllowDeveloperTools <EdgeBrowserSettingType>]
   [-AllowDoNotTrack <EdgeBrowserSettingType>]
   [-AllowExtensions <EdgeBrowserSettingType>]
   [-AllowPasswordManager <EdgeBrowserSettingType>]
   [-AllowPopups <EdgeBrowserSettingType>]
   [-AllowSearchSuggestions <EdgeBrowserSettingType>]
   [-AllowSmartScreen <EdgeBrowserSettingType>]
   [-ClearBrowsingDataOnExit <EdgeBrowserSettingType>]
   [-Description <String>]
   [-PreventOverrideFiles <EdgeBrowserSettingType>]
   [-PreventPromptOverride <EdgeBrowserSettingType>]
   [-SendIntranetTrafficToIE <EdgeBrowserSettingType>]
   [-SetEdgeBrowserAsDefault <EdgeBrowserAsDefaultSettingType>]
   [-SyncFavoritesIEAndEdge <EdgeBrowserSettingType>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]   说明
为 Microsoft Edge 旧版浏览器配置文件配置策略。 此策略仅适用于 Windows 10 版本 1703 或更高版本以及 Microsoft Edge 旧版 45 及更低版本的客户端。 有关详细信息,请参阅 在 Configuration Manager 中配置 Microsoft Edge 旧版设置。 本文还包括有关特定策略设置的更多详细信息。
有关使用 Configuration Manager 管理 Microsoft Edge 版本 77 或更高版本的详细信息,请参阅 部署 Microsoft Edge 版本 77 及更高版本。 有关为 Microsoft Edge 版本 77 或更高版本配置策略的详细信息,请参阅 Microsoft Edge - 策略。
示例
示例 1
Set-CMMicrosoftEdgeBrowserProfiles -Name "Edge1" -AllowAddressBarDropDown NotConfigured -AllowAutoFill NotConfigured -AllowCookies NotConfigured -AllowDeveloperTools NotConfigured -AllowDoNotTrack NotConfigured -AllowExtensions NotConfigured -AllowPasswordManager NotConfigured -AllowPopups NotConfigured -AllowSearchSuggestions NotConfigured -AllowSmartScreen NotConfigured -ClearBrowsingDataOnExit NotConfigured -Description "Edge1" -PreventOverrideFiles NotConfigured -PreventPromptOverride NotConfigured -SendIntranetTrafficToIE NotConfigured -SetEdgeBrowserAsDefault Configured -SyncFavoritesIEAndEdge NotConfigured参数
-AllowAddressBarDropDown
将设置配置为 “允许地址栏”下拉列表。
| 类型: | EdgeBrowserSettingType | 
| 接受的值: | Allow, NotAllow, NotConfigured | 
| Position: | Named | 
| 默认值: | None | 
| 必需: | False | 
| 接受管道输入: | False | 
| 接受通配符: | False | 
-AllowAutoFill
将设置配置为 “允许自动填充”。
| 类型: | EdgeBrowserSettingType | 
| 接受的值: | Allow, NotAllow, NotConfigured | 
| Position: | Named | 
| 默认值: | None | 
| 必需: | False | 
| 接受管道输入: | False | 
| 接受通配符: | False | 
-AllowCookies
将设置配置为 “允许 Cookie”。
| 类型: | EdgeBrowserSettingType | 
| 接受的值: | Allow, NotAllow, NotConfigured | 
| Position: | Named | 
| 默认值: | None | 
| 必需: | False | 
| 接受管道输入: | False | 
| 接受通配符: | False | 
-AllowDeveloperTools
将设置配置为 “允许开发人员工具”。
| 类型: | EdgeBrowserSettingType | 
| 接受的值: | Allow, NotAllow, NotConfigured | 
| Position: | Named | 
| 默认值: | None | 
| 必需: | False | 
| 接受管道输入: | False | 
| 接受通配符: | False | 
-AllowDoNotTrack
将设置配置为 “不允许跟踪”标头。
| 类型: | EdgeBrowserSettingType | 
| 接受的值: | Allow, NotAllow, NotConfigured | 
| Position: | Named | 
| 默认值: | None | 
| 必需: | False | 
| 接受管道输入: | False | 
| 接受通配符: | False | 
-AllowExtensions
将设置配置为 “允许扩展”。
| 类型: | EdgeBrowserSettingType | 
| 接受的值: | Allow, NotAllow, NotConfigured | 
| Position: | Named | 
| 默认值: | None | 
| 必需: | False | 
| 接受管道输入: | False | 
| 接受通配符: | False | 
-AllowPasswordManager
将设置配置为 “允许密码管理器”。
| 类型: | EdgeBrowserSettingType | 
| 接受的值: | Allow, NotAllow, NotConfigured | 
| Position: | Named | 
| 默认值: | None | 
| 必需: | False | 
| 接受管道输入: | False | 
| 接受通配符: | False | 
-AllowPopups
将设置配置为 “允许弹出阻止程序”。
| 类型: | EdgeBrowserSettingType | 
| 接受的值: | Allow, NotAllow, NotConfigured | 
| Position: | Named | 
| 默认值: | None | 
| 必需: | False | 
| 接受管道输入: | False | 
| 接受通配符: | False | 
-AllowSearchSuggestions
将设置配置为 “允许地址栏中的搜索建议”。
| 类型: | EdgeBrowserSettingType | 
| 别名: | AllowSearchSuggestionsinAddressBar | 
| 接受的值: | Allow, NotAllow, NotConfigured | 
| Position: | Named | 
| 默认值: | None | 
| 必需: | False | 
| 接受管道输入: | False | 
| 接受通配符: | False | 
-AllowSmartScreen
将 Microsoft Defender SmartScreen 设置配置为 “允许 SmartScreen”。
| 类型: | EdgeBrowserSettingType | 
| 接受的值: | Allow, NotAllow, NotConfigured | 
| Position: | Named | 
| 默认值: | None | 
| 必需: | False | 
| 接受管道输入: | False | 
| 接受通配符: | False | 
-ClearBrowsingDataOnExit
将设置配置为 在退出时允许清除浏览数据。
| 类型: | EdgeBrowserSettingType | 
| 接受的值: | Allow, NotAllow, NotConfigured | 
| Position: | Named | 
| 默认值: | None | 
| 必需: | False | 
| 接受管道输入: | False | 
| 接受通配符: | False | 
-Confirm
提示你在运行 cmdlet 之前进行确认。
| 类型: | SwitchParameter | 
| 别名: | cf | 
| Position: | Named | 
| 默认值: | None | 
| 必需: | False | 
| 接受管道输入: | False | 
| 接受通配符: | False | 
-Description
为浏览器配置文件策略指定可选说明。
| 类型: | String | 
| 别名: | LocalizedDescription | 
| Position: | Named | 
| 默认值: | None | 
| 必需: | False | 
| 接受管道输入: | False | 
| 接受通配符: | False | 
-DisableWildcardHandling
此参数将通配符视为文本字符值。 不能将其与 ForceWildcardHandling 组合使用。
| 类型: | SwitchParameter | 
| Position: | Named | 
| 默认值: | None | 
| 必需: | False | 
| 接受管道输入: | False | 
| 接受通配符: | False | 
-ForceWildcardHandling
此参数处理通配符,并可能导致意外行为, (不建议) 。 不能将其与 DisableWildcardHandling 组合使用。
| 类型: | SwitchParameter | 
| Position: | Named | 
| 默认值: | None | 
| 必需: | False | 
| 接受管道输入: | False | 
| 接受通配符: | False | 
-Id
指定要配置的浏览器配置文件的 CI ID 。 格式为五到七位数的数字,例如 403823。
| 类型: | Int32 | 
| 别名: | CIId, CI_ID | 
| Position: | Named | 
| 默认值: | None | 
| 必需: | True | 
| 接受管道输入: | False | 
| 接受通配符: | False | 
-InputObject
指定要配置的浏览器配置文件策略对象。 若要获取此对象,请使用 Get-CMMicrosoftEdgeBrowserProfiles cmdlet。
| 类型: | IResultObject | 
| 别名: | MicrosoftEdgeBrowserPolicy | 
| Position: | Named | 
| 默认值: | None | 
| 必需: | True | 
| 接受管道输入: | True | 
| 接受通配符: | False | 
-Name
指定要配置的浏览器配置文件的名称。
| 类型: | String | 
| 别名: | LocalizedDisplayName | 
| Position: | Named | 
| 默认值: | None | 
| 必需: | True | 
| 接受管道输入: | False | 
| 接受通配符: | False | 
-NewName
若要重命名此浏览器配置文件策略,请指定新名称。
| 类型: | String | 
| Position: | Named | 
| 默认值: | None | 
| 必需: | False | 
| 接受管道输入: | False | 
| 接受通配符: | False | 
-PassThru
添加此参数可返回一个对象,该对象表示正在使用的项。 默认情况下,此 cmdlet 可能不会生成任何输出。
| 类型: | SwitchParameter | 
| Position: | Named | 
| 默认值: | None | 
| 必需: | False | 
| 接受管道输入: | False | 
| 接受通配符: | False | 
-PreventOverrideFiles
配置 Microsoft Defender SmartScreen 设置: 用户可以替代文件的 SmartScreen 提示。
| 类型: | EdgeBrowserSettingType | 
| 别名: | PreventSmartScreenPromptOverrideForFiles | 
| 接受的值: | Allow, NotAllow, NotConfigured | 
| Position: | Named | 
| 默认值: | None | 
| 必需: | False | 
| 接受管道输入: | False | 
| 接受通配符: | False | 
-PreventPromptOverride
配置 Microsoft Defender SmartScreen 设置: 用户可以覆盖网站的 SmartScreen 提示。
| 类型: | EdgeBrowserSettingType | 
| 别名: | PreventSmartScreenPromptOverride | 
| 接受的值: | Allow, NotAllow, NotConfigured | 
| Position: | Named | 
| 默认值: | None | 
| 必需: | False | 
| 接受管道输入: | False | 
| 接受通配符: | False | 
-SendIntranetTrafficToIE
将设置配置为 “允许将 Intranet 流量发送到 Internet Explorer”。
| 类型: | EdgeBrowserSettingType | 
| 别名: | SendIntranetTrafficToInternetExplorer | 
| 接受的值: | Allow, NotAllow, NotConfigured | 
| Position: | Named | 
| 默认值: | None | 
| 必需: | False | 
| 接受管道输入: | False | 
| 接受通配符: | False | 
-SetEdgeBrowserAsDefault
将设置配置为 将 Microsoft Edge 浏览器设置为默认值。 如果配置此设置,Configuration Manager 会将 Web 浏览器的 Windows 10 默认应用设置配置为Microsoft旧版 Edge。
| 类型: | EdgeBrowserAsDefaultSettingType | 
| 接受的值: | Configured, NotConfigured | 
| Position: | Named | 
| 默认值: | None | 
| 必需: | False | 
| 接受管道输入: | False | 
| 接受通配符: | False | 
-SupportedPlatform
指定此策略适用的受支持平台对象。 若要获取此对象,请使用 Get-CMSupportedPlatform cmdlet。
| 类型: | IResultObject[] | 
| 别名: | SupportedPlatforms | 
| Position: | Named | 
| 默认值: | None | 
| 必需: | False | 
| 接受管道输入: | False | 
| 接受通配符: | False | 
-SyncFavoritesIEAndEdge
将设置配置为 “允许在Microsoft浏览器之间同步收藏夹”。
| 类型: | EdgeBrowserSettingType | 
| 别名: | SyncFavoritesBetweenIEAndMicrosoftEdge | 
| 接受的值: | Allow, NotAllow, NotConfigured | 
| Position: | Named | 
| 默认值: | None | 
| 必需: | False | 
| 接受管道输入: | False | 
| 接受通配符: | False | 
-WhatIf
显示在 cmdlet 运行时发生的情况。 cmdlet 不会运行。
| 类型: | SwitchParameter | 
| 别名: | wi | 
| Position: | Named | 
| 默认值: | None | 
| 必需: | False | 
| 接受管道输入: | False | 
| 接受通配符: | False | 
输入
Microsoft.ConfigurationManagement.ManagementProvider.IResultObject
输出
IResultObject