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 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 ArticleMicrosoft MVP Sean Kearney Walks Through Windows PowerShell Desired State...
Microsoft MVP Sean Kearney Walks Through Windows PowerShell Desired State Configuration Read More
View ArticleBatch to PowerShell
Good Morning, I have this bat file which is called from SCCM... I was hoping to start in changing some of these to powershell. I'm pretty green so if anyone could suggest a good resource that ties PS...
View ArticleVM Tools Status Report in HTML Format for Multiple Vcenter
Hi Team I have created script for vm tools status however the report format is not getting properly,., I can get the title for the first vcenter not the second name in the report I need the report like...
View ArticleRenewing a certificate issued by a CA
I have a few certificates in a certificate store will be expiring shortly. I want to renew the certificate. I can do this manually but is it possible to automate this using Powershell. I've read about...
View ArticleEditing remote registry
A while back we're able to edit the registry file and now it seems like we're not able to edit the reg file. We have a bunch of server's we need to change the DynamicDaylightTimeDisable from 1 oto 0.If...
View ArticleAdapting 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 ArticleHow to Search for Disabled Users in specific groups...
I am attempting to write a script that: Searches our AD for Groups that begin with "AW_"Searches for DISABLED users within "AW_" groupsRemoves all disabled users from groups that begin with "AW_" So...
View ArticleCMD Line command in POSH
I have a 3rd party CMD line tool that I am writing some POSH wrappers for. Most work fine. The problem I am having issues with is when an argument has a space in it. Below is an example. Some of the...
View ArticleExport data
Hello - I am new to powershell. I am stuck with an issue and would like any input on it. First let me start off by telling you the process. We import a file with a list of users who do not have an...
View ArticleGetting web server information through WMI
Specifically, what I want to do is determine the value of SSLFlags, especially SSLRequireCert. On servers which have an applicationhost.config file at \\server\admin$\system32\inetsrv\config, I can...
View ArticleHow to expand the result in powershell query ?
Hi,I'd like to know if it is possible to expand the triple dot to show all of the IP address neatly using powershell ?here's the command that I use:Get-ReceiveConnector|SelectName,RemoteIPRanges| ft...
View ArticleDeleting remote registries
Hi,I would like to delete the registry key on remote servers by using the following script, but i am unable to do so because of some errors in my script. So , i require your help to overcome the...
View ArticleFound the AD Group and members and exported to a csv but require the...
HiI have been tasked with obtaining all our Active Directory OU's that allow users access to our shared drives. These OU's have a user in the managedby field.Im very new to Powershell so please bear...
View ArticleRetrieve minidump from remote Computers
I try to retrieve the logs from remote computers and copy them to my local drive, when i try to do this with one computer it works but not for a group of Workstations. something is wrong with my for...
View Articlepowershell export-csv overwrite data?
this program is first create csv file and output date to csv file, and then for loop the data to csv file $strFileName="c:\temp\test\EMS_tag_rpt01.csv"If (Test-Path $strFileName){ # // File exists...
View ArticleScript Is Not Copying All Files
I have run this script about 5 times. The first 2 - 3 it worked to perfection, but the last 2 it is not copying over all files, and I can not figure out why...Can someone examine this code and let me...
View ArticleAdjust Virtaul Memory on Windows 2012
Hi,Need to adjust Virtaul Memory on multiple Windows 2012 servers using PowershellPowershell command so far:$Computers= get-content "D:\Powershell\PageFile\ComputerName.txt"foreach($computer in...
View ArticleHelp with a filter
I'm trying to filter out some AD users who have "ACE" as their Company in Active Directory. I only want users who have logged on in the last 60 days, don’t have “Long Term Absence” or “Intermittent...
View Article