社区首页 >问答首页 >GPO使用XML报告丢失的数据

GPO使用XML报告丢失的数据
EN

Stack Overflow用户
提问于 2021-06-14 13:05:06
回答 1查看 121关注 0票数 1

我正在寻找XML输出中的“Network: Allow /Name translation”,它不在文件中,但它存在于HTML版本中。这附近有工作吗?

代码语言:javascript
代码运行次数:0
复制
Get-GPOReport -All -ReportType xml -Path .\master.xml 
$master = Get-Content .\master.xml
$master -match 'transla'
          <q1:Name>Use online translation dictionaries</q1:Name>
          <q1:Explain>This policy setting allows you to prevent online dictionaries from being used for the translation of text through 
the Research pane.
If you enable or do not configure this policy setting, the online dictionaries can be used to translate text through the Research pane.
If you disable this policy setting, the online dictionaries cannot be used to translate text through the Research pane.</q1:Explain>

我在使用HTML时得到了多个结果

代码语言:javascript
代码运行次数:0
复制
Get-GPOReport -All -ReportType html -Path .\master.html
$masterHTML = Get-Content .\master.html
$masterHTML -match 'transla'

<tr><td>Network access: Allow anonymous SID/Name translation</td><td>Disabled</td></tr>
<tr><td>Network access: Allow anonymous SID/Name translation</td><td>Disabled</td></tr>
<tr><td>Network access: Allow anonymous SID/Name translation</td><td>Disabled</td></tr>
<tr><td>Network access: Allow anonymous SID/Name translation</td><td>Disabled</td></tr>
<tr><td><span class="explainlink" tabindex="0" onkeypress="javascript:showExplainText(this); return false;" onclick="javascript:showExpl
ainText(this); return false;" gpmc_settingName="Use online translation dictionaries" gpmc_settingPath="User Configuration/Administrative
 Templates/Microsoft Word 2016/Miscellaneous" gpmc_settingDescription="This policy setting allows you to prevent online dictionaries fro
m being used for the translation of text through the Research pane.&lt;br/&gt;&lt;br/&gt;If you enable or do not configure this policy s
etting, the online dictionaries can be used to translate text through the Research pane.&lt;br/&gt;&lt;br/&gt;If you disable this policy
 setting, the online dictionaries cannot be used to translate text through the Research pane." gpmc_supported="At least Windows Server 2
008 R2 or Windows 7">Use online translation dictionaries</span></td><td>Disabled</td><td></td></tr>
<tr><td>Network access: Allow anonymous SID/Name translation</td><td>Disabled</td></tr>
<tr><td>Network access: Allow anonymous SID/Name translation</td><td>Disabled</td></tr>
<tr><td>Network access: Allow anonymous SID/Name translation</td><td>Disabled</td></tr>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-06-14 15:19:09

您将找到名为LSAAnonymousNameLookup的“网络访问:允许匿名SID/名称转换”,因此请尝试

代码语言:javascript
代码运行次数:0
复制
[xml]$gpor = Get-GPOReport -Name "My Group Policy Object" -ReportType Xml
$gpor.GPO.Computer.ExtensionData.Extension.SecurityOptions | Where-Object { $_.SystemAccessPolicyName -eq 'LSAAnonymousNameLookup' }
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/67977209

复制
相关文章
32 - 连接列表中的分隔符
1. 如何将列表中的元素(字符串类型的值)连接在一起(首位相接) a = ['a', 'b', 'c', 'd', 'e'] s = '+' print(s.join(a)) a+b+c+d+e 2. 字符串的join 方法的作用是什么,使用join 应该注意什么,请举例说明 join 方法可以将列表中的字符串类型元素连接起来。并且可以指定元素值直接的分隔符 dirs = '', 'use', 'local', 'xxx', '' print(dirs) path = '/'.join(dirs) prin
ruochen
2021/05/23
1.2K0
32 - 连接列表中的分隔符
访问列表中的值
#!/usr/bin/python list1 = ['physics', 'chemistry', 1997, 2000] list2 = [1, 2, 3, 4, 5, 6, 7 ] print "list1[0]: ", list1[0] print "list2[1:5]: ", list2[1:5]
用户8442333
2021/05/27
5.6K0
如何将python列表拆分为大小相等的块
程序熵
2023/09/25
3180
如何将python列表拆分为大小相等的块
python dataframe筛选列表的值转为list【常用】
  网上方法参差不齐,无注释解释不好秒懂,没有自己想要的,故自己试验一番~ 1. 筛选列表中,当b列中为’1’时,所有c的值,然后转为list 2 .筛选列表中,当a列中为'one',b列为'1'时,
逆向小白
2019/07/30
5.1K0
使用 Python 删除大于特定值的列表元素
Lambda 函数,通常称为“匿名函数”,与普通的 Python 函数相同,只是它可以在没有名称的情况下定义。def 关键字用于定义普通函数,而 lambda 关键字用于定义匿名函数。但是,它们仅限于单一的表达方式。与常规函数一样,它们可以接受多个参数。
很酷的站长
2023/02/23
10.7K0
使用 Python 删除大于特定值的列表元素
python之列表,python列表的所有详细操作
range(start,end,step) start :起始的值 end:到end -1 结束 step:相邻两个数之间相差step个 列表的索引和切片
matinal
2023/10/13
2000
【说站】Python切片获取列表多个值
1、单个值可以通过下标获得,多个值可以通过切片获得,并返回一个新列表。将切片输入方括号,用冒号分割。
很酷的站长
2022/11/24
1.1K0
【说站】Python切片获取列表多个值
Python 列表
✅作者简介:人工智能专业本科在读,喜欢计算机与编程,写博客记录自己的学习历程。 🍎个人主页:小嗷犬的博客 🍊个人信条:为天地立心,为生民立命,为往圣继绝学,为万世开太平。 🥭本文内容:Python 列表 更多内容请见👇 Python 入门基础专栏 Python 字符串 Python 常用字符串方法 ---- Python 列表 1.创建列表 1.1 list 函数 1.2 方括号 1.3 空列表 2.列表基本操作 2.1 元素修改 2.2 元素删除 2.3 切片赋值 2.4 多重赋值 3.列
小嗷犬
2022/11/15
2.9K0
Python——列表
列表是python中最基础,最强大的数据结构之一。python的列表可以容纳任何东西,其中的元素可以没有任何关系。python的列表就像一个可以容纳万物的容器。但是需要注意,这个容器中的数据是有序的。 在Python 中,用方括号([])表示列表,并用逗号分隔其中的元素。下面是一个例子:
zy010101
2021/03/11
1.9K0
Python——列表
python列表
字典的每个键值 key=>value 对用冒号 : 分割,每个对之间用逗号(,)分割,整个字典包括在花括号 {} 中
织幻妖
2021/03/05
2.1K0
python列表
python列表
>>> courses = ['Linux', 'Python', 'Vim', 'C++']
互联网老辛
2018/10/18
2.1K0
Python列表
要让numbers1和numbers2指向不同的列表,必须将numbers2关联到numbers1的副本,就用到copy
王大力测试进阶之路
2022/06/07
1.6K0
python列表
"C:Program Files (x86)python3.6python.exe" D:/python3_study/list1.py
py3study
2018/08/02
1.7K0
python列表
本篇将介绍python中的列表,更多内容请参考:Python学习指南 一、序列 在python中有六种内建的序列:列表、元祖、字符串、Unicode字符串、buffer对象he xrange对象。 通用序列操作 所有的序列都可以进行某些特定的操作。这些操作包括: 索引(indexing) 分片(sliceing) 加(adding) 乘(multiplying) 检查某个元素是否属于这序列的(index) 计算序列长度(len) 找出最大元素和最小元素(min/max) 二、列表的增、删、改操作
用户1174963
2018/01/17
2.5K0
python 列表
>>> number = [1,2,3,4,5] >>> number [1, 2, 3, 4, 5] 1.2.list()方法,参数应为可迭代序列
py3study
2020/01/19
1.5K0
Python列表
列表可以完成大多数集合类的数据结构实现。它支持字符,数字,字符串甚至可以包含列表(即嵌套)。
用户8442333
2021/05/26
1.8K0
python 列表
list(filter(lamba: c: c>127,map(ord,symbols)))
用户5760343
2019/07/31
1.7K0
python 列表
Python(列表)
函数range返回一个整数列表,列表从函数的第一个参数n开始,最后一个参数m结束,但不包含最后一个参数m,相邻两数之间差值为1.
py3study
2020/01/13
1.3K0
点击加载更多

相似问题

基于条件的Python拆分列表值

41

基于多个分隔符python的列表中的拆分值

30

基于Python中某些值的拆分列表?

20

拆分python列表值

23

基于值的值拆分列表

30
添加站长 进交流群

领取专属 10元无门槛券

AI混元助手 在线答疑

扫码加入开发者社群
关注 腾讯云开发者公众号

洞察 腾讯核心技术

剖析业界实践案例

扫码关注腾讯云开发者公众号
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
查看详情【社区公告】 技术创作特训营有奖征文