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

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


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


Help with functions and general advice

I'm not totally new to powershell, it's just that my scripts have been getting more complex and some concepts elude me.  My scripts seem overly long because I use a lot of functions with repeatable...

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


A little challenge after 9 hour of course

Hello folk, I try to build a little blackjack game. I'm stuck at a part of my script because i can't get a $i variable to go up like a want.http://pastebin.com/rbJSXzuT for ($i = 2; $i -lt 4; $i++)at...

View Article

No need

powershell basic

View Article


Need Help ! Change local administrator password on list of computers given in...

Hi Expert,This script allow you to  " Change local administrator password on list of computers given in a text file"  Bob McCoy could you help to modify a script like example below For example: I have...

View Article

Delete network shares listed in a text file- Multiprocessing and not...

1..5 | %{md c:\temp$_ -ErrorAction SilentlyContinue} | Out-Null$shares = dir c:\temp*set-content -path C:\shares.txt -value $shares The above script creates...

View Article

Get-WmiObject AsJob returning RPC Server is unavailable

So I have a few dozen computers on a domain. I'm pretty new to Powershell but I thought my idea would be simple enough. Get a list of these computers, use Get-WmiObject to query things like...

View Article
Browsing all 6937 articles
Browse latest View live