powershell : has anyone tried to install powershell on windows 2000 server?

4.6k Views Asked by At

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.

2

There are 2 best solutions below

0
On

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.

1
On

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