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

IF Else Statement

Hello,I am running several scripts similar to the one below. While the script is running, it gives me a list of computers not responding along with a few other errors that I would like to capture on a...

View Article


Reset a Computer Account's Active Directory Password from the Command Line

Q: How can I reset a Windows computer account's Active Directory password from the command line?Read More

View Article


PowerShell File Frontier, Part 3: Right Tool for the Job

Over the last few lessons we've been exploring different ways of filtering for files. On one hand using separate cmdlets in a pipelined expression is the "right" way, I also recognize the need for an...

View Article

Invoke-command with "Run As Administrator" on remote machines.

Hi,I'm trying to run a command on a remote machine with the invoke-command cmdlet. The command fails with access denied in the eventlog. I need to run the remote session with "Run As Administrator" on...

View Article

Rename Files in a Directory

I have to rename files in a directory that are pictures but use a number as the extension for a card system. The picture numbers are UID's that relate to individuals. I have been trying to do this in a...

View Article


Running a command line command with powershell

I have been trying to run a couple of dos commands with in powershell. I need to run a couple of TSMVE commands on a bunch of servers. TSMVE commandsChange directory to 1 utf-8 0 false false false...

View Article

using Powershell to query Removable Storage Manager in win 2003

I am trying to use PS to get information about tapes in RSM (Removable Storage Manager).I have been unable to find any posts that refer to "Removable Storage Manager" on the Powershell site.So far I...

View Article

Parsing an array to a function

Hello, I am wondering if someone can give me a quick hand on a function I am writting which it is not behaving in the way I am expecting.I want to call this function by doing a (Get-Content...

View Article


Creating Your Own PowerShell Command

Last week, I posted a PowerShell function that you could use as an accelerator to create your own PowerShell tools. My tool takes command metadata from an existing PowerShell cmdlet and gives you the...

View Article


call script event

I have a puzzling problem:I have a script that when I click in a button, it runs another .ps1 script. In Powershell ISE it works perfectly, but when I start from a Batch Script it not work, not start...

View Article

Installing Windows Updates using Powershell

Hello Everyone,I have no Powershell experience but need to learn it. We are transitioning to IBM BigFix for patches and can't seem to get it up and running. This is being fixed as we speak but we have...

View Article

Displaying a nested group hierarchy

I have an organization that loves nested groups in Active Directory.  I have found that nested groups can easily get out of control without good business practices and excellent documentation.  I have...

View Article

Sharing problems with $ExecutionContext.InvokeCommand.NewScriptBlock

Hello.I realy hope someone can help me here. I´m trying to create a folder on a remote server and then share this folder. The folder is created but it doesn´t get shared. I always get this error...

View Article


Exporting from Active Directory (SBS) list of active and disabled domain...

Hi everyone, As you'll see I'm pretty much "fresh" in PowerShell. I've found this Ed Wilson's script named "FindDisabledUserAccounts.ps1" and it works perfectly on my Small Busyness Server with...

View Article

How to Convert OLM to PST Tool?

To convert OLM file to PST file format, I recommended an excellent or hassles free software, you can use Kernel for OLM to PST Converter Tool. This application efficient to convert MS Outlook 2011 for...

View Article


Script not work on console

Somebody know why this script works fine in Powershell_ISE but when running in the console doesn’t seem to catch the click events?[void]...

View Article

Citrix Scripting: Automating VM operations on XenServer using PowerShell

With the release of the XenServer 6.2 SDK, there is a better alignment between the PowerShell snap-in and the PowerShell standards of Cmdlet design and usage. Here are some great reference...

View Article


Complex script for creating inbox rules

I am looking to create an inbox rule for all users in my environment.  I am looking at users created in the last x days, and also verifying if the rule already exists.  This is what I have so far, but...

View Article

HOTFIX: PowerShell exits unexpectedly when you run the New-CMSiteSystemServer...

When you run the New-CMSiteSystemServer cmdlet that's included with Microsoft System Center 2012 R2 Configuration Manager, PowerShell may exit unexpectedly. If you experience this issue we have a new...

View Article

New features introduced in Windows Management Framework 5.0 Preview September...

Windows Management Framework 5.0 Preview September 2014 was released on September 4.An overview of new features added since the May 2014 Preview is listed in the announcement on the Windows PowerShell...

View Article
Browsing all 6937 articles
Browse latest View live