腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(5978)
视频
沙龙
2
回答
PowerShell服务-输出读取不正确
powershell
、
logging
、
service
、
output
$LogFile -append Write-Output " " |
Out-File
$LogFile -appendWrite-Output " " |
Out-File
$Log
浏览 2
提问于2016-01-13
得票数 0
回答已采纳
2
回答
简化基于Powershell的文件版本
powershell
、
powershell-2.0
, "|" |
out-file
$file(get-content $file) -replace '\|false\|', '|0|' |
out-file
$file (get-content $file) -replace '^"' |
out-file
$f
浏览 3
提问于2011-07-27
得票数 2
回答已采纳
4
回答
Out-file
格式
powershell
、
format
servicename = $service.name write-output "$server `t $servicename `t $state `t $startname is current" |
out-file
浏览 0
提问于2013-08-15
得票数 1
1
回答
在Windows dockerfile中,如何将ARG值传递给RUN命令?
windows
、
docker
、
environment-variables
、
args
c:\debug.txt" RUN "\"$TEST_ARG\" |
Out-File
c:\debug2.txt"RUN "\"${Env:TEST_ARG}\" |
Out-File<
浏览 53
提问于2021-08-30
得票数 1
2
回答
使用,如何直接删除";“或”“和"false”之间的所有字符串?
regex
、
powershell
、
replace
false;)' |
Out-File
-FilePath noo.csv -Force -Encoding ASCII;(Get-Content -Raw .\noo.csv) -replace 'true','' |
Out-File
noo2.csv; (Get-Content -Raw .false;)' |
Out-File
-FilePath noo.csv -Force -Encoding ASCII;(Get-Content -Raw .\noo.csv)
浏览 5
提问于2022-09-21
得票数 1
回答已采纳
1
回答
如何强制docopt只解析一个选项?
docopt
我试过这个变体: prog [-o | --
out-file
=<
out-file
>] <in-file> prog --version-o, --
out-file
=<
out-file
> Output file name [default: stdout].我期望docopt期望零或一个
out-file
选项,因此它给了我一个字符串,但是它可以接受两个或多个这个选项,并给我一个字符串列表值。 是这
浏览 4
提问于2015-06-03
得票数 0
回答已采纳
1
回答
调用特定的Powershell WMI对象属性
powershell
、
wmi
"=======================================================================" |
out-file
-append -filepath$LogFilePathwrite-Output "--------
浏览 1
提问于2014-02-17
得票数 0
回答已采纳
1
回答
删除Pester模拟函数
powershell
、
mocking
、
pester
mocking' { Mock
Out-File
'Text' |
Out-File
-FilePath $testFile It 'should be green' {
浏览 2
提问于2019-11-27
得票数 3
1
回答
Powershell作为脚本运行不起作用?
powershell
、
replace
、
find
、
backup
、
back
"$CurrentDate Content After we Replace in file: $_ `r`n" |
Out-File
$LogFile -Append -Force -Encoding$LogFile -Append -Force -Encoding UTF8 "`r`n*************************" |
Out-File
$LogFile -Append -Force -Encoding
浏览 2
提问于2014-09-16
得票数 0
回答已采纳
2
回答
简化PowerShell代码
powershell
[char[]](65..90)GC C:\Users\x\documents\Telephonebook.csv | %{$_ |
out-file
-filepath c:\users\aricci\documents\A.asp -append$_ |
out-file
-filepath\aricci\documents\C.asp -append ElseIf ($_.Sta
浏览 4
提问于2016-10-10
得票数 0
回答已采纳
1
回答
我有powershell命令,其中每个内容都需要插入到aexcel的单元格中
powershell
、
export-to-excel
、
powershell-3.0
嗨,我是Powershell的新手,需要下面的输出需要插入到excel书的单元格 systeminfo | findstr /B "Domain"Get-WmiObject -Class Win32_Productget-culture | format-list -property *get-wmiobject -class win32_logicaldisk $
浏览 21
提问于2021-09-03
得票数 0
1
回答
使用
Out-File
在文件名中有一个日期变量
windows
、
powershell
、
datetime
、
winapi
、
powershell-remoting
我正在尝试使用
Out-File
在文件名中有一个日期变量。但是,得到一个例外情况如下
Out-File
-FilePath "C:\output\$host-$EndDate.json
Out-File
: The given path's format is not supported.MaxValue) |
Out-File
-FilePath "E:\output\$serv
浏览 0
提问于2018-05-14
得票数 1
回答已采纳
1
回答
将CSV导入xml树的解析
powershell
、
csv
、
export-to-csv
、
powershell-ise
这个对于我的powershell体验来说是个棘手的问题。如果有人能帮忙那就太好了。$csvdata = Import-CSV 'file.csv' | /Texas/Bryan | Pond Anup| /Texas/Killen/ | Lake Snoopy<groups> <group name="Texa
浏览 3
提问于2016-09-09
得票数 0
1
回答
如何使用多个变量从Powershell输出
powershell
、
variables
我需要你在以下脚本上的帮助。在我们开始之前,我知道这不是最漂亮的剧本,我是一个初学者。 如何将其输出到一个CSV而不是每个变量的三个文件?($DomAdmins,$OrgAdmins & $Server) 脚本: #Module $Date= get-date -format "yyyy/MM/dd" $MA= Read-Host -Prompt "MA eingeben:" $Kunde= Read-
浏览 18
提问于2021-10-28
得票数 0
回答已采纳
3
回答
Powershell如何以递归方式从文件/目录中获取acls,还包括"[“或”"]“”
powershell
、
permissions
、
ntfs
Place Headers on out-put file$list | format-table |
Out-File
"C:\Powershell\Results\$filename"$datelist | format-table |
Out-File
-append "C:\Powershell\Results\$
浏览 3
提问于2013-12-18
得票数 3
2
回答
PowerShell捕获Git输出
git
、
powershell
、
logging
在我尝试使用
Out-File
之前,我研究过的许多方法都没有捕获任何输出。不幸的是,尽管这对我有多好,但我发现git push命令出了问题,使我无法捕获输出。. |
Out-File
$logFilePath -Appendgit commit -m "Some Relevantupdate message" |
Out-File
$logFilePath -Append git push origin $bran
浏览 11
提问于2017-11-17
得票数 6
回答已采纳
1
回答
使用Powershell和FTP上传JES作业并下载响应
powershell
、
ftp
、
mainframe
"open $FTPserver" |
Out-File
ftp.scr -Encoding ASCII$FTPpassword |
Out-File
ftp.scr -Encoding ASCII -Append"put &q
浏览 3
提问于2015-07-22
得票数 1
1
回答
如何将Get-WmiObject结果输入文件
powershell
、
powershell-2.0
、
get-wmiobject
我有一个PowerShell-V2脚本,我正在尝试运行。非常简单,我传递给它一个应用程序,它输出win32_process的结果。例如:$result = Get-WmiObject win32_process -Filter "$filter"write-host $result试图把它放入文件中会导致同样的结果。有没有办法
浏览 4
提问于2017-05-22
得票数 1
回答已采纳
6
回答
在脚本中使用重定向将生成unicode输出。如何发出单字节ASCII文本?
unicode
、
powershell
我正在使用生成一个帮助文件(.chm)。该项目是一个.shfbproj文件,这是XML格式,与msbuild的工作。$newFooter = "<FooterText>MyProduct v1.2.3.4</FooterText>"; %{$_ -replace '<FooterText>(.+)</FooterText>', $
浏览 2
提问于2009-11-10
得票数 23
回答已采纳
1
回答
从另一个power shell脚本返回
powershell
-filepath $filepath -inputobject $date -force -encoding ASCII -width 50
out-file
-filepath -Append-encoding ASCII -width 200
out-file
-filepath -Append -inputobject $brea
浏览 2
提问于2015-08-30
得票数 0
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Windows PowerShell进阶IO操作之写入
linode 服务器延迟测试 powershell脚本
Powershell And Metasploit(上)
从零开始手把手教你实现一个Virtual DOM
热门
标签
更多标签
活动推荐
运营活动
广告
关闭
领券