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

From Zero to Hero – Windows PowerShell Remoting

Everything you need to know about PowerShell remoting and beyond!Read More

View Article


How to find Active Directory users NOT set to PasswordNeverExpires with...

I decided to blog this little nugget because everything I found on the web was exactly the opposite of what I wanted to do. Usually when someone is using PowerShell to look for users in the context of...

View Article


Powershell script to retrieve AD information of users

What is the script to retrieve a list of the following from AD (In columns and export to a csv doc:1. Name & Surname2. Office number or Mobile number or email Thanks

View Article

import information from .csv based on email address

Hi All, Ive got a .csv with two collumns. The first collumn has a heap of email addresses and the second has "user id's". Im trying to get a script together that looks at each email address in collumn...

View Article

How do you update a WPF form during code execution

I am using the code below to write a script that calls a WPF form. i would like to have the form being updated during code execution but whatever i try the code keeps running and only update the form...

View Article


Export spelling errors from a Word document into a new document

Hi all, I'm really new to this community and to PowerShell as well.I was looking for a script to export all Word spelling errors (underlined in red) from the original into a new document.Could you help...

View Article

Tips on my url checking script

Ive inherited a list of 3500 urls that i need to check for validity. I wrote a script that is working but takes literally 12 hours to finish. It pulls the urls from column a of an excel spreadsheet and...

View Article

nike air max cnxu iuer njnb

既然如此,就等著讓日本人出頭, lv打配合。要么日本人把權力全部jiāo給大隊長,要么咱們出工不出力,等游擊隊鬧騰大了,那些地方的中xiǎo豪紳反過來就會來求大隊長了。游擊隊可是直接觸到了 LV手表...

View Article


How do I write my own Write-Verbose type of function?

Since Write-Verbose doesn't support some of the features that Write-Host does (like the -NoNewLine option), I had to roll my own Write-VeboseEx function.  I put it into a WriteUtils.psm1 file and I...

View Article


sendAs, SendOnBehalfOf access and DL for a specific user

Hi-Would you happen to have a script that will report the DL and the type of access (SendAs, SendOnBehalfOf) for a specific user?I tried get-distributiongroup with the managedBy command, but that isn't...

View Article

Issue accessing shared folder

Hi Team, I have a script to access shared director but its not working I getting error "Failed to add a new network location from "Can you help me on this the code is given belowwhat does if (!("Z:" |...

View Article

How to Merge 2 csv files

Hi AllI have requirement where I have log file generated in csv formatex:http://www.g.com,1000000,200000http://www.y.com,1000000,32323http://www.h.com.1000000,232This above file generated yesterdayand...

View Article

Powershell command is not working

Hi Guys, I am just trying to add a library template through powershell and it is not working. Any idea where thing might be going wrong. here is the code snippet. $sourceFile =...

View Article


updating user home directory

I am about to move our file server between data centers and then rename it. Once that is done I will need to update everyone's home drive path. I have no way to test my script below but I know each...

View Article

Crossconnect Preformance Monitor

Hello guys,I'm new to script's and codes, thus I need your help.I want to create an exe script that will open a windows which represents a status of a cross between 2 routers.I need the script to...

View Article


mailbox search

Hi AllI am trying to create a monthly windows schedule task where mailbox deleted items are searched for last 30 days from the date the schedule is run. This worksSearch-Mailbox -Identity "user"...

View Article

Using PowerShell to select Physical Disks for use with Storage Spaces

If you use PowerShell to configure Storage Spaces, you probably noticed that selecting physical disks is an important part of the process.You must select disks to create a pool and you might also need...

View Article


Powershell: Get-iQuote

I must have hundreds of these one off scripts laying around in my personal repository collecting dust. I’m trying to get more of these out there as examples (either good or bad!) for others to use in...

View Article

Use PowerShell to Find Folders with Specific File Types

In a recent article I showed you how to identify empty folders with PowerShell and delete them. On a related note I saw a post on Twitter with a Reddit question about getting a list of folder names...

View Article

Installing SQL Server using PowerShell Desired State Configuration (DSC)

Note: DSC can only be run if you have at least Windows Management Framework 4.0 and if your operating system is at least Windows 8.1 or Windows Server 2012 R2. Read More

View Article
Browsing all 6937 articles
Browse latest View live