我通过 Powershell 创建了一个名为“MyUser”的用户帐户,活动目录中的图标图形与我通过 UI 创建的用户测试的图标图形不同。
UI 生成的用户没有没有向下箭头的图标。
我正在创建 20 多个 IAM 用户,我想为他们启用虚拟 MFA 设备。有什么方法可以让我一次性完成所有这些任务,或者有什么方法可以自动执行此任务?我想强制所有 IAM 用户使用 MFA,如果没有设置,他们就无法继续。
此问题是对另一个问题Powershell 无法从 Active Directory 检索 pwdLastSet 中的评论的衍生
这是我尝试像这样调用函数的地方:
Get-PwdLastSet('grz')
Run Code Online (Sandbox Code Playgroud)
我收到以下提示,我非常感谢:
...首先,不要使用括号 ( ) 在 PowerShell 中调用函数(它在语法上是有效的,但在语义上是错误的)。执行该函数的正确方法是 Get-PwdLastSet grz ...
我得到它。但我想问 - 为什么会这样?那么括号是什么意思呢?
在基于 VMWare vSphere 5.5 Windows 的环境中,任何身份验证尝试都会失败(需要一些时间)。
日志提到了如下几行:
ERROR [IdentityManager] Failed to find solution user
by subject DN [1.2.840.113549.1.9.1=#1612737570706f727440766d776172652e636f6d,CN=localdomain.local,OU=VMware\, Inc.,O=VMware\, Inc.] in tenant [vsphere.local]
ERROR [ServerUtils] Exception 'java.lang.IllegalStateException: More than one solution user found'
Run Code Online (Sandbox Code Playgroud)
可能是什么原因?
一台 Jenkins 1.651 master 和 slave 已经安装在 Windows Server 2012 上。 slave 专用于运行 Selenium 测试,但大部分时间它会离线:
Build step 'Execute Windows batch command' marked build as failure
ERROR: slave-tester is offline; cannot locate jdk7
Run Code Online (Sandbox Code Playgroud)
和
Apr 20, 2016 2:20:05 PM INFO jenkins.slaves.DefaultJnlpSlaveReceiver handle
Disconnecting slave-tester as we are reconnected from the current peer
Apr 20, 2016 2:20:17 PM WARNING org.jenkinsci.remoting.nio.NioChannelHub run
Communication problem
java.io.IOException: An existing connection was forcibly closed by the remote host
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(Unknown Source)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown …Run Code Online (Sandbox Code Playgroud) 有人可以发现尝试从某些用户的 Active Directory 中提取 pwdLastSet 的 Powershell 命令中的错误吗?
\n\n对于某些帐户,它有效:
\n\nPS C:\\> get-aduser -filter "name -like \'Admin*\'" -Properties pwdLastSet | Select -first 1 name,pwdLastSet | format-list\n\nname : Administrator\npwdLastSet : 131254235816382539\nRun Code Online (Sandbox Code Playgroud)\n\n对于某些人来说则不然:
\n\nPS C:\\> get-aduser -filter "name -like \'G*Ol*\'" -Properties pwdLastSet | Select -first 1 name,pwdLastSet | format-list\n\n\nname : Grzegorz Ol\xc4\x99dzki\npwdLastSet :\nRun Code Online (Sandbox Code Playgroud)\n\n\n\n该问题始终影响多个帐户,因此我怀疑有些东西我根本不明白。
\n