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

Creating a log of emails sent?

Hey all,So I'm using the following script to get a list of users who's accounts are about to expire and send them a notification email.  It works fine, but I'd like a log of all the emails that have...

View Article


merger 2 arrays powershell

i have 2 arrays with the following data:$users = 'userx','userb','userc','userd','usere'$ids = 1,2,3,4,5I would like the result to look like this:userx 1 userb 2 userc 3 userd 4 usere 5Any...

View Article


Install application through powershell

I need to install application (MSI Package) on a remote server through powershell, could someone assist me.Ganapathy

View Article

Moving a directory from a server to a share

I need to move all the subfiles & folders of C:\Documents to \\NetworkShare\DocumentsShare using a script.What is the best way to do this?I understand I can use Move-Item cmdlet.Or the below set of...

View Article

Image may be NSFW.
Clik here to view.

Table formatting in a Word document created with PowerShell

I am using Powershell to create a Word 2010 document that contains a table.  Everything is working great, except that I want to change the height of the rows to eliminate the white space that is...

View Article


Windows Management Framework 3.0 and PS Remoting

Hello, after upgrading my Windows 7 x86 clients to WMF 3.0, I can no longer PS Remote to those machines (using Invoke-Command or Enter-PSSession).  The same update, applied to Windows 7 x64, does not...

View Article

Get-Content question

I am trying to resolve files that a specific number of entries in order to move them elsewhere or to call a function. If I split get-childitem and get-content up, I can accomplish my task. I would like...

View Article

to move files and rename if needed

Hi,I would like to automate moving files from one machine to another using powershell that seems to be easy to accomplish by Move-Item, but I need to use Rename-Item as well in case a file with the...

View Article


How can I -replace a value in quotes after a phrase with regex

Hi,I'm working on a powershell script to clean password information from files before making them available to people but I'm having some trouble figuring out how to match a certain type of string.So...

View Article


using exit & using -windowstyle "hidden"

Okay, I have two questions today. We will start with "exit". Exit does not work the same in powershell as it does in batch, as I'm sure you all are aware. I run my script and the prompt stays open. I...

View Article

Executing PowerShell script via JAVA

Hi,I have simple powershell script as below :# Filename: Hello.ps1Write-Host Write-Host 'Hello World!' Write-Host "Good-bye World! `n"# end of script I wish to run this script via JAVA by the below...

View Article

Create HTML report

I would like to create nice HTML report using powershell. Could someone share good website/Video/PDFThanks!

View Article

CredSSP in IIS context

I am running C# code which has PowerShell Script in it. It is a webservice and runs inside IIS context. This code uses CredSSP to avoid double hop problem, as it is trying to call a remote EXE on other...

View Article


Finding and then hiding users from GAL

Hi All,I'm afraid I am in need of some assistance with a powershell script I am attempting to create for my organization. I have been trying various things but unable to quite get my script to work...

View Article

Open an inserted object in MS Word with PowerShell

Hello, I have an MS Excel file inserted as object and displayed as icon between paragraphs of word document. What I want to achieve, is to use GoTo->Object function in PowerShell to navigate to MS...

View Article


Get IIS logs,ULS and Event Logs using powershell with Date and level(critical)

Hi Team,How to Get IIS logs,ULS and Event Logs using powershell with Date and level(critical).Regards,DevendraMCTS,MCPD Sharepoint 2010. My Blog- http://www.sharepoint-journey.com If a post answers...

View Article

Won't use .NET 2.0 CLR?

I am trying to run a script against SharePoint 2007 which works well on other systems, but one system keeps giving me an error:PS C:\Windows\System32\WindowsPowerShell\v1.0>...

View Article


Tracking user/computer usage

Hello,We have users travelling all over the state logging into different machines in different VPN offices in our '03 AD domain.  At times I have been asked to get things like the Internet History for...

View Article

get-winevent has no message data when using Powershell 3 ?

Hello, please see this post I made here in may,http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/327b9fcc-dadb-4f71-9f85-71e4d3138c00I updated a couple of server 2008 R2s to...

View Article

!UPDATED! How do i set the "connect as" attribute in IIS 7.0 /7.5 (and...

more information, when using get-item i see the values i want to change:userName                   : USER@DOMAINpassword                   : THEpASSWORD---------------------------------------------PS...

View Article
Browsing all 2562 articles
Browse latest View live


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