腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
执行
Get-ADComputer
时
IPv4Address
为
空
、
我正在尝试以下代码
get-adcomputer
-identity *computername* | select name,
IPv4Address
,但IP地址栏全部
为
空
浏览 23
提问于2017-07-13
得票数 1
回答已采纳
2
回答
Powershell:在解析-DNS中使用的输出
这就是我输入的根据AD描述获取计算机名称的内容:
Get-ADComputer
-Filter *
浏览 6
提问于2017-12-19
得票数 0
回答已采纳
1
回答
Powershell脚本未在CSV文件中显示IP地址
我的脚本成功地将名称导出到CSV,但IP地址字段
为
空
。我不知道为什么会出现这种情况,因为当我打印输出命令
时
,它会显示名称和IP地址以及有关机器的其他信息。脚本: $output =
Get-ADComputer
-Filter * -Properties
IPv4Address
$output | Select-Object -Property name,
IPV4Address
| Export-Csv -Path c:\temp\IPAudit 任何建议都将不胜感激。
浏览 6
提问于2021-04-20
得票数 0
1
回答
按用户名搜索最终用户的ipaddress
、
当尝试运行脚本
时
,它要求提供一个类:而不会给我一个用户的IPv4地址。ForEach($device in $compnameGet-WmiObject –ComputerName $device | Select-Object UserName if(
浏览 21
提问于2019-10-30
得票数 0
回答已采纳
1
回答
使用Powershell在输出网格中添加错误上的空行
、
、
cls Get-Content -Path "$home\Desktop\computers.txt" | ForEach-Object {
Get-ADComputer
$_ -Properties Name, CanonicalName, Enabled,
IPv4Address
, OperatingSystem, OperatingSystemVersion, LastLogonTimeStamp, Description| select-object Name, CanonicalName, Enabled,
IPv4Add
浏览 5
提问于2022-11-04
得票数 0
回答已采纳
2
回答
如何找到Active Directory计算机对象的MAC地址?
、
、
、
Get-ADComputer
-Filter 'operatingsystem -like "*Windows server*" -and enabled -eq "true"' -PropertiesName,Operatingsystem, OperatingSystemVersion, OperatingSystemServicePack,
IPv4Address
| Sort-Object| Select-Object -Property Name,Operatingsystem, Opera
浏览 14
提问于2021-12-23
得票数 0
回答已采纳
1
回答
在批处理脚本中验证计算机AD组成员身份
时
遇到问题,输出
为
空
、
$comp | foreach {Pulls information from each computer in the list if ($true) { $Enabled =
Get-ADComputer
-identity $_.computer -properties
浏览 14
提问于2020-12-10
得票数 0
回答已采纳
2
回答
Powershell:通过操作系统获取连接到Active Directory的计算机数量
、
、
、
我想出了如何找到安装在某台计算机上的操作系统的名称:
Get-ADComputer
-Filter * -Properties * | Select-Object -ExpandProperty OperatingSystem
浏览 2
提问于2020-04-13
得票数 0
1
回答
扫描启用了代理的Windows Server的AD
、
、
、
如何组合这些命令:和 Get-ItemPropertyHKCU:\Software\Microsoft\Windows\Curr
浏览 6
提问于2018-09-06
得票数 0
1
回答
如何将
Get-ADComputer
PowerShell结果输出
为
包含IP和父对象(例如: Windows服务器)的JSON格式?
、
、
、
我
执行
了以下ps1脚本:
Get-ADComputer
-Filter "OperatingSystem -Like '*Windows Server"Name": "exampleServer2", } ]Import
浏览 5
提问于2022-03-08
得票数 1
回答已采纳
1
回答
修改计算机AD描述
首先,我导出了我们的计算机列表:$a = "$a*"
Get-ADComputer
-Filter'Name -like $a' -Properties
IPv4Address
,Description | FT Name,DNSHostName,
IPv4Address
,Description -A
浏览 6
提问于2017-09-08
得票数 0
2
回答
如何从另一个Powershell输出中添加信息
例如,我需要从广告电脑获得一些信息,我用的是:然后,我用这台电脑做了一些事情: Invoke-Command
浏览 1
提问于2021-12-19
得票数 3
回答已采纳
2
回答
没有接收到正确的输出
、
当
为
CanonicalNameOfObject的问询值键入以下命令
时
,我将接收Microsoft.ActiveDirectory.Management.ADPropertyValueCollection向克里斯问好 Select-Object Name,CanonicalNameOfObject,OperatingSystem,OperatingSystemVersion,
ipv4Address
| Export-CSV c:\ADc
浏览 16
提问于2022-11-21
得票数 1
4
回答
如何在
Get-ADComputer
中使用用户的输入变量作为搜索查询
、
这是为了帮助我在服务台工作的人(包括我自己)节省时间,他们每天都要手动
执行
这个操作。注意:我很确定这两个'
Get-ADComputer
‘行没有问题,因为如果我在脚本中手动输入计算机全名,它的工作方式正是。
Get-ADComputer
-SearchBase 'OU=(Disregard)' -Filter 'Name -like "*$PCName*"' -Properties
IPv4Address
| Format-Table Name,DNSHost
浏览 14
提问于2015-03-16
得票数 0
回答已采纳
1
回答
IPv4Address
过滤
时
,
Get-ADComputer
返回NULL
$i"$myPC =
Get-ADComputer
-property * -filter {
IPv4Address
-eq $ipName}
Get-ADComputer
-properties * -filter {
IPv4Address
-eq "10.0.0.138&qu
浏览 4
提问于2016-03-21
得票数 0
回答已采纳
1
回答
将包含集合对象的数据插入SQL Server表
、
下面的代码没有错误,它插入到SQL Server表中
时
没有任何问题。但是,[ServicePrincipalNames]数据并没有按我计划的方式插入。插入到表中的值
为
我尝试插入的是该对象集合中的值,如下所示:HOST/Server1NameHOST
浏览 3
提问于2021-09-01
得票数 0
1
回答
使用Powershell的Get-ADOrganizationUnit &
Get-ADComputer
提取OU名称
、
、
我想出了下面的PS脚本,它几乎满足了我的需要:但是,OU名称实际上是distinguishedname,很难看出>
Get-ADComputer
-filter * -Properties
ipv
浏览 0
提问于2020-04-09
得票数 3
回答已采纳
1
回答
Get-ADComputer
、
、
$ADComputers1 = (
get-adcomputer
-Filter {enabled -eq $true} -ResultPageSize 500 -ResultSetSize $null-Properties instanceType,
IPv4Address
, IPv6Address, isCriticalSystemObject, isDeleted, KerberosEncryptionType$values += [PSCustomObject]@{ instanceType=$computer.instance
浏览 11
提问于2022-11-04
得票数 2
3
回答
优化内存Java字符串数组
、
、
、
每个IP都有自己的以false开头的状态,每个连接也有由逻辑组成的状态,其IP的第二个输入是一个切换IP列表,这些状态切换IP地址的状态( false
为
true或true
为
false)。> ip = new HashMap<>();
Ipv4Address
ip.containsKey(connections[i][0])) { ip.put
浏览 0
提问于2020-07-10
得票数 3
回答已采纳
2
回答
有没有办法抑制来自Powershell的所有命令行输出,包括错误
、
、
、
从Python脚本(subprocess.Popen)调用Powershell
时
,我遍历了AD域控制器列表。对于每个无法识别AD对象的控制器,我希望抑制错误输出。Python脚本: cmd = 'powershell.exe
get-ADComputer
' + hname + ' -ServerAt line:1 char:1 +
get-ADComputer
computer-name -Server server.domain.com ?Fu
浏览 3
提问于2019-05-23
得票数 1
点击加载更多
相关
资讯
SAP打印生产订单入库单时发现库存地为空
Django2中DateTime字段查询时QuerySet为空的解决方案
上报汇总时提示:服务器返回为空或网络通信异常
第四范式胡时伟:To B 大模型的意义,就是让「好战略」落地为「强执行」
C语言-结构体单向链表插入结点
热门
标签
更多标签
云服务器
对象存储
ICP备案
云点播
实时音视频
活动推荐
运营活动
广告
关闭
领券