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

Loop until reg key exists?

.EXE number 1 is called ParentBoot.exe.EXE number 2 is called RebootUtility.exeParentBoot.exe will check for system up time.  If your system has not been rebooted for 'x' number of days it then...

View Article


Image may be NSFW.
Clik here to view.

How to run a query based on the foreach result set

Hi all, Let me first start off by saying I am a novice powershell user and I will greatly appreciate any help I can get. Also I am using PowerShell as well as the SQLPSX addon. (Just seems a little...

View Article


Passing parameter variables into Invoke-Command

I am trying to build a tool to stop and restart services on remote computers, but I want to choose a specific service.  I can't get the $Service parameter to pass to the command.Any Ideas? function...

View Article

Removing printers using WMI-Object

I have been tasked with removing several hundred local printers.  I have a spread sheet with PC names and printer names and I am trying to remove the printers using the WMI-Object method.  I have tried...

View Article

Hyper-V: Microsoft Virtual Machine Converter 3.0 released

Microsoft® Virtual Machine Converter (MVMC) is a Microsoft-supported, stand-alone solution for the information technology (IT) pro or solution provider who wants to convert virtual machines and disks...

View Article


Original fake and real passports (jaimepryor2012@gmail.com) drivers license...

We are the best producer of quality fake documents. With over 12million of outdocuments circulating over the world. bennypvdocs@gmail.comWe offer only original high-quality fake passports, driver’s...

View Article

trying to change pc names

Here is my testscript.ps1 file which I made, from the internet: -------------------------------------------------------------------------------------function renameAndReboot([string]$computer,...

View Article

Large dataset question

Hi all..  Just looking for some guidance and tips...We have a .csv file with 50K+ lines and what i need to do is quickly reference the file based on another import and then create custom objects and...

View Article


Exporting to CSV not getting all the information

I am trying to get computer information from remote computers and then put it in excel.  For the most part  its working but I'm trying to include the info in the else scriptblock to but I can't seem to...

View Article


Get List of AD Groups In A Text File

Hi Everyone, I need some assistance as I am a bit new at powershell.  I wrote a command that will get multiple AD security groups located within a text file, which will then get the users of each group...

View Article

How can I speed up my Powershell script for uninstalling SCOM agents?

Hello folks, I have a very simple script I use to bulk uninstall SCOM agents from a text file: $path=d:\temp\serverlist.txt$list=get-content$path$cred=Get-Credentialforeach($name...

View Article

Sending email using powershell Send-MailMessage in a batch file

If powershell is first started; email can be successfully sent using the PS command line. This is the command line used to send email.  It successfully sends email.PS C:\> Send-MailMessage...

View Article

[solved] Renaming or truncation part of a file name

I know this gets beaten to death, but I can't find an example of what I'm trying to achieve.Say I have a folder full of txt files named something...

View Article


Running Get-WmiObject Win32_Volume Using SQL Authentication to get disk space...

Hello Friends,Can i some how run the below ps script by using SQL Authentication if so how would i pass the credentials for the remote server in the script?We have servers in domains that have no trust...

View Article

Help with reading a stringvalue (data) in regedit and using this in a script

Hi,I have made a powershell script, which does some add/delete things locally on a client with MS onedrive problems. Please see the script attached.I succesfull tested the script on my own client and...

View Article


Passing Crentials to the below script

Hello Friends,Could you please help me with the below script?Below script works great but we have multiple domains no trust so i want to pass different credentials for different domnains.foreach...

View Article

Powser Shell Script to Purge Computer Records from SCCM

I am building a PowerShell Script to obtain the names of the computer resources stored in a SCCM 2012 collection and place them in a variable. Next, I want to obtain the computer resources (e.g., ddr...

View Article


rpd port check on multiple server

Hi ,  I have got this script need to add some thing more. Any way possible i can get ipv4 IP Address and in adittion i need configured  dns as well on network card. So basically i need script who can...

View Article

Using -ErrorVariable

I have a script to scan a folder for certain strings in the files there.  Ran into a situation where the file is too big for the script to process, so it throws an out-of-memory exception in red to the...

View Article

Access SQL Server Configuration Manager Using PowerShell

Hi PowerShell Team,Articles on MSDN about accessing SQL Server Configuration Manager through WMI are somewhat vague and do not give any PowerShell examples.  I was wondering how I would access the WMI...

View Article
Browsing all 6937 articles
Browse latest View live