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

Inject PowerShell Goodness into Forefront Identity Manager

Managing digital identities is easy enough using Forefront Identity Manager (FIM), but what if you want dig in and geek-out a little more and automate many of the tasks?Read More

View Article


Is there a way to pull number of e-mails sent\received from a particular Ad...

Good day everyone, I have a bit of a problem hopefully someone can help me here. I have a domain ABC.com with several Ad forests. Is there a powershell script that can distinguish users from a...

View Article


Getting the Windows Azure PowerShell Cmdlets

I’m a big fan of using the Windows Azure PowerShell cmdlets for managing my Windows Azure resources.  They’re incredibly helpful, especially when I need to repeatedly take care of multiple tasks.There...

View Article

Getting Started with Azure Hybrid Cloud Powershell | Window to the Private...

Leveraging the power of Powershell, its easier than ever for an EMC customer to leverage their on-premise investment in Hyper V and EMC VNX, say, and the power of Microsoft's cloud offering, Azure....

View Article

Image may be NSFW.
Clik here to view.

RegEx Tip, Replace String set number of times

AllHere is another quick tip, last one lets say you have a string "AA124BB55HH657AAR555" now you want to replace the numbers (but only where there are 3 numbers together, not just 2) with say a #...

View Article


Exporting HashTable/OrderedDictionary to CSV : (Key: Row1; Value: Row2)

Exporting HashTable/OrderedDictionary to CSV : (Key: Row1; Value: Row2)Desired Output:| col1  col2    col3 col4   ...... +--------------------------------------------  1|LDClass  LDName  LDNoSDClass...

View Article

Search registry DATA and get output KEY NAME?

Can we write powershell script to enter DEVID DATA and we will get an output of Key Name location?Like searchpath.ps1 06FDWhere VALUE "MatchingDeviceId" = DATA "ven_10de&dev_06fd"and get output:...

View Article

Comparing multiple text files

Hi folks,I have three text files (some output logs, lets name them for example: log1.txt, log2.txt and log3.txt, every row in every file begins with: "\" and ends with: ";". These files have a lot of...

View Article


Image may be NSFW.
Clik here to view.

Navigate through IE

Hello,I am very new to powershell and have little clue on exactly what I am doing. I am trying to navigate through a webpage but I am having some difficulties. The html code calls a lot of javascript....

View Article


If file exists, copy specific text from source file to file that already exists

I want to start by saying sorry if this question has already been asked, and if it has been asked in a better way!  I've been searching all day but just can't find the answer.  I'm also new to...

View Article

Powershell and Scheduled task

I've a command file that starts a powershell script. This command works fine when I run it in a command box on a windows 2008 R2 server. I can see it because it create a log file.When I add this...

View Article

Implementing Hadoop Rack Awareness with Powershell

Hadoop divides the data into multiple file blocks and stores them on different machines. By default all machines are deemed to be on the same rack and thus if rack awareness is not configured there the...

View Article

Module confusion–what’s really in PowerShell 3 and 4

If I run Get-Module –ListAvailableon my Windows 8.1 system (PowerShell 4.0) I find a total of 58 modules installed in $pshome\modules i.e. C:\windows\system32\WindowsPowerShell\v1.0\ModulesThese are...

View Article


Question about Community Guidelines

Is there any particular guideline or feeling within the community about answering questions that are a student asking for homework?  I know some communities I've been to are pretty much set against...

View Article

Parse Fixed With Text File with regex replace with trimming option... (no...

Fixed Width text file111   2222  333       444444555   6666  777 8888 Desired output"111","2222","333","444444""555","6666","777","8888"$str ='111   2222  333       444444'$regex =...

View Article


replace content of specific file in a directory

Hi PowerShell Guru's,I have an issue like this:Suppose in a folder i have 3 different type of files:Line.txtLine.sqlLine.htmI have the following code:$configFiles=get-childitem . *.xml -recforeach...

View Article

change specific file extension using powershell

Hi PowerShell experts, I have a list of file in the my folder: exampleaa.txtab.txtac.txtad.txtNow i want to change only 2 file extension: ab.txtac.txt to ab.htm & ac.htm How do I choose specific...

View Article


Windows PowerShell Operators

Windows PowerShell is designed to be an interactive command-line shell, but it's also a programming language. As you advance in your PowerShell understanding and knowledge, it's inevitable you're going...

View Article

BITS transfer files using different domains without share

hi, can someone explain if is it possible to transfer files between my local pc and a server on a different domain without share its path.i.e.PS C:\Users\Desktop> Import-Module bitstransferPS...

View Article

Have a script but getting errors. Bulk upload contact to GAL office 365 from csv

I have found this script looks great, when I run it in PowerShell It creates the contacts, enters in the Name fields ( Name-first-last-email) but when it goes to the Set Contact parameter there are...

View Article
Browsing all 8583 articles
Browse latest View live