powershell :有人尝试在 Windows 2000 服务器上安装 powershell 吗?

发布于 2024-07-12 04:32:53 字数 194 浏览 7 评论 0原文

有人尝试过在 Windows 2000 服务器上安装 powershell 吗? 我意识到它不应该安装在 Windows 2000 服务器上,因此不受支持; 然而,其上运行的 vbscript 需要 3.5 天才能完成,而 powershell 可能会在更短的时间内完成。 尽管如此,我注意到它只需要 .NET 2.0 即可运行。

提前致谢。

Has anyone tried installing powershell on a Windows 2000 server? I realize its not supposed to be installed on windows 2000 server and therefore not supported; however the vbscript that runs on it takes 3.5 days to complete which powershell could probably finish in lesser time. Nevertheless, I noticed it just requires .NET 2.0 to run.

thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦境 2024-07-19 04:32:54

是的。 这有效。 无需在服务器上安装 Powershell,只需远程与其对话即可:-

Set-Location "\\MyServer\D$\wwwportal\MyChangedFileFolder\" 
Get-ChildItem -filter *.txt -Recurse

Yes. This works. Instead of installing Powershell on the server, just remotely talk to it like :-

Set-Location "\\MyServer\D$\wwwportal\MyChangedFileFolder\" 
Get-ChildItem -filter *.txt -Recurse
埖埖迣鎅 2024-07-19 04:32:53

如果您对相关 Windows 2000 服务器具有管理员访问权限,您可以在同一域中受支持的计算机上运行 PowerShell,并使用 set-location 将工作目录更改为远程服务器,

cd \\remoteserver\<drive>$\path\to\folder\you\want\to\start\in

然后您可以在该服务器上运行您想要的任何 PowerShell 脚本。远程目录。 如果您开始的文件夹是共享的,那就更简单了(您不需要访问管理共享)。 或者,您可以使用链接到目标目录的 PowerShell 映射计算机上的驱动器。

这可能是比在不受支持的计算机上强制安装更顺利的选择。

If you have administrator access to the Windows 2000 server in question, you could run PowerShell on a supported machine in the same domain and use set-location to change your working directory to the remote server

cd \\remoteserver\<drive>$\path\to\folder\you\want\to\start\in

You could then run whatever PowerShell script you want on the remote directory. If the folder you are starting in is shared, it is even simpler (you won't need to access the admin share). Or you could map a drive on your machine with PowerShell that links to the target directory.

This might be a smoother option than forcing an install on a non-supported machine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文