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 ArticleHow 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 ArticlePassing 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 ArticleRemoving 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 ArticleHyper-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 ArticleOriginal 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 Articletrying to change pc names
Here is my testscript.ps1 file which I made, from the internet: -------------------------------------------------------------------------------------function renameAndReboot([string]$computer,...
View ArticleLarge 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 ArticleExporting 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 ArticleGet 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 ArticleHow 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 ArticleSending 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 ArticleRunning 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 ArticleHelp 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 ArticlePassing 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 ArticlePowser 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 Articlerpd 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 ArticleUsing -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 ArticleAccess 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