Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [powershell-2.0]

Microsoft’s command-line scripting language. V 2.0, which was introduced in Windows 7 and Server 2008, features remoting.

1
vote
2answers
576 views

How to start/stop service on a remote computer with an out of sync clock

I'm working in a MS Windows Domain. I'm trying to centrally (remotely) start and stop the W32Time service for a certain amount of time (to disable Time Server update e.g for two hours) then remotely ...
1
vote
1answer
1k views

Powershell 2.0 Enter-PSSession cannot get New-PSDrive working

I have a remote computer which I can Enter-PSSession successfully. When I execute: New-PSDrive -Name "G" -PSProvider Filesystem -Root '\\fileserver\apps\etc' I get the following error: New-...
0
votes
1answer
88 views

power shell + match exactly the first field and capture the second field after separator

we have the following file ( files.sum ) the first field is the name of the file the second field is the seprator the thired feald is the sum configuration.txt:2327432786 config.csv:458349573 ...
0
votes
1answer
151 views

Powershell command works from cmd but not run

I am trying to bind this command to a key (MS Keyboard Center): powershell -Command "(new-object system.Net.WebClient).DownloadFile('http://spotify.hum?command=play','test')" If I run this from an ...
0
votes
1answer
938 views

Powershell function with Parameters throwing null exception

This script is throwing a null exception and I am not certain why that is the case... Function StopServices{ Param ( $ServiceName, $Remoteserver ) write-host($...
0
votes
1answer
544 views

Cannot install Windows Powershell on Vista64

I am desperately trying to install Powershell 2.0 on my Windows Vista 64 system. I downloaded KB968930 like a hundred times but when I start it it always says that I cannot use it with my system. ...
0
votes
1answer
147 views

Powershell and group policy

Please help! I have created a "vbs" to call a powershell command to move computer account to a certain "OU". This failed because it can't call AD powershell module. So if i run the powershell in the ...
2
votes
0answers
257 views

Change State of Windows Update- Local Group Policy Editor without UI?

In windows server 2012,for this manual step how can i do from script, start>run>gpedit.msc>administrative Components>Windows>Windows update In that 1) Do not Display " Install ...
1
vote
0answers
1k views

copy file from a remote PC by means of Powershell using UNC Path

I need a way to copy file to local disk from a remote PC using Powershell v2.0, trying with admin rights of that remote PC. By means of below cmdlet we can copy a file: Copy-Item -Path C:\somefile....
1
vote
0answers
311 views

Powershell recursive filename read and rename

i have downloaded from my ftp server a directory tree using wget and forcing ascii encoding so now i hve a lot of folders and files names something like "foo%C3%BC" (some of the files/folders already ...
1
vote
0answers
2k views

Proper Powershell 2.0 installation on Linux with wine 1.7.29

Despite the bad rating on WineHQ I attempted to install Powershell 2.0 using wine 1.7 on Debian Jessie, and after a registry "fix", it runs without the previous startup errors. I had followed the ...
0
votes
0answers
34 views

Exclude server name containing Test

I have a script to extract list from vCenter on VMware Tools status daily as below. But It contains also Servers which was meant for Testing where its servers name contain Server-Name-TEST. How can I ...
0
votes
0answers
259 views

Powershell 'help' returns nothing

I am unable to get output when I run help... in Powershell version 2.0. Server 2K8R2 SP1. Get-Help... works as expected.