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

Debugging A PowerShell String

A friend had asked for some assistance with a script that was adding objects into Active Directory. It was failing to create Active Directory groups – “Invalid DN Syntax” was the descriptive message we...

View Article


Create a New Azure VM with PowerShell

There's a cmdlet called Get-AzureVMImage which returns all of the predefined Azure VM images you can choose from when setting up a new Azure virtual machine (VM). Since we're SQL Server people, here's...

View Article


How I’ve started loving PowerShell

I’m Fabien, 32 years old and I started using PowerShell in 2008 because I’m a lazy guy. I’ve always liked to build things in order to make them work. I think you need automation to handle your daily...

View Article

Install Orchestrator SMA

Q: How do I install System Center 2012 R2 Orchestrator Service Management Automation?A: Orchestrator Service Management Automation (SMA) is a new component in System Center 2012 R2 and is a core...

View Article

Make PowerShell Clever With Decision-Making

we’ve created a nicely formatted, easy-to-read script that reconstructed every user account’s DisplayName by combining each account’s GivenName attribute, a space, and its sn attribute, and using that...

View Article


Configure the PowerShell host

As a PowerShell fan I find using the vCO PowerShell plugin makes my life a whole lot easier. What isn't easy however, is  the configuration of vCO and a PowerShell jump host. Having done it a few...

View Article

Using PowerShell to troubleshoot the Exchange mailbox creation process

I’ve been recently tasked by the team responsible for user account management to investigate why a user mailbox wasn’t created along with its Active Directory account. PowerShell being my favorite tool...

View Article

Creating a PowerShell Script Gallery Upload ISE Add-On – Part 2

In this post I explain the steps I took to create this ISE Add-On.Read More

View Article


Image may be NSFW.
Clik here to view.

Get few installed apps version number from a list of Computers?

I m still trying to get my script working. What i m trying to do is gathering few installed apps version number from a list of computers and output as below. The format of output must be this way..I...

View Article


How to confirm your script worked?

I have this code which works.  $computers = (get-ItemProperty hklm:\SOFTWARE\Microsoft\MPSD\OSD).OSDComputerName $GetOU = (get-ItemProperty hklm:\SOFTWARE\Microsoft\MPSD\OSD).OSDDomainOUName$dom =...

View Article

issue to silent install pidgin 2.10.9

I am not sure it is the script issue or the software doesn't have silent installer in it. It just doesn't work with silent installation.Notes:  I used GPO to deploy script and software on local c:\temp...

View Article

change the interface language

Good day.i have a russian interface PowerShell 4 running on a russian interface Win 7.i'd like to change the interface of the PowerShell and the help language to english.Is it possible?RegardsKamil

View Article

Combine outputs from commands

Hello all,How would I combine the following two commands into a single command?Get-mailboxstatistics "Joe Bloggs" | ft DisplayName, TotalItemSize, ItemCount, StorageLimitStatus -autoGet-mailbox "Joe...

View Article


Unable to login to website,get error message : InvalidOperation: (Click:String)

Hi,I tried the following script,it worked for my other task but not sure why it is not working here, pls help, below is the script: $username = "username" $password = "password"$servername = "abc"$url...

View Article

POWER SHELL UPDATE!!

Should I update power shell,  I have this message "vaio-shell has stopped working" since my version is v.1  and  v 2.0 I have both of them and my OS is  windows 7 home premium sp1. I wish I could...

View Article


Filter out unwanted item in a list of variables

I have this snippet of code that I need help filtering the output get-ADPermission-Identity'CN=TdF.york@york.gov.uk,OU=SharedMailboxes,OU=Users,OU=CYC,DC=york,DC=gov,DC=uk'  |Where-Object {($_.Deny...

View Article

.key and .crt certificate conversion to .pem format in PowerShell

Hello, During my work with openssl I came across a problem related to entity certificate and key conversion in .crt and .key format to .pem which is required by my application. Is there any possiblity...

View Article


Managing Windows Azure Resources Using PowerShell

Microsoft has put a great deal of effort into designing a framework for Windows Server that can be utilized by any Windows role as well as features to implement command-line functionality. Most of the...

View Article

#PSTip Functions and SQL filtering, Part 2

Adding support for easy filtering on individual table columns is great, but the fact that user would have to use SQL wildcard syntax rather than wildcards that he is used to, makes it feel like a...

View Article

How to tell if current node is active or passive in failover cluster?

I have a script that runs on both the active and passive nodes and I need it to figure out if it's currently on the active node or not.  I've found a little info on that with the following commands,...

View Article
Browsing all 6937 articles
Browse latest View live