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

.log file to richtextbox

Hello,i'm searching for the best way to show a microsoft .log file to a richtextbox. if u just do a get-content, i have somthing like that in richtextbox : <![LOG[Raised Program Started Event for...

View Article


Can't get processes from Windows 7 client.

I have started working my way through Month of Lunches and came up with a minor problem.  I have set up a private network in VMware with two Server 2008 R2 Enterprise servers and one Windows 7 client....

View Article


Powershell and Excel

Hello to all,Before I begin I would like to say that I am not a scripter (Powershell or other). I am here because of a project deadline and require the help of a skilled Powershell programmer who is...

View Article

AD group members

Hi all I am trying to create a script that will do 2 things:1. Prompt the user running it for an AD group name.2. extract the members of the group to a csv. and name it group.txt, leaving it in the...

View Article

Re: Can't get processes from Windows 7 remote client. (works locally/invoke...

Re: Can't get processes from Windows 7 client.Still have an issue with this.  I have covered all the basic troubleshooting steps.  Next I will try to repair the WMI.

View Article


Get-Date Question

I've been playing around with Get-Date and I'm wondering how to do the following.I need to get today's date and then in exactly 7 days execute an .EXE.   This .EXE is a reboot script so I need my...

View Article

How to get MS Office product key

Hello all, I would like to ask if is possible to get MS Office Product key from registry using powershell. I have one script which gets Windows Product key I need same think for office. Is it possible...

View Article

Adapting Powershell commands to query remote machines

I'm trying to determine which of my servers from a list (ex: servers.txt) have .NET 4.5 installed and what version of Powershell.  I have standalone commands which will tell me this on a single box -PS...

View Article


Invoke-Command script needs imported module on remote end

I'm needing the cmdlet New-Website on the remote computers for the script I'm sending them via Invoke-Command.  The thing is, the WebAdministration module containing New-Website exists on all the...

View Article


Idea to make a banner/popup style alert for all single or all monitors

Here's a background for what I'm trying to do.* Dispatchers get a call, and hand it off to team of techs* Need those techs to get a notification on screen that a call is transferred to the call queue...

View Article

send broadcast message to network

In XP there was NetSend but it's gone in Windows 7.  They have msg.exe but it is not the same.  Using PowerShell can you send a true broadcast message to all machines?  I have a PS script that runs...

View Article

IE Add-on

Is there a way to view all IE add-ons that are installed through powershell? 

View Article

Need help with reading dynamic columns from csv file

Hello,I am trying to write a script which will accept dynamic columns. Currently, I am using a discrete number of columns specifying the element number. What I ultimately want is to be able to run the...

View Article


Need to strip out a text string from file names

Good morning,I'm new to the forum and would love to become proficient at using Powershell eventually.  However I have come across a pressing issue which was created as a result of a cryptographic virus...

View Article

message box with no input?

I've searched this site and others and all of the dialog's and message boxes I've seen have an OK, or Cancel button etc...      How can I just display a text box with no input for a set amount of time? 

View Article


Pester Mock and TestDrive

In this part of Pester basics series, I will cover the most powerful tool from the whole framework, the Mock function. This function lets you hide any function with a fake implementation of your...

View Article

How to convert a text file into a csv file with splits in line.

Good Morning, I am new to the forum and a beginner who would love to become proficient at using powershell. I am trying to figure out on how to convert a text file into excel sheet by splitting in...

View Article


Finding files with the same info in them

I have a large number of files stored in a specific directory, there are 3 fields in these files that I need to do a few things withThese are the 3 fields in each fileSubject:From:HelloName:I am trying...

View Article

Resize Hyper-V VHD Disk Files with PowerShell

I’d like to think that we plan ahead and build Hyper-V virtual machines with adequate disk space. But sometimes our best plans can quickly fly out the window. Or you might have a legacy virtual machine...

View Article

verified copy file then remove them via powershell

Need some help for the following script. My goal is to copy files from c:\tem to d:\tempafter vopy, I need powershell to verify all the files are copied then remove the folder of...

View Article
Browsing all 8411 articles
Browse latest View live