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

Exchange Powershell Tip #07

How to set Event Logging Level (Diagnostic Logging) on all or filtered Exchange servers in bulk?Read More

View Article


#PSTip Filtering a collection using comparison operators

Starting with PowerShell 3.0, it is possible to filter a collection for matching or non-matching values using comparison operators. For example, assume that I have a collection with four elements in...

View Article


break big file into multiple files

I have a directory with several log files with content similar to the one below. I need to create a PS script that can extract contents from [BEGIN] to [END] section of the log file and put them into a...

View Article

DomainRole

Hello,I understand this script, only one thing I am interested in and not fully understood, that is "domainRole" property. How can I examine this property if I would like to know the meanings of the...

View Article

PowerShell PSDrive In

Here are a few tricks that you can use in conjunction with a PSDriveRead More

View Article


Dynamic Parameters in PowerShell

Has there ever been a time when you wanted to call a function or cmdlet with specific parameters that were based on conditional criteria that is provided? As an example: if a user requests your cmdlet,...

View Article

Create an Azure Image from an Existing Virtual Machine

Q: How can I create an Azure image from an existing IaaS virtual machine?A: You can use PowerShell to capture an existing virtual machine, including its entire disk configuration (i.e., if the machine...

View Article

Powershell Script. Where am I going wrong?

Hi folks,I am working on my first powershell script.  The goal of it is to parse a URI, pick-out all valid IP addresses, and write a UTF8 w/o BOM encoded file containing just the IP addresses to a...

View Article


Need help with regex

I have files with content similar to one below:SN1,Column2,Column3;SN2,Column2,Column3;SN3,Column2,Column3;SN1,Column2,Column3;SN2,Column2,Column3;I need to create a PS script which will perform some...

View Article


Call function from function

helloI am developping a function for create a generic Form. In this I handle callbacks i.e. some controls can have an associated function called when an event occurs.One script contains the form...

View Article

Powershell ACL Rights on Extraction of Creator Owner

Hello Guys.Any help would be appreciated.I've been assigned a task to extract the creator owner of shared folders on a window server 2003 platform.For days , i've been searching through the web...

View Article

Check for logged in user and log user in if not found?

Hi All, I'm new to this forum and new to powershell, so forgive me if any of this is redundant or not possible. We're in a situation where we have two applications that actually require the service...

View Article

SSAS Cube Annotations

Hi,   as you know that each SSAS database Cube has Annotations objects that contains things like, comments, list of SQL table names for mapping and lots of other objects, best way to see them is...

View Article


user credential prompt

Hi , I have this script to change user password . One user has multiple admin account . So try to change password from powershell script. Here my question is is there any everytime script prompt for...

View Article

Test-Path from a list

This should be fairly easy and i did similar with test connection. I have a list of home drives, that were established in AD.90% have this set but the folders do not exist. I used $Test = get-content...

View Article


PowerShell Desired State Configuration Takes on Linux

Microsoft continues to invest in PowerShell, its command-line shell and associated scripting language. PowerShell Desired State Configuration (DSC) can now manage Linux boxes.Read More

View Article

Execute PowerShell Scripts in Scheduled Tasks using Sitecore PowerShell...

At the Sitecore User Group Conference 2014, I demonstrated how to invoke PowerShell scripts in a Sitecore Scheduled Task using Sitecore PowerShell Extensions, and felt I should pen what I had shown in...

View Article


Sitecore PowerShell Extensions

The module provides various PowerShell Tools & Extensions (Console, Integrated Scripting Environment & plugs into various Sitecore pipelines) allowing for scripting within the Sitecore Desktop...

View Article

Install software with powershell

Hi All,I am trying to build a script which would install some softwares one  after the other. As the exe's cannot be tuned to use with powershell, I am using something like this, invoke-expression,...

View Article

Not able to fetch value in properties file

Hi All, i have a file as...

View Article
Browsing all 6937 articles
Browse latest View live