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

Copy Files and Folder to New Location

I am trying to copy certain files that fall within a specific date range to a different location.   The command I have works but dumps all the files in the root of the destination.  I am trying to get...

View Article


Ask PowerShell Who Hasn’t Changed Their Active Directory Passwords

You can use PowerShell to pretty much get anything you want out of Active Directory. Let’s say you want to see when the last time a user changed their password was. You can use the Get-ADUser...

View Article


What Version of Azure PowerShell am I running?

Unable to find a decent answer to this question on all of the internets I checked, I figured I'd better step up to the challenge and answer this simple question.Read More

View Article

Breaking Down PowerShell's Scope

One constant about PowerShell is that someone is always learning it. So I shouldn't be too surprised to get e-mails or tweets about beginner topics. It helps remind me that Prof. PowerShell needs to...

View Article

Outlook 2013 Calendar appointment with invitation.

Hi all,I have a ps script that i am attempting to use to automatically set appointments through outlook 2013 that is an exchange account. Everything works except i cant seem to figure out how to send...

View Article


Need Test connection output in the csv file

Hi,I am completely newbie to Powershell.Just I am trying to ping multiple VMs using the scripts. I created a file with list of...

View Article

remove users disable from a group

Hi I would like to remove all the user disable in a specific group. Because I have users in a group that are no more used (disabe in the active directory). How can I do that: Remove-QADGroupMember...

View Article

Output of a Script to a .txt File

Hi All, First time posting here and very new to powershell and scripting in general so thank you to anyone for their help.  I've read the "Redirect output of a script to a file" thread and have...

View Article


CBT Nuggets Announces New Windows PowerShell Video Training Course

CBT Nuggets announces a new video training course, "Windows PowerShell v2-v3-v4 Ultimate Training."During this comprehensive 90-video course, trainer Don Jones covers everything an administrator needs...

View Article


PLURALSIGHT PLAY BY PLAY DISCOVERING POWERSHELL WITH MARK MINASI TUTORIAL-kEISO

kEISO has released the new tutorial “Play by Play: Discovering PowerShell with Mark Minasi” from Pluralsight.Read More

View Article

AD member list Script

First time posting but hello there users!I am novice, at best, and I was wondering if I could get a script that shows all the users of a certain security group while also filtering it to only show...

View Article

Disable AD Computer from txt file and move it to target OU

This is the script I have, but something is not right. Import-Module ActiveDirectory$computers = get-content "C:\disabled computer.txt"foreach-object{$computer | disable-adaccount$computer |...

View Article

Powershell Remoting from Server 2012 to Server 2003 SP2 Box Does not work.

I've read at least 30 different "help" articles and I've tried every single suggestion and I still can't make this work!  Of all places I figured that here on PowerShell.com someone might have a...

View Article


Switch parameter, Change/Set words

In my script, I extract a word in 3rd position, from a path.I then need to insert this word in a text, such asAdd-Content -Path $sFullPath -Value "NFSettingFile=C:\NG_auto_project\config\$word.ini"BUT...

View Article

changing string in XML files in multiparty folders

Hi, I have folders and sub-folders, I need to fine all XML files in the folders and change a string in every file "XYZ" to "ABC".I wrote this lines:# set folder path$path = "C:\temp\" Get-ChildItem...

View Article


Get-mailboxfolderstatistics question

hello,How do I setup a powershell script to filter for the inbox item count for 2 specific Exchange 2010 mailboxes? Thank youGordon

View Article

Changing color when the value reaches a set threshold

I erally need help with this. I have this block of code that is put into a html report. I trying to change the color of the output on the free space only @{n='FreeSpace (GB)';e={"{0:n2}" -f...

View Article


Query All servers for linked servers and datasources

hi all - I'm a Newer DBA and my boss has assigned me to look on all our servers (126 of them) and find all the linked servers that are pointing to an oracle database.  Of course, I thought of...

View Article

Output result of Get Last Logon.ps1 to csv

Hi All, I'm sure that this is a really easy one but I'm newb to Powershell and its delights and am really struggling. I am trying to output the results of the Get Last Logon.ps1 to a .csv file. This...

View Article

Question on how to split a string based upon a pattern

I have string like this:     "Common-edi_rack_2.1-DEV" I want to split it into the following two stringsCommon-edi_rack2.1-DEVI want to be able to split on the last occurrence of an "_" and not on an...

View Article
Browsing all 8583 articles
Browse latest View live