Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Browsing all 6937 articles
Browse latest View live

The parsing questions made me think of something I'd like to see in PowerShell

I'm an old mainframe admin and I used to do a lot of REXX scripting in VM/CMS.  REXX has an amazing parse command that made it extremely simple to parse strings.It would be amazing if we could get this...

View Article


Script to delete users for AD and Exchange

I have this powershell script that is not running and I can not figure out why.  Can someone please help. cls$ExpiredUsers=Get-ADUser -Filter * -SearchBase...

View Article


Managing Kemp LoadMaster using REST API and PowerShell

If you are an application or a network administrator, you would have certainly heard about or even used load balancers. Load balancers are shipped either as hardware or virtual appliances based on the...

View Article

Returning Data from a Remote PowerShell execution in Orchestrator

A question came up this week internally about how to return data from a remotely executed script (a PowerShell script inside of a Run .NET Script object in Orchestrator 2012).Read More

View Article

Defining colors in a html style sheet

Below is a shorted version of a script I'm against my vCenter server. All I want to change is have it color some of the cells red depending on the $f variable.If any item fails the compliance check it...

View Article


how do you concatenate two variables in PowerShell?

I am starting a new thread on this since the last one had too many posts and was getting confusing.   $Inactive_Computer_OU = "OU=InactiveComputers,DC=Acme,DC=com"$TargetOU =...

View Article

Compare-Object for two CSV files

What I am trying to do is grab two csv files and compare the information and pull the data into a text file or Convertto-html. I would like to match or -IncludeEqual the id's and then out-file the id's...

View Article

More remote Group Policy Object settings and checking refresh status

Refreshing Group Policy Object settings across multiple computers can be a challenge, but there are a lot of ways to do it. In my previous article, we looked at how to remotely refresh Group Policy...

View Article


Image may be NSFW.
Clik here to view.

Using .NET Classes with Powershell

Hello all,I am starting to experiment with using .NET classes with Powershell but I lack understanding as to why this doesn't work:Add-Type -AssemblyName System$obj = New-Object...

View Article


POWERSHELL NOT working, but the result is saying OK

Hi I have a problem, the problem is that I am running a PowerShell script:$server  =get-ADComputer-Filter'Name -like "serv*"' | select name$server  | ForEach-Object {...

View Article

Pattern matching for a text file?

I have a text file with UEFI configuration data.  For the vendor, this is the only way to interact and write settings, such as the asset tag, which is what I"m trying to write.In vbscript, I'd just...

View Article

Runspace from C#

New to powershell.  I have a C# app that creates a runspace, creates some variables that are object within the C# app and then run some scripts that test the app.Is there a way to have a console...

View Article

Image may be NSFW.
Clik here to view.

Including Task result in the output

Normal 0 false false false EN-IE X-NONE X-NONEHi All, I am running this script on a daily basis and getting the correct output.  Is there any way of getting the below script to include the task...

View Article


Understanding COM objects in PowerShell (Working with Excel)

Hi all, Im trying to edit an excel doc in powershell and slowly getting there finding bit parts of solutions on the web, in the end it would be lot easier! and beneficial if i could work it out myself,...

View Article

Extract Text in tabular format

Hi this is log file in text format Info: 2013-10-27 23:37:58.74    Code: 0x4004300B     Source: extract SM ticket xref SSIS.Pipeline    ####!! the text between Source : and SSIS.Pipeline>...

View Article


Script to get mailbox size for users by department

I need assistant getting mailbox size for a group of users that belong to a specific department.  Does anyone know how to use the Department field as a parameter in a script.  Ideally I would like to...

View Article

Office 365 administration made easy

Going beyond Office 365's native admin GUI, 365 Command provides powerful Exchange admin capabilities without the need to run PowerShell. Read More

View Article


Powershell script to find file in most recent directory

I am trying to write down a script which can help me to get the lines from a file with previous date and to send those lines with a file via email. The trick is that i have to search in the latest...

View Article

Comparing two different object collections

Hello again all,I have two object collections:1. Collection of users using the Get-QADUser cmdlet2. Collection of users imported using Import-CSVI would like to take the collection of users from AD and...

View Article

Explain this to me like a child

Below is a section of a script someone else wrote and left me to clean up.I understand most of what it's doing except one part. If someone could break the entire section of the script down that would...

View Article
Browsing all 6937 articles
Browse latest View live