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 ArticleScript 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 ArticleManaging 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 ArticleReturning 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 ArticleDefining 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 Articlehow 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 ArticleCompare-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 ArticleMore 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 ArticleUsing .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 ArticlePOWERSHELL 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 ArticlePattern 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 ArticleRunspace 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 ArticleIncluding 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 ArticleUnderstanding 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 ArticleExtract 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 ArticleScript 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 ArticleOffice 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 ArticlePowershell 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 ArticleComparing 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 ArticleExplain 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