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

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


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


Microsoft MVP Sean Kearney Walks Through Windows PowerShell Desired State...

Microsoft MVP Sean Kearney Walks Through Windows PowerShell Desired State Configuration Read More

View Article

Batch 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 Article

Image may be NSFW.
Clik here to view.

VM 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 Article


Image may be NSFW.
Clik here to view.

Renewing 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 Article

Editing 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 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


How 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 Article


CMD 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 Article

Export 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 Article

Getting 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 Article

How 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 Article


Deleting 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 Article

Found 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 Article


Retrieve 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 Article

powershell 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 Article


Script 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 Article

Adjust 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 Article

Help 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
Browsing all 6937 articles
Browse latest View live