Quantcast
Channel: Windows PowerShell forum
Browsing all 21975 articles
Browse latest View live

Invoke-Command fails to run command when used with Start-Process

I have a PowerShell test framework which works like this: 1. I have several test scripts. Within each script I use Invoke-Expression to call various commands/executable-binaries. I also ensure that I...

View Article


Windows CE 7 / Powershell

Hello. i want to know if it is possible for Windows CE 7 to run Powershell ? I would like to use Powershell onto Windows CE 7. Regards,

View Article


invoke-expression and passing variables (local computer no remote session)

Newbie here on PS… Here’s the sample code… $a = “Litware” $cmd = “.\$a.helloworld.ps1” Invoke-expression $cmd Fails with “….the term ‘.\litware.helloworld.ps1’  is not recognized as the name of a...

View Article

Send to multiple recipents somehow still not work

Hi guys!I'm using this script: http://crashmag.net/windows-server-backup-powershell-scriptI'm trying to send message to multiple recipents.If I put [String[]]$emailto, it still does not helps.Any hints...

View Article

Powershell command to delete subfolders of a type: DAY-MONTH-YEAR

Greetings!I have a script which makes backups using Windows server backup. A script creates a folder DD-MM-YYYY and put the backup into this folder, soo every next day it creates a different folder...

View Article


Powershell -Replace with wildcards

Hi all,I want to write a powershell script that updates only part of a UNC path. The path may vary and the last directory in the unc always starts with the same name but has a different 3 letter code....

View Article

Psexec in Powershell Question

 Hello All,If I wanted to run two netsh commands in the context below, what would the syntax for that be, if possible? I've tried a few different things, but I can't seem to get it to work. I'd rather...

View Article

Use Powershell to check whether and AD user exists

We're trying to clean up roaming profile folders, and as part of the task I need to check whether the user actually exists in AD.  I have tried 3 different methods and so far none of them work.Either...

View Article


Public Key for elliptic curve encryption

We need to encrypt some data and would like to do so using PKI with an elliptic curve based certificate. When we create a certificate and look at it using RSA, we get the following: $CBytes =...

View Article


Run Powershell script as Scheduled task, that uses Excel COM object

What am I missing here.. I have  Powershell script that uses the Quest AD cmdlets to get computer information from AD and populate an Excel spreadsheet with the data.The script works fine, so I created...

View Article

Find out what primary dns server is being used by powershell in the domain?

I need a powershell script to display the both the pirmary and secondary DNS enteries in the entire domain withouht having to specify a list of server names.Is there anyway to do this?

View Article

copy/move/append to file name

I have a process in place where another department recieves faxes and then copies those faxes into a fileshare that my dept. manages.  On our side of things we consider this share as the "Source"  we...

View Article

Problem executing Powershell from Excel VBA

I am writing a vba script to execute a Powershell Script multiple times, based on an active directory group.  When I open powershell  1.0 by itself (even not as administrator) I can run the script just...

View Article


to run exe on multiple windows servers

Hi All,I need to run chkcpu32.exe on around 110 servers and get output in txt fileI know that i can give all 110 server in txt file and use Get-content to read that.someone please help me know how to...

View Article

Find All Disabled user Accounts & Hidden from the address book

Dear Allwe are running windows server 2003 Active Directory and exchange 2007 servers. I'm looking for a powershell script to find all users with smtp address hidden from the address book and disabled...

View Article


How to do pagination in powershell when it is called from c#?

Hi All,I using powershell script in c# to get list of mailboxes in Office 365, then display the details in datagridview.I see big delay in retrieving detail from Office 365 and load it in datagridview....

View Article

Inventory and after delete specific computer certificates

Hi,I´m trying to inventory certificates from around a 1000 computers. Afterwards I need to delete a certificate which is enrolled from a specific CA.How would you run the below, this works good locally...

View Article


Importing from csv and Exporting to csv in Powershell to query AD

Hi,Here's the story, i have a csv file that has close to 10000+ users listed in AD. The csv file has their name and title. (EX: Doe John, Manager)I'm trying to see if it's possible to query AD for the...

View Article

Image may be NSFW.
Clik here to view.

Lync Powershell error

Hello All,I want query Lync server througth powershell from another server and I have errors.If I run this script I have results.When I try to run another command I have error :And if I run the same...

View Article

TimeOut for Msxml2.XMLHTTP object

Hi I am creating a request object using Msxml2.XMLHTTP in powershell like this:$request = New-Object -ComObject Msxml2.XMLHTTP When I send the request using $request.Send(arguments) it works fine but...

View Article
Browsing all 21975 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>