Quantcast
Channel: PowerShell General
Browsing all 10624 articles
Browse latest View live

Tracking events: http requests and Lync messages

Hello everybody.I'm wondering whether it's possible to track events without 3d party monitoring software. I know about WMI events, however there are two tasks impossible to handle with WMI. These are...

View Article


Conversion from REXX

Apologies if this has been covered, but I did not find anything on a search. I have a REXX script that takes an excel file and converts a linear set of rows to a horizontal format based on a user...

View Article


Add-Content vs Out-File

I've been extracting text from files using get-content then .indexof to find content I'm interesting in, and there are two commands which enable me to then create a text file as output: Add-Content and...

View Article

Code to share folder to everyone with full rights.

Please someone let me know PowerShell code to share folder to everyone with full rights, so that anyone can access that folder from network path.    Manually what I preper to do is add 'everyone' in...

View Article

Change Header Names in Export-CSV Script

Good afternoon, we have a script that runs at x period of time. Its job is to get a set of data from a SQL server then output that data into a csv file for distribution.The script is full operational...

View Article


onjects and methods

I am trying to move an email object from one variable to another.The first is $todays_email_msg.item($TodaysItemCounter)and when I type this in I get the email that I expected.The second is...

View Article

Extracting Data from XML

It has been a long time since I have posted here, but I'm stuck on a powershell/xml question.I've written a powershell script that reads in a lot of data from some cmdlets and generates an XML...

View Article

How to highlight a cell in Excel a certain color?

I found this code online and it works perfect.      $erroractionpreference = “SilentlyContinue” $a = New-Object -comobject Excel.Application $a.visible = $True $b = $a.Workbooks.Add() $c =...

View Article


Powershell.exe As Elevated?

I am running a command from the run line on the start menu, but when it runs the script, it says:Warning: To preform some operations you must run an elevated Windows PowerShell console.  powershell.exe...

View Article


can't delete a file

This code works when I run it against my local computer.  $packageID = Read-Host    remove-item c:\temp\tmp\remove\$packageID.*    remove-item c:\temp\tmp\remove2\$packageID.* The file $packageID.* was...

View Article

Create a log file?

I have a Powershell script I've written that "builds" a Windows 7 PC with all the accounts, apps, users, etc that we need.  Is there a simple way to create a log that lets you know all went okay?  For...

View Article

Add-Type -Path c:\scripts\validateMatches.dll failing.

I can get Add-Type -Path c:\scripts\validateMatches.vb to work with the script below but trying to reference the compiled version  fails. This script just adds a [ValidateMatches] type and is identical...

View Article

Remote powershell execution

I have a mixture of Windows 7 and XP machines that I need to setup to enable them as clients to remote execute a SQL SSIS package. The package and RDBMS is located on a Windows 2008 server. On the...

View Article


Run the batch file in remote system

I have batch file which is residing in the remote system (C:\RunJob.bat)   Batch file contains code to open notepad.exeRemote system name : RemoteSysLocal system name : MohanSysHow do i run the...

View Article

Getting latest file name from file and test

Normal 0 false false false EN-IE X-NONE X-NONEHello, Wondering if the below scenario is possible  I have a folder that contains flat files and are named in sequence 111,112,113,114 etc  Each day I...

View Article


I'm a bit rusty and need help.

You know the old saying, "You don't use it you lose it?"  Well I find myself in that spot.  I can figure out most of what I need but I'm finding it hard to remember how to parse through a list of items...

View Article

How to Find .Net Version Installation

Hi All, I would like to find which .Net Version is installed on a Computer. Could you please help me with a Powershell script on how can i get this Output.

View Article


convert Text to objects

My PowerShell skills are very limited and I was hoping to get some help.  I need to convert output text from a legacy CLI tool into objects so that I can better utilize Powershell's capabilities.  The...

View Article

Conneting to Exchange 2010 from win7(different domain)

Hello All,Client: Win 7 EnterpriseClient Domain:ds.swin.edu.auHost server: Windows 2008 R2 EnterpriseSever domain: ex.swin.edu.auExchange: 2010How do I connect to Exchange 2010 with powershell...

View Article

Get number of items in the 'Inbox' folder of mailbox

Hello,I need a script that will report on the number of mail items in the 'inbox' on our Journal mailbox for Exchange Server 2010. Thank you

View Article
Browsing all 10624 articles
Browse latest View live