-
Hello, I don't know if there are some differencies CTP3 and the last version. follow this link to get the last version of powershell V2 and winRM for XP http://support.microsoft.com/kb/968929 You need yo uninstall powershell on your workstation and install the Windows Management Framework 2.0. test...
-
When you go to Software (Add or Remove Programs), you need to check "Show updates" (or adequate option in German) to see an entry for PowerShell 1.0. PowerShell 1.0 is installed as a hotfix (KB926139 (English installation package) / KB926140 (Localized installation package). I'm not sure...
-
Hi there. I want to write a script that scans an SVN working copy file by file and pops out those files that have a certain SVN property set, such as svn:mime-type = application/octet-stream. I then want to do SVN-related things to these marked files, such as adding, removing or editing the SVN properties...
-
I'm writing a cluster resource script that is checking the cluster resources, which node they are on and node online/offline status Right now I'm stuck in the output part, in the pipe I have the following data: clusterresource1 node1 online clusterresource2 node2 online clusterresource3 node3...
Posted to
General
(Forum)
by
Ironbone
on
05-20-2010
Filed under: PowerShell, Output, powershell 1.0, powershell 2.0
-
With the following code I have one variable definde as $x for the ok. I would like to add User_name for the variable $u, this would be the second. Not sure what part can be duplicated and how to insert the variable for the OK button click. So both texted entered would be passed on to the next part of...
Posted to
General
(Forum)
by
Redmars
on
06-17-2010
Filed under: User name, Add Custom Properties, powershell 2.0, GUI
-
Hi, When I try to map a drive locally on "Client1", it works fine with this command: New-PSDrive U -PSProvider FileSystem -root \\Server1\C$ but when I try it remotely, it fails ($cred is a previously created credential): Invoke-Command -ComputerName "Client1" -Credential $cred -ScriptBlock...
Posted to
PowerShell v2
(Forum)
by
kevsor1
on
07-15-2010
Filed under: PowerShell v2, PowerShell, Remoting, PowerShell 1.0, New-Object, Enable-PSRemoting, Enter-PSSession, Remote Commands, Get-WSManCredSSP, PowerShell 2.0, Enable-WSManCredSSP, New-PSDrive
-
I have to call a PowerShell script from outside PowerShell (using a batch file). How do I read the exit code returned by the script after accessing a remote system? C:\gdp>powershell Get-Content ./test15.ps1 param($name) Get-Process -Name $name exit 82 ----- Example 1 (local): C:\gdp>powershell...
Posted to
General
(Forum)
by
rockstar
on
09-16-2010
Filed under: Scripting, Remote host, remote, Command Line Script Execution, powershell 2.0
-
I'd use Try-Catch like this: Try { copy-item Server1\folder1 -destination server2\folder1 -verbose -PassThru } Catch { Write "Error: copy-item: $_" >>logfile.log} If copy-item fails, it will write "Error: copy-item: <errormessage from copy-item>" to the logfile. If...
-
Hi, I have a Windows 7 64-bit Professional N laptop, on which Powershell 1.0 is installed (The Powershell install path on my system is "C:\Windows\System32\WindowsPowerShell\v1.0", and so I'm assuming it is Version 1.0). I had always heard that Windows 7 comes with Powershell 2.0 already...
-
Hi everyone, Can anyone help me to modify this script to show the source IP address ? because at the moment it is only showing the target IP address and hostname. Test-Connection server1,server2, mail -Source prodclient01,prodclient02 -Count 1 | sort Destination | ft -AutoSize Thanks.