-
By Henrik Walther Written by Henrik Walther, Microsoft MVP, the intention of this blog is to deliver the best content when it comes to information, news, tips and tweaks for the Microsoft Exchange Server product on topics such as mobile messaging, MONAD, ... Read More
-
By patris1 In this article I will explain what remote PowerShell is and how this new feature makes it possible to manage Exchange 2010 servers within an organization as well as across multiple Exchange 2010 organizations using the Exchange ... Read More
-
I have the following code I use to try to change the settings on our servers from dhcp to static. It gets "hung" up on the enablestatic() peice, I know its because after it changes the ip it looses the connection but how do I get Powershell to either fork off this command or time out earler...
Posted to
Using WMI
(Forum)
by
adrian
on
02-27-2010
Filed under: WMI, Get-WMIObject, Remoting, Win32_NetworkAdapterConfiguration
-
I'm running the following script and everything works except the last command: #wsus-reregister.ps1 param ($computer) Invoke-Command $computer -scriptblock { $RegPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" $RegProperties = "SusClientID","SusClientIDValidation"...
-
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 almost have this working but I keep getting a security error. Here's the basic script: $instances = @{"FRITCHEYG1W7"="FRITCHEYG1W7\R208"; "FRITCHEYGW7"="FRITCHEYGW7\R208"} $job = Invoke-Command -ComputerName (Get-Content "c:\scripts\serverlist.txt"...
-
I have a C# application that issues commands and scripts (1 or 2 liners) to an Exchange 2010 through remote powershell (Configuration "Microsoft.Exchange"). I found two ways to do this - create a remote session and then (a) using InvokeCommand on that session with my scriptblock or (b) ImportSession...
-
Hi All, I am trying to run cmdlets from VB.NET. I managed to create a session to a remote session and to run either basic powershell commands or Exchange 2010 cmdlets. However I have a problem when trying to run more complex scripts, like "Get-Mailbox | Where-Object {$_.database -match "database"...
-
Hi, I'm using invoke-command to run script code on a remote computer. I have a file with a library of functions I'd like to pass into the remotely executed script, but I'm only getting the first line. The problem is something to do with my ArgumentList but I can't get one that works....
-
Hi, I have an exchange server (2007) that I wish to run powershell cmdlets against. However this exchange server is in a different domain. I have set up a trust, and can now execute remote powershell cmdlets on it. However, I can't run any Exchange Powershell cmdlets. I need this to work in a vb...