腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(2988)
视频
沙龙
3
回答
如何将函数范围调整到某个模块?
该函数为
Read-Host
。当在'y'实例中调用时,我必须重写它才能返回module.psm1。谢谢。
浏览 11
提问于2022-06-14
得票数 3
回答已采纳
2
回答
在PowerShell中添加CSV文件
、
ITS3410\WEEK7\List.csv -Value '"Name","Address","City","State","Zip","Phone"' $list = @( $City =
Read-
浏览 2
提问于2021-03-04
得票数 0
回答已采纳
1
回答
为下一次读取主机调用设置硬编码输入
、
$var1 =
Read-Host
"Test" [...]我想从我的PowerShell脚本调用函数,并希望防止用户不得不输入任何值
浏览 3
提问于2021-01-07
得票数 2
回答已采纳
2
回答
Powershell脚本-文件化、日期时间和FTP
、
、
、
我要这么做:$InvDay = $(
Read-Host
"Enter day of month: "$InvMonth = $(
Read-Host
"Enter Month of Year: " if ($InvMonth){""} El
浏览 6
提问于2012-06-19
得票数 2
回答已采纳
2
回答
复制脚本,需要关于添加循环的建议
$Start =
Read-Host
"Do you have the relevant information for the migration?{Y/N)" $Source =
Read-Host
"Source Location" $SourceUser =
Re
浏览 15
提问于2020-03-10
得票数 0
回答已采纳
1
回答
参数不会与远程调用命令一起使用,-computername返回null
、
enter code here[string]$cname = (
Read-Host
"Computer Name?"),[string]$eventfilter = (
Read-Host
"What key word are you looking for?")' [string]$amount = (
Read-Host
"How man
浏览 1
提问于2017-10-06
得票数 0
2
回答
新ADUser错误
、
、
、
守则如下:$Name =
Read-Host
"Enter Firstand Last Name"$GivenName =
Read-Host
"Enter First Name"$EmailAddress
浏览 5
提问于2016-05-25
得票数 0
2
回答
添加新AD用户时出错
、
它看起来是这样的: New-ADUser -Name (
Read-Host
"User Name") -AccountExpirationDate 0 -CannotChangePassword 1 -ChangePasswordAtLogon 0 -PasswordNeverExpires 1 -Company (
Read-Host
"Company") -Department (
Read-Host
"Department") -Title (
Read-Host
浏览 3
提问于2012-10-16
得票数 0
回答已采纳
1
回答
PowerShell脚本将不会按顺序运行
、
$name =
Read-Host
"What is the user's first name or letter?" $t = $DisableUser$date = "$month/$day/$year&
浏览 0
提问于2018-04-27
得票数 0
1
回答
Powershell输入检查
Exit" Get-ADUser -IdentityAccountExpirationDate Write-Host "";
浏览 9
提问于2020-03-31
得票数 0
2
回答
Powershell检查类型为int和double
、
、
do{ if(!
浏览 0
提问于2012-12-04
得票数 2
回答已采纳
1
回答
Powershell读取-主机用户输入添加
、
我不知道如何处理
Read-Host
。: Write-Host 'Enter your email: '
Read-Host
| Out-File $CredsFile -Append
浏览 6
提问于2015-02-05
得票数 1
回答已采纳
2
回答
如何在Powershell菜单中创建洞察菜单
、
我想出了一个有用的小脚本来帮助监视和控制远程服务器上的服务: $srv =
Read-Host
'What is your ServerName?'$srvs =
Read-Host
'What is ServiceName?' `n1.
浏览 1
提问于2018-10-31
得票数 1
1
回答
新用户powershell get-service
、
、
、
Clear-Host 2 = process4 = multiplying anumber Snumber = 1
浏览 18
提问于2019-06-11
得票数 0
1
回答
Powershell,如何比较用户输入
、
、
当我使用具有相同输入(例如'1‘)的$Text1=
Read-Host
; $Text2=
Read-Host
; $Text1 -eq $Text2时,该一行的输出是"True“。然而,和 $Text1=
Read-Host
-AsSecureString ; $Text2=
Read-Host
-
浏览 0
提问于2019-01-16
得票数 2
回答已采纳
2
回答
将一组未指定的参数传递给函数并传递给cmdlet
假设我想要编写一个包装
Read-Host
的辅助函数。此函数将通过更改提示颜色,调用
Read-Host
,然后将颜色改回原来的颜色来增强
Read-Host
(出于说明目的的简单示例-实际上并不试图解决此问题)。由于这是
Read-Host
的包装器,我不想在函数头中重复
Read-Host
的所有参数(即Prompt和AsSecureString)。
Read-Host
Passthru Parameters Here }
浏览 0
提问于2014-07-28
得票数 3
1
回答
使用Powershell实现Netscaler自动化
、
、
netscaler-configuration- $NSAddress =
Read-Host
-Prompt 'Enter $NSAddress' `$NSPassword =
Read-Host
Write-Host "Begin Entering
浏览 40
提问于2019-06-18
得票数 1
回答已采纳
2
回答
PowerShell:禁用读取主机中的回波
请考虑以下示例:虽然这很好,但是每次用户在输入一个值后点击enter,下一行都会回显相同的值。快把我逼疯了。一定有办法去除这个愚蠢的回声?
浏览 5
提问于2016-12-23
得票数 1
回答已采纳
1
回答
来自CSV的Powershell读取主机输入
$dataset = import-csv -path $csvpath$SysName =
Read-Host
浏览 0
提问于2017-06-28
得票数 0
2
回答
Read-Host
能否过载?
、
在编写自定义PowerShell主机时,可以读取主机(即PSHostUserInterface.ReadLine)被重载以返回对象而不是字符串?
浏览 1
提问于2011-01-03
得票数 0
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
PowerShell命令更改/重置Win10本地帐户密码教程
热门
标签
更多标签
云服务器
ICP备案
实时音视频
对象存储
即时通信 IM
活动推荐
运营活动
广告
关闭
领券