powershell PowerShell:显示/返回与GUID相关的CSE组件名称列表

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了powershell PowerShell:显示/返回与GUID相关的CSE组件名称列表相关的知识,希望对你有一定的参考价值。

function Show-CSEComponents {
	$GPCSEs = @()
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{00000000-0000-0000-0000-000000000000}"; Component = "Core GPO Engine"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{0E28E245-9368-4853-AD84-6DA3BA35BB75}"; Component = "Preference CSE GUID Environment Variables"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{0F6B957D-509E-11D1-A7CC-0000F87571E3}"; Component = "Tool Extension GUID (Computer Policy Settings)"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{0F6B957E-509E-11D1-A7CC-0000F87571E3}"; Component = "Tool Extension GUID (User Policy Settings) – Restrict Run"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{1612b55c-243c-48dd-a449-ffc097b19776}"; Component = "Preference Tool CSE GUID Data Sources"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{17D89FEC-5C44-4972-B12D-241CAEF74509}"; Component = "Preference CSE GUID Local users and groups"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{1A6364EB-776B-4120-ADE1-B63A406A76B5}"; Component = "Preference CSE GUID Devices"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{1b767e9a-7be4-4d35-85c1-2e174a7ba951}"; Component = "Preference Tool CSE GUID Devices"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{25537BA6-77A8-11D2-9B6C-0000F8080861}"; Component = "Folder Redirection"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{2EA1A81B-48E5-45E9-8BB7-A6E3AC170006}"; Component = "Preference Tool CSE GUID Drives"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{3060E8CE-7020-11D2-842D-00C04FA372D4}"; Component = "Remote Installation Services."}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{35141B6B-498A-4CC7-AD59-CEF93D89B2CE}"; Component = "Preference Tool CSE GUID Environment Variables"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{35378EAC-683F-11D2-A89A-00C04FBBCFA2}"; Component = "Registry Settings"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{3610EDA5-77EF-11D2-8DC5-00C04FA31A66}"; Component = "Microsoft Disk Quota"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{3A0DBA37-F8B2-4356-83DE-3E90BD5C261F}"; Component = "Preference CSE GUID Network Options"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{3BAE7E51-E3F4-41D0-853D-9BB9FD47605F}"; Component = "Preference Tool CSE GUID Files"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{3BFAE46A-7F3A-467B-8CEA-6AA34DC71F53}"; Component = "Preference Tool CSE GUID Folder Options"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{3EC4E9D3-714D-471F-88DC-4DD4471AAB47}"; Component = "Preference Tool CSE GUID Folders"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{40B66650-4972-11D1-A7CA-0000F87571E3}"; Component = "Scripts (Logon/Logoff) Run Restriction"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{42B5FAAE-6536-11d2-AE5A-0000F87571E3}"; Component = "ProcessScriptsGroupPolicy"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{47BA4403-1AA0-47F6-BDC5-298F96D1C2E3}"; Component = "Print Policy in PolicyMaker"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{4CFB60C1-FAA6-47f1-89AA-0B18730C9FD3}"; Component = "Internet Explorer Zonemapping"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{516FC620-5D34-4B08-8165-6A06B623EDEB}"; Component = "Preference Tool CSE GUID Ini Files"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{53D6AB1D-2488-11D1-A28C-00C04FB94F17}"; Component = "Certificates Run Restriction"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{5794DAFD-BE60-433f-88A2-1A31939AC01F}"; Component = "Preference CSE GUID Drives"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{5C935941-A954-4F7C-B507-885941ECE5C4}"; Component = "Preference Tool CSE GUID Internet Settings"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{6232C319-91AC-4931-9385-E70C2B099F0E}"; Component = "Group Policy Folders"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{6232C319-91AC-4931-9385-E70C2B099F0E}"; Component = "Preference CSE GUID Folders"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{6A4C88C6-C502-4f74-8F60-2CB23EDC24E2}"; Component = "Preference CSE GUID Network Shares"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{7150F9BF-48AD-4da4-A49C-29EF4A8369BA}"; Component = "Preference CSE GUID Files"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{728EE579-943C-4519-9EF7-AB56765798ED}"; Component = "Preference CSE GUID Data Sources"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{74EE6C03-5363-4554-B161-627540339CAB}"; Component = "Preference CSE GUID Ini Files"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{79F92669-4224-476c-9C5C-6EFB4D87DF4A}"; Component = "Preference Tool CSE GUID Local users and groups"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{7B849a69-220F-451E-B3FE-2CB811AF94AE}"; Component = "Internet Explorer User Accelerators/PolicyMaker"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{803E14A0-B4FB-11D0-A0D0-00A0C90F574B}"; Component = "Computer Restricted Groups"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{827D319E-6EAC-11D2-A4EA-00C04F79F83A}"; Component = "Security "}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{88E729D6-BDC1-11D1-BD2A-00C04FB9603F}"; Component = "Folder Redirection"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{8A28E2C5-8D06-49A4-A08C-632DAA493E17}"; Component = "Deployed Printer Connections"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{91FBB303-0CD5-4055-BF42-E512A681B325}"; Component = "Preference CSE GUID Services"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{942A8E4F-A261-11D1-A760-00C04FB9603F}"; Component = "Software Installation (Computers)."}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{949FB894-E883-42C6-88C1-29169720E8CA}"; Component = "Preference Tool CSE GUID Network Options"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{9AD2BAFE-63B4-4883-A08C-C3C6196BCAFD}"; Component = "Preference Tool CSE GUID Power Options"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{A2E30F80-D7DE-11d2-BBDE-00C04F86AE3B}"; Component = "Internet Explorer Maintenance policy processing"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{A3F3E39B-5D83-4940-B954-28315B82F0A8}"; Component = "Preference CSE GUID Folder Options"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{A8C42CEA-CDB8-4388-97F4-5831F933DA84}"; Component = "Preference Tool CSE GUID Printers"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{AADCED64-746C-4633-A97C-D61349046527}"; Component = "Preference CSE GUID Scheduled Tasks"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{B087BE9D-ED37-454f-AF9C-04291E351182}"; Component = "Preference CSE GUID Registry"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{B1BE8D72-6EAC-11D2-A4EA-00C04F79F83A}"; Component = "EFS Recovery"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{B587E2B1-4D59-4e7e-AED9-22B9DF11D053}"; Component = "802.3 Group Policy"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{B9CCA4DE-E2B9-4CBD-BF7D-11B6EBFBDDF7}"; Component = "Preference Tool CSE GUID Regional Options"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{BACF5C8A-A3C7-11D1-A760-00C04FB9603F}"; Component = "Software Installation (Users) Run Restriction"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{BC75B1ED-5833-4858-9BB8-CBF0B166DF9D}"; Component = "Preference CSE GUID Printers"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{BEE07A6A-EC9F-4659-B8C9-0B1937907C83}"; Component = "Preference Tool CSE GUID Registry"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{BFCBBEB0-9DF4-4c0c-A728-434EA66A0373}"; Component = "Preference Tool CSE GUID Network Shares"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{C418DD9D-0D14-4efb-8FBF-CFE535C8FAC7}"; Component = "Preference CSE GUID Shortcuts"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{C631DF4C-088F-4156-B058-4375F0853CD8}"; Component = "Microsoft Offline Files"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{C6DC5466-785A-11D2-84D0-00C04FB169F7}"; Component = "Application Management"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{CAB54552-DEEA-4691-817E-ED4A4D1AFC72}"; Component = "Preference Tool CSE GUID Scheduled Tasks"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{CC5746A9-9B74-4be5-AE2E-64379C86E0E4}"; Component = "Preference Tool CSE GUID Services"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{cdeafc3d-948d-49dd-ab12-e578ba4af7aa}"; Component = "TCPIP"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{CEFFA6E2-E3BD-421B-852C-6F6A79A59BC1}"; Component = "Preference Tool CSE GUID Shortcuts"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{CF7639F3-ABA2-41DB-97F2-81E2C5DBFC5D}"; Component = "Internet Explorer Machine Accelerators"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{CF7639F3-ABA2-41DB-97F2-81E2C5DBFC5D}"; Component = "Policy Maker"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{CF848D48-888D-4F45-B530-6A201E62A605}"; Component = "Preference Tool CSE GUID Start Menu"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{D02B1F72-3407-48AE-BA88-E8213C6761F1}"; Component = "Tool Extension GUID (Computer Policy Settings)"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{D02B1F73-3407-48AE-BA88-E8213C6761F1}"; Component = "Tool Extension GUID (User Policy Settings)"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{e437bc1c-aa7d-11d2-a382-00c04f991e27}"; Component = "IP Security"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{E47248BA-94CC-49C4-BBB5-9EB7F05183D0}"; Component = "Preference CSE GUID Internet Settings"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{E4F48E54-F38D-4884-BFB9-D4D2E5729C18}"; Component = "Preference CSE GUID Start Menu"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{E5094040-C46C-4115-B030-04FB2E545B00}"; Component = "Preference CSE GUID Regional Options"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{E62688F0-25FD-4c90-BFF5-F508B9D2E31F}"; Component = "Preference CSE GUID Power Options"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{F0DB2806-FD46-45B7-81BD-AA3744B32765}"; Component = "Policy Maker"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{F17E8B5B-78F2-49A6-8933-7B767EDA5B41}"; Component = "Policy Maker"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{F27A6DA8-D22B-4179-A042-3D715F9E75B5}"; Component = "Policy Maker"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{f3ccc681-b74c-4060-9f26-cd84525dca2a}"; Component = "Audit Policy Configuration"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{F581DAE7-8064-444A-AEB3-1875662A61CE}"; Component = "Policy Maker"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{F648C781-42C9-4ED4-BB24-AEB8853701D0}"; Component = "Policy Maker"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{F6E72D5A-6ED3-43D9-9710-4440455F6934}"; Component = "Policy Maker"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{F9C77450-3A41-477E-9310-9ACD617BD9E3}"; Component = "Group Policy Applications"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{FB2CA36D-0B40-4307-821B-A13B252DE56C}"; Component = "Enterprise QoS"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{FC715823-C5FB-11D1-9EEF-00A0C90347FF}"; Component = "Internet Explorer Maintenance Extension protocol"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{FD2D917B-6519-4BF7-8403-456C0C64312F}"; Component = "Policy Maker"}
	$GPCSEs += New-Object -TypeName PSObject -Property @{GUID = "{FFC64763-70D2-45BC-8DEE-7ACAF1BA7F89}"; Component = "Policy Maker"}
	$GPCSEs
}

以上是关于powershell PowerShell:显示/返回与GUID相关的CSE组件名称列表的主要内容,如果未能解决你的问题,请参考以下文章

powershell PowerShell命令显示计算机上的所有驱动器

powershell SharePoint PowerShell脚本,用于显示站点的用户和用户角色

powershell PowerShell:显示/返回与GUID相关的CSE组件名称列表

powershell powershell脚本使用姓氏和给定名称更改AD用户显示名称。

powershell 有关如何等待从PowerShell启动的可执行文件显示窗口的示例

powershell PowerShell的自定义提示,在切片栏中显示您当前的Az订阅