Quantcast
Browsing all 21975 articles
Browse latest View live

Store 1 Element in array

Hi everyone I have a script to check to see if it can ping a list of IPs. If it cannot reach 1 it stores it in an array. The problem is if only 1 IP is stored in the array it treats each char as an...

View Article


Issue with Pasting to Command Line/PowerShell

Hi,We are unable to paste text from an application other than Command Prompt (CP) or Windows PowerShell (PS) to CP or PS.The issue is only occurring on one of several Windows Server 2008 VMs.The server...

View Article


Run Blat from Powershell in Task Scheduler

I am running windows 7 and have a script that includes a blat command.  It works fine when run manually but won’t send the email when setup in a scheduled task.  Has anyone had success with this...

View Article

Exchange shell run in ISE?

I'd like to run all the Exchange tools in PowerShell ISE, what would I need to supply in my PowerShell startup script to make that happen?Thanks.zarberg@gmail.com

View Article

Using ChilkatDotNet2.dll to connect to sftp server in PS script. Fails when...

I didn't actually write this script and have no actual idea what ChilkatDotNet2.dll is, other then some kind of SFTP library.  The script uses it to connect to a server, and then authenticate the user,...

View Article


Invoking remote commands?

What server side components (Win2003, Win2008, Win2012) and permissions must be setup for invoking a remote command via powershell?ExampleInvoke-Command -computername $MyRemoteServer -command {}The...

View Article

Compine multiple variables into a single CSV

I am pulling two queries from Active Directory and assigning them to different variables. I'd like to combine these variables into a single $Output and export it to a CSV file. I'm running into 2...

View Article

Can multiple Powershell v4 DSC configuration objects be combined on a machine?

I'm working on configuring servers using Powershell Desired State Configuration (DSC). I have several different groups of IIS servers. The configuration for all of them is about 90% identical, but...

View Article


Change pwd for local user on remote machine?

Is there a way in Powershell to change password of a local machine user on a remote machine?  I forgot the local admin password and want to change it using powershell.thanks

View Article


Help installing PSCX on Hyper-V Server 2012 R2

I'm trying to install the Powershell Community Extensions 3.1.0 on a Hyper-V Server 2012 r2 box. I do not have remote desktop turned on, and I would really rather not turn remote desktop on. I tried to...

View Article

declare webservice variable types

Hi,How can I load the object types from a web service in Powershell?$url = http://wserver/v1.asmx?WSDL$ws = New-WebServiceProxy -uri $url -Namespace myWS$wsObj = New-Object -TypeName...

View Article

View text file contents from remote machine?

Is there a powershell cmdlet to let me look at a log/text file on a remote machine?thanks

View Article

Authenticating to clients in different domains with different credentials

Hello,  I'm having some trouble figuring out how to copy files from computers in multiple domains using credentials that exist in each of those domains.  Copying from the remote computer to my...

View Article


Get-RDUserSession in Powershell in pssession

I type command in Powershell Get-RDUserSession. I get all connecting user in terminal serwer.When I type this command in pssession I get error:Cannot index into a null array. At...

View Article

problem with the powershell pipline parameter process

Hi, I'm confused with the pipeline processing of object-property-parameter association.Here my Cmdlet example Function test-psboundbug{ [CmdletBinding(DefaultParameterSetName='Parameter')] param(...

View Article


Removing Self-Signed Certificates from Personal Store (Lync)

I believe a member of my team has a solution to the below but I wanted to weigh in on the PS forum area and see if there were additional thoughts.Short story, the Lync client self-signed cert is...

View Article

WMI Query on Remote Computer

Hi, I am trying query  namespace - root\ccm\clientsdk and class CCM_SoftwareCatalogUtilities  on a remote computer. This always returns null where as  I am able to query classes under root\ccm.  I am...

View Article


Remotely send message and shutdown depending on users response

Hi all I have a script that works fine on a local machine. It asks users if they want to shut down the machine. However I can't seem to get it to work remotely.$a = new-object -comobject wscript.shell...

View Article

user input validation

Is there tested PowerShell code available online that performs user input validation for a variety of needs (numeric, numeric in a range, alphanumeric, alphanumeric withing certain size limitations,...

View Article

how to get the results in one line

Hiif i use the script below i get the name of path and then : and in next line i get the results.is there a way to get the results from every path after the : and not in the next line?another question...

View Article
Browsing all 21975 articles
Browse latest View live