Tagged Questions
2
votes
1answer
859 views
Enabling Powershell Group Policy Exception via Command Line
I am trying to find a way to change Local Group Policy via command line. The change is to set Local Policy to enable "Allow Delegating Fresh Credentials" and set it to "wsman/*.domain.net" in ...
1
vote
1answer
938 views
Script to export to excel
I Have below script:-- looking for help to convert the output to excel format
$servers = get-content “c:\list.txt”
foreach ($server in $servers)
{
$server
$command = “quser /server:” + $server
...
1
vote
1answer
544 views
How to execute a PS script that uses remoting from C#
I have a series of fully functional powershell scripts that leverage remoting that I want to be able to call from a C# WinForm. Here's the code I have so far
private void button1_Click(object ...
0
votes
1answer
9 views
Enable-Psremoting remotely
i want to enable powershell remoting on other computer remotely . And remote computer require authentication. I tried to create a batch file which schedules a task executing Enable-Psremoting , ...
0
votes
1answer
114 views
How to get DatabaseCopies from MailboxDatabase programmatically in C# (wrapped ExchangeMangementShell cmdlets in c#)?
I am wrapping ExchangeManagementShell Cmdlets in C#, to programmatically execute cmdlets (Please refer to ...
0
votes
1answer
59 views
What Script I can use to install powershell on any machine?
What Script I can use to install powershell on any machine?
as I have some xp machine in network and wants to install remotely on those machine,
windows 7 , its by default
Also, how could I run any ...
2
votes
0answers
475 views
powershell remoting Win2008R2 “The WSMan service could not launch a host process to process the given request”
I've recently upgraded a number of servers from 2003 to 2008R2. Since the upgrade I've started to see the following error:
[servername] Connecting to remote server failed with the following error ...
1
vote
0answers
115 views
Executing PS Script within a Start-Job Scriptblock on W2K3 Fails
I'm trying to execute the scriptblock below. This works fine on Win 7 but never succeeds on W2K3. Job stays in a perpetual running state. Any idea why?
$Scriptblock = {
Add-Content ...
0
votes
0answers
12 views
how to increase efficiency of invoke-command using session to collect logs from remote computer in powershell?
how to increase efficiency of invoke-command using session to collect logs from remote computer in powershell?Its taking 1min 51sec for collecting 98k no. of logs for me.
i measured the performance ...
0
votes
0answers
48 views
Powershell - Need command to switch user from native domain to domain with admin rights
I am trying to log on to the Development Domain "abcdev.com" on the Server "SERVER" where I have admin rights, from the Powershell ISE on my local machine where my domain name is "abc.com" using the ...
0
votes
0answers
210 views
powershell - execute cmdlet remotely with php
I need to get status of service for simple monitoring tool. There is no problem to get status locally, but when I try to get status of service on remote computer like this:
<?php
$output = ...
0
votes
0answers
98 views
Get result from a remote call to msiexec using Powershell
I'm using Powershell on Win 2008r2 to make a remote call to msiexec as follows:
Invoke-Command -session $Session -ScriptBlock{param($arguments) start-process -FilePath "msiexec.exe" -Wait $arguments ...
0
votes
0answers
237 views
PowerShell cert provider - certificate friendlyname property missing
I have a few lines of PowerShell code that when I run, execute as I'd expect except the friendlyname property does not appear in the list of certificate produced.
When i run scriptblock code under a ...
0
votes
0answers
787 views
Powershell Enable Mailbox and then Get Mailbox statistics
I have a powershell script to mail enable an active directory user which works fine, however if i run Get-MailBoxStatistics it throws up an error that the object cannot be found on the domain ...
0
votes
0answers
207 views
Running Powershell scripts from C# in .Net 4.0
I need to build a .Net 4.0 solution which will be able to programmatically perform Powershell remoting.
I have Powershell 2.0 installed on my system.
I have been able to programmatically invoke the ...