Quantcast
Channel: Windows PowerShell Forum
Browsing all 2562 articles
Browse latest View live

helps to add if in script

I havea script that shows the size of folders,and want to filter somehow i choose the size of the folders that appear, for example larger than 1Gb folders only. follows script...

View Article


Copy Documents between Sharepoint 2010 Libraries

I'm trying to copy files from one Sharepoint 2010 document library to another in the same site $web = get-spweb "someurl" $list = $web.lists["Plans"] $items = $list.items foreach($i in $items) {...

View Article


Need to create a powershell script that creates exchange mailboxes for...

I believe I need an "Enable-mailbox" script , but I would like to import the users from a CSV file. The AD accounts are already created. Which fields do I need in the CSV file? Thanks,ExchangeGuru

View Article

Create a bulk user import using a CSV file ...issues with script

I apologize I am new to PowerShell. I have been working on this for 3 days now and at my wits end. I have a csv file with the following headers "GivenName" "FName" "Surname" "password" My script seems...

View Article

PowerShell GUI creation tools

Which ones do you like, what are it's best qualities.   How does it compare against others you tried. http://social.technet.microsoft.com/wiki/contents/articles/4579.powershell-guis-en-us.aspx I use...

View Article


Match results

I use the following (with another pattern of course)  to match filenames in a directory. $test= gci "c:\" | Select Name | Select-String -Pattern ".*"   As a result i get matchinfo-object like this:...

View Article

Powershell V3 is RTM

Download at http://www.microsoft.com/en-us/download/details.aspx?id=34595[string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775...

View Article

How to monitor exchange services that are automatic and not running across...

Just getting into Powershell and I'm trying to set up a quick script to display exchange services that are set to start automatically across all of the exchange servers in the environment.  So far I...

View Article


suppress warnings from remote powershell sessions

I'm trying to write a basic Powershell script to be used by our helpdesk.  It simply uses a remote Powershell session to our Exchange server and does a 'get-user' cmdlet as well as get-mailbox and...

View Article


Help with: Invoke-Command -ComputerName Server2 -ScriptBlock {Start-Process...

I've spend a good while reviewing other posts but haven't seen anything that helps me really. Eventually I would like to learn how to kick off other app remotely, but first I need to learn how to...

View Article

Out-file strange format

I have written a small simple script to login to an FTP server as follows $GenericFTPFile = 'c:\ftp.txt' $FTPCMD = 'ftp.exe -i -s:' $BuiltFTP = $FTPCMD+$GenericFTPFile $FTPServer = "ftp.rsc-dev.org"...

View Article

PKI Get-IssuedRequest problem

Here is very simple script but it does not work correctly. Variable Request.RequesterName is empty. Of course it has value and I can see/debug it but some reason it missing from output. Can anyone help...

View Article

Add attribute value based on user`s group membership?

Hi, I am going to use a special attribute for users. I am looking for powershell script which would add that special attribute value to a user account once user is added to security group. Any idea...

View Article


Is there any good way to keep operation log of Powershell ?

I will do mailbox migration and plan to use Powershell. I would like to keep operation log of Powershell for evidence and I would like to see the result of cmdlet. Is there any good way to keep...

View Article

column sort order

When I use Export-csv to output object properties to a .csv file, how can I specify the column order? 

View Article


How To Stop Windows Services Using Result From XML File

Hi, I'm trying to parse xml files in a directory with the following script.  For example, in the xml i have data that looks like the following called service.xml displayName="blahblahblah"...

View Article

invoke-expression problem :-)

Hi, My script is running the windows ftp client but after it completes its not following on with the next section, instead its getting stuck in FTP.  It's supposed to run   remove-item $GenericFTPFile...

View Article


Image may be NSFW.
Clik here to view.

Delete files older than 1 day script not working.

PS newbie here.  I'm trying to run the below text that I found online.   I copied some files from another folder into the path, and then I run this script.   Basically, it doesn't work.....the files...

View Article

Path tool long when using arrays

Hey Powershell people. I'm running into an array issue in powershell where the error "Copy-Item : The specified path, file name, or both are too long" is thrown back at me. However, the odd thing is if...

View Article

Enumerating IIS:\SSLBindings gives failure on one machine, works on another

Hi, I'm struggling to find the correct forum for this question, but as I'm working on a PowerShell script this looks like the one that's closest to my issue.   The following issue occurs. I have a...

View Article
Browsing all 2562 articles
Browse latest View live


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