如何在 PowerShell 中进行模拟?我可以使用advapi32.dll LogonUser ,但也许有更简单的解决方案?
最佳答案
您可以使用上述方法,具体来说,PowerShell Get-Credential 方法对我有用。另请检查 Secure-String 方法,使您能够获取凭据信息并使用密码信息。
关于Powershell 模拟,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/742417/
如何在 PowerShell 中进行模拟?我可以使用advapi32.dll LogonUser ,但也许有更简单的解决方案?
最佳答案
您可以使用上述方法,具体来说,PowerShell Get-Credential 方法对我有用。另请检查 Secure-String 方法,使您能够获取凭据信息并使用密码信息。
关于Powershell 模拟,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/742417/