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

i am newbie

can u help me for master in powershell

View Article


Connecting to a message queue

For a while, I've been testing a message queue using the following code:$q = new-object system.messaging.messagequeue($qname)$msgs = $q.getallmessages()Yesterday, it quit working. By fiddling around, I...

View Article


Multithreading in WPF Form

Dr. Tobias,I have a WPF XAML form that I am using that'll run several different tasks upon clicking a button such as installing a piece of software or pulling software versions on remote machines.  I...

View Article

Multithreading questions

Dear all,firstly great work on this website.  I have a few questions regarding multithreading.I based my own code on examples found from the script library.  Regarding my understanding of...

View Article

Script to clean up the home drive folder

Hi All, I pretty much have no experience with powershell, but think it is going to be my easiest option to acheive the following. I have a CSV containing folder names (that correlate to AD login names)...

View Article


Trying to figure out why a webservice object type will not work in method call

I instantiated a base object from a webservice, and, attempted to create some objects from this base object this way:$webservice =New-WebServiceProxy-Uri http://www.test.com/myclass.asmx -Namespace...

View Article

I need help sending windows dos commands

I've read numerous examples of how to send dos commands but none seem to fit my needs.I'm sending commands to a dos based program and I'm attempting to read the data back from the same dos window....

View Article

Powershell Script - Catch All Errors, Display Custom Message, Continue

Hello All,I am trying to get my script to catch all errors relating to a folder not being deleted and then continue with the rest of the loop but it is not working:$Now = Get-Date$Days = "90"$LastWrite...

View Article


ForEach variable is $null in 2010, but not 2007

Hi All,I have a PS script that's working well in Exchange 2007, but doesn't in Exchange 2010. In 2010 I get the error that $Recipients.DistinguishedName is null. Anyone point me in the right direction...

View Article


Sharing Credentials Securely with other users for PoSh scripts

I've definitely come by this before on the internet but I can't for the life of me find what I found before... Don Jones has mentioned in one of his workshop videos the ability to write a tool, give it...

View Article

Search for AD Object in Different Child Domain forest With ActiveDirectory...

HelloI am Working With ActiveDirectory PowerShell ModuleIn A forest there are few Child DomainsI am in Domain A (My Workstation , My User)when I am Searching (For Example Get-ADuser)i gets results form...

View Article

How to script clicking on "X" to close window

Hi,I'm a newbie to Powershell.   I'm trying to write a script that will close some applications running on a server gracefully.    The apps are running in CMD windows and the correct procedure to close...

View Article

Early Filtering of Win32_NTLogEvent class

Hello All,Can someone please help with the following query :)if I do the following I have to wait until all warning events are collected by WMI before they are then passed down the pipeline to select...

View Article


Script to retrieve Database name and creation date

Hi,I have written the following script:foreach ($Server in get-content "D:\Servers.txt")    {    #Retrieve Database list    Invoke-Sqlcmd -query "select name ,create_date from sys.databases"...

View Article

Building GUI Applications in PowerShell

How many lines of PowerShell code are needed to create a complete working WPF application? Two!Read More

View Article


How to Open an Elevated Windows PowerShell in Windows 8

This tutorial will show you how to open an elevated "Windows PowerShell" that will run as administrator with full administrator rights in Windows 8. You must be signed in as an administrator to be able...

View Article

Delete a service application in SharePoint 2013

Summary: Learn how to use Central Administration or Windows PowerShell to delete a service application in SharePoint 2013. Applies to: SharePoint Server 2013 | SharePoint Foundation 2013 You can delete...

View Article


The given path's format is not supported

This is Exchange specific task, but the part I need help with is not specific to Exchange, so hope I'm posting in the right place.  Basically I want to get a report of all mailboxes created including...

View Article

Issue with Powershell output

Hi,I have written the following script:foreach ($Server in get-content "D:\Servers.txt")    {    #Retrieve Database list    Invoke-Sqlcmd -query "select name ,create_date from sys.databases"...

View Article

GetaA XML String from a XML file

Hey,i have an XML file<XML><item><Name>Stefan</Name></item></XML>For this XML file i build the PowerShell Script[xml]$XMLFile = get-content "XML File"Write-Host...

View Article
Browsing all 8411 articles
Browse latest View live