腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
2
回答
Get-ADUser
-Identity
powershell
、
active-directory
无法将变量传递给
Powershell
中的标识
参数
。$username = "John.Doe"
Get-ADUser
: Cannot find an object with identityAt line:1 char:1+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + Cat
浏览 1
提问于2019-05-09
得票数 2
回答已采纳
1
回答
如何使用Python表示
Powershell
"ToBase64String“函数
python
、
powershell
、
base64
因为我想调用windows shell来运行命令并从Python获取输出,所以我尝试在Python中对命令字符串进行编码,然后使用s = '''
Get-ADUser
-Filter ('Surname -eq "aa" -and GivenName -eq "bb" -and Department ->
powershell
-Encoded
浏览 4
提问于2022-03-28
得票数 0
回答已采纳
1
回答
获取-ADUser错误,Name不是筛选器的
参数
。
powershell
我有一个
powershell
脚本可以从Active获得管理员帐户的详细信息,但是我遇到了这个错误。对不起,我对
PowerShell
很陌生。
Get-ADUser
:无效类型'System.Object[]
参数
名称:行名:1字符:1 ...CategoryInfo :无效
参数
:(:)
Get-ADUser
,ArgumentExceptionFullyQualifiedErrorId$Admin = (Get-ADGroupMember -Identity Administrator
浏览 1
提问于2020-12-08
得票数 0
回答已采纳
1
回答
如何使用
powershell
更新AD用户的UsageLocation
powershell
、
active-directory
、
office365
、
boomi
我试图使用
powershell
更新AD用户的UsageLocation,以便为其分配O365许可证。基于,
Get-AdUser
-identity "IReyna"更新:代码的上下文位于Boomi环境中(即运行
Powershell
脚本)。我只需转义大括号,因为它们是为
参数
保留的(即{1})。
powershell
-Command "
浏览 2
提问于2020-05-15
得票数 0
1
回答
此操作返回是因为超时时间过期错误。
powershell
、
active-directory
我使用
PowerShell
从AD中提取出一个部门列表:$strFilter = "(&(objectCategory=User)(Department=*$Dept*))" Select-Object -Expand
浏览 2
提问于2015-09-08
得票数 2
回答已采纳
2
回答
Get-ADUser
Powershell
参数
powershell
、
active-directory
我有这个函数(如下所列),它可以工作,但我希望它不会在第二个地方询问我的
参数
。我们的目标是让这个工具在一个循环中运行,在这个循环中,我可以输入带有给定
参数
的函数快捷键,比如"Username“ ListUserInformation -Username“名字,姓氏”(类似这样的东西Parameter(Mandatory=$true)][String]$Username $x =
Get-ADUser
浏览 33
提问于2020-09-10
得票数 0
1
回答
Powershell
和ColdFusion使用不同的服务器更新active directory
powershell
、
coldfusion
我只是在学习
Powershell
。我想尝试更新AD中的数据,但我的AD服务器和
Powershell
位于不同的服务器上。例如,我的AD服务器是111.111.111.111,我的
Powershell
.exe在服务器222.222.222.222上。我正在使用ColdFusion编程来执行我的
Powershell
脚本。下面是我的ColdFusion脚本:<cfexecute name="C:\Windows\System32\WindowsPowerShell\v1.0\<e
浏览 4
提问于2017-08-29
得票数 0
1
回答
Powershell
、导入-CSV、-Filter SamAccountName
powershell
、
csv
目标:尝试使用包含SamAccountNames列表的
powershell
根据CSV文件搜索AD。
Powershell
代码:
Get-aduser
-filter "SamAccountName -like 'DoeJim*“-Properties *|格式-表SurName,GivenName,缩写下面是我想出来但不起作用的内容导入-Csv 'c:\import.csv‘| foreach {
get-aduser
-filter samAccountName -like $_."S
浏览 2
提问于2020-06-06
得票数 0
1
回答
foreach循环给出错误CategoryInfo : InvalidData:(:) [
Get-ADUser
],ParameterBindingValidationException
powershell
、
foreach
、
active-directory
= Foreach ($user in $users){ } >
Get-ADUser
: Cannot validate argumentAt line:6 char:20> + ~~~~~ > + CategoryInfo: InvalidData: (:) [
Get-ADUser
], ParameterBindingVa
浏览 3
提问于2020-02-20
得票数 0
回答已采纳
1
回答
根据字符过滤掉
powershell
搜索
powershell
如何根据AD中的用户过滤掉
powershell
搜索中的字符?
Get-ADUser
-Filter {Char-eq "E"} -SearchBase "DC=Test, DC=local"
浏览 2
提问于2017-12-09
得票数 0
1
回答
Get-AzureADUser筛选器-“没有输入就无法计算脚本块”
powershell
谁能给我解释一下为什么下面的方法是可行的: $email = 'fred@bloggs.com'
Get-ADUser
-Filter {mail -eq $email} 但是当我这样做的时候: $email
浏览 34
提问于2019-05-24
得票数 1
回答已采纳
1
回答
如何创建具有选择性属性的对象?
c#
、
powershell
在使用
Powershell
的AD Cmdlet时,您可以执行以下任一操作来返回Microsoft.ActiveDirectory.Management.ADUser类型的对象:但是,第二个函数将返回一个具有更多属性的对象。我正在用C#编写我自己的
PowerShell
Cmdlet,它将返回自定义对象,如下所示。如何将其设置为仅根据
参数
返回某些属性? 这是一个将被返回的示例类。例如,只有当我有一个
参数</em
浏览 3
提问于2012-11-03
得票数 1
3
回答
“无法验证
参数
‘标识’上的
参数
”,同时更改多个用户的描述
powershell
、
active-directory
Get-ADUser
testuser -Properties description | ForEach-Object { Import-Csv $csvFile |
Get-ADUser
-PropertiesSamAccountName -Description "ChgDescript,$($_.Descriptio
浏览 4
提问于2016-02-01
得票数 1
回答已采纳
2
回答
为什么不支持受支持的运算符?
powershell
、
active-directory
为什么
Powershell
说不支持受支持的操作符?filter_accountchanged = { (sAMAccountName -eq $username) -and (GivenName -cne $givenname) } if (
Get-ADUser
浏览 9
提问于2012-10-22
得票数 1
回答已采纳
1
回答
我们是否需要Active域控制器来运行任何
PowerShell
命令?
powershell
、
active-directory
、
azure-active-directory
、
windows-10
我正在尝试运行一个名为
Get-ADUser
命令的
Powershell
脚本。类似于这个问题我们是否可以使用Active Directory Admin的凭据来运行
Powershell
命令(如
Get-ADUser
)?
浏览 4
提问于2022-05-13
得票数 0
1
回答
在
powershell
中为AD相关命令设置默认服务器
powershell
、
active-directory
最近,我的
powershell
脚本需要显式地说明要连接到哪个域。是否有必要为每个命令编写此命令?或者我可以在脚本的开头设置它一次。而不是Get服务器的其他
参数
我可以在开头写一些类似于设置默认服务器来连接的东西吗?
浏览 11
提问于2022-11-08
得票数 0
回答已采纳
1
回答
VB.net和
powershell
变量
vb.net
、
powershell
最后,这一信息将需要简单地传递到
Powershell
,而不需要返回信息。不过,在此之前,我需要它检查打印机代码是否已经分配给某个人,然后才允许将其提交给其他用户。我为它编写了一个简单的
powershell
脚本。(我们使用寻呼机字段来存储打印机代码。)Import-Module ActiveDirectory
Get-ADUser
-Filter { Pager -like $Page } | FT Name 我设置了我找到的代码
浏览 5
提问于2016-11-08
得票数 1
1
回答
用C#/
Powershell
设置Active Directory“安全标识映射”/“名称映射”
c#
、
powershell
、
active-directory
我可以从
powershell
访问常规字段,比如电话号码,但我不知道如何设置这个字段。去这里的路怎么走?
浏览 2
提问于2012-10-22
得票数 2
回答已采纳
1
回答
Send-MailMessage :无法将'System.Object[]‘转换为
参数
'Body’所需的类型'System.String‘。不支持指定的方法
powershell
、
sendmail
我正在尝试使用
powershell
发送电子邮件。电子邮件的正文将包含我运行的
Get-ADuser
命令的结果,该命令存储在一个变量中。当我尝试下面的代码时,我得到错误消息"Send-MailMessage :无法将'System.Object[]‘转换为
参数
'Body’所需的类型'System.String‘。不支持指定的方法。$Value =
Get-ADUser
-Filter * -Properties propery.. | foreach { $_.propery..}
浏览 5
提问于2019-04-13
得票数 2
回答已采纳
1
回答
如何在服务器
参数
中使用域控制器
powershell
、
active-directory
使用
PowerShell
脚本,我将使用Get-ADDomainController命令获得一个有效的主机名,如下所示:在定义了我的凭据之后,我想在我的
Get-ADUser
命令的服务器
参数
中使用检索到的主机名: $User=
Get-ADUser
-Identity 'accountName' -Se
浏览 2
提问于2019-09-12
得票数 0
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
PowerShell 中运行 maven 参数无法识别
PowerShell系列(一):PowerShell介绍和cmd命令行的区别
Powershell And Metasploit(上)
PowerShell之Switch
Windows PowerShell 工具
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
云直播
实时音视频
活动推荐
运营活动
广告
关闭
领券