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

List AD Users and All Groups in Excel

I Need a Script which lists all AD Useres with all their Groups and all ADGroups "not Member of" in one row in the same order. So the result is like a Matrix I did a Script with a Hashtable, which...

View Article


convert PSH script to LDAP format

Hello, one of our developer need my below script in the LDAP syntax and i never tried this before, would you please help me   $date=get-date -Uformat %m-%d-%y $Filepath =...

View Article


Change print que's settings

HiI have this script I found on the web to batch install printersWorking great ( server 2008 )But i want do add default settings as greyscale and duplexis that possible and if so, how?I Can live with...

View Article

Limit to the length of an array

I'm building an advanced function to parse the security log. It seems when I add a 23rd element to my array $list, the script breaks. As long as I stay at 22 or less, it works. Below is the guts of my...

View Article

Finding Path of file and copy it to the right path

I'm trying to figure out how to determine the full path of files from a compare-object cmdlet.. Here's some of my code:[xml]$LHotFixes=Get-Content"E:\WSU_REPO\Hotfixes1.xml"#This command parses an XML...

View Article


Image may be NSFW.
Clik here to view.

How to create a list of files Zipped

I have a couple of huge zip files I need to report on. This was an extraction from a legacy db. There are multiple sub directories and the names are longer than 256 characters so winzip truncated the...

View Article

Listing Folder Ownership for My Documents folders

I am trying to create a script that will list the Owners of "My Documents" folders via powershell and then export this list into a CSV file. Currently I have this script:$rootfolder = Get-ChildItem...

View Article

adding new values to a psobject?

Hi,maybe I'm too stupid but I looked through the web for two days now and I can't find a solution.I created a PSobject and added some properties and values. it looks like this:  $script:resultall =...

View Article


The specified path, file name, or both are too long

HiHoping someone can help, I've been running a script to delete files/folders and it's been running great, however recently some of the folder names have become very long and the script cannot delete...

View Article


#PSTip Find all groups with same group members in Active Directory

Today I was asked if there was a way to find out which groups have the same group members. This is possible by parsing the output of a DirectoryServices.DirectorySearcher or [adsisearcher] class. The...

View Article

PowerShell Deep Dive–MEAP now complete

The final chapters of PowerShell Deep Dive have been added to the MEAP. Read More

View Article

run a command with anther user credential

Hi, I wrote a PS script that ruining a command that deal with user email.I have the admin privilege for running this command.By default the mailbox user owner and the exchange admin have privilege to...

View Article

Help with get-process

Hi All,I want to have a report with username, domain name, processes that user is owner of, process start time, and process end time with memory used as well. Ex:Username   domain name  process  memory...

View Article


WMI NetworkAdapterConfig & Powershell with Task Scheduler

HalloI'm completly new to Powershell, never written a Powershell script bevor. Therefoer I have several questions. 1. I'd like to configure a network interface/adapter. I already found Get-WmiObject...

View Article

unzip from zip file is not taken place gives error

#script#unzip folder$shell_app = new-object -com shell.application$filename = "temp.zip"$zip_file = $shell_app.namespace("C:\temp\$filename")#set the destination directory for the extractsif (Test-Path...

View Article


Send an email from link

HiDoes anyone know how to create a link in an html file to send an Outlook email.I'm trying to create a link in a report so the user can just click on the link to send an email.Thanks

View Article

Automating SharePoint Deployments in Windows Azure using PowerShell

SharePoint has proven to be one of the most popular Microsoft workloads running on Windows Azure Virtual Machines. Hosting highly customized SharePoint farms and building Internet facing websites that...

View Article


Remote Execute PowerShell against each Windows 8 VM

Running a remote execute PowerShell against each Windows 8 VM on your Hyper-V host can help you maintain the guest VM’s in a minimal amount of time.Read More

View Article

Configuring PowerShell for Windows Azure

So, you’ve got your Windows Azure subscription all set up (and if you don’t you can set up a FREE TRIAL HERE), and now you want to use PowerShell to work with your Windows Azure-based resources.  In...

View Article

Windows PowerShell support

Recently support for Windows PowerShell was merged into the Enterprise Windows version of CFEngine. PowerShell is Microsoft's enhanced shell, intended for more advanced system administration and...

View Article
Browsing all 8583 articles
Browse latest View live