简体   繁体   English

PowerShell:如何将字符串作为字符串从命令行传递到PowerShell脚本

[英]PowerShell: how to pass , as a string from command line to a powershell sciript

I have a powershell script Process-OU.ps1 to which I need to pass an argument -OU dc=LON,dc=NOM. 我有一个Powershell脚本Process-OU.ps1,我需要向其中传递参数-OU dc = LON,dc = NOM。 How can this be done? 如何才能做到这一点?

像这样:

 .\Process-OU.ps1 -OU "dc=LON,dc=NOM"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM