PowerShellServer 2016

时间:2021-12-23 12:32:19
【文件属性】:

文件名称:PowerShellServer 2016

文件大小:2.83MB

文件格式:EXE

更新时间:2021-12-23 12:32:19

Server PowerShell

PowerShellServer2016 安装后可直接运行 # This example demonstrates how to generate an RSS feed from a call to the Get-ChildItem cmdlet (dir). # Check for user input $dir = $request['path'] if ( $dir -eq $null ) { $dir = 'c:\' } #Set the feed title and other basic feed attributes set-feedattr 'rss:title' "Directory listing for: $dir" ls $dir | %{ @{ 'rss:pubDate' = $_.LastWriteTime.ToString('R'); 'rss:title' = $_.Name; 'rss:description' = "Full Path: $($_.FullName)"; 'fullname' = $_.FullName; 'size' = $_.Length; 'directory' = $_.PSIsContainer; 'Mode' = $_.Mode; } }


网友评论

  • 谢谢楼主了