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

Check if a first name and last name exist in AD.

HI all,I need your help.I've a powershell script that work so fine and that update the "pager" attribut for every user found in temp.csv...

View Article


Status DAG database locations

This is a script I wrote to show the status of all Exchange 2010 DAG databases. It displays to the EMS console color coded to see db's running off of Activation Preference location. And it will handle...

View Article


Powershell script works fine when fun from powershell console, but does not...

I'm trying to run my powershell script from a batch file but I can't seem to get it to perform the same way when doing that.If I run my powershell script from powershell console it works fine, if I run...

View Article

Deleting all children of home folders in a specific OU

Hi All, I'm having an issue with my code where when I try to delete all the folders within the home directory but not the directory itself it will just delete my script rather than do what it's...

View Article

Powershell Command to install a MSI with a MST

I am able to use the following commandline to install a MSI with the arguments I want{Start-Process -FilePath "msiexec.exe" -ArgumentList "/i TEST.msi /qb" -Wait -Passthru}I am unable to get the...

View Article


Resize Hyper-V VHD Disk Files with PowerShell

I’d like to think that we plan ahead and build Hyper-V virtual machines with adequate disk space. But sometimes our best plans can quickly fly out the window. Or you might have a legacy virtual machine...

View Article

Automated Disaster Recovery with Hyper-V Replica and PowerShell 3.0 for FREE!

Hyper-V Replica is a new built-in feature of both Windows Server 2012 and our FREE Hyper-V Server 2012 products.  Hyper-V Replica enables Hyper-V hosts or clusters to enable distance replication of...

View Article

Looking to create a PowerShell script that deletes everything under all users...

Hi All, Looking to create a powershell script that doesn't delete the home directory from everyone but deletes everything within there home directory and then remap their home directory to another...

View Article


need to change prompt line

Hi Everybody,I have ran into small problem, I have tested this $PSEmailServer varaible and changed the prompt line "PS C:\Windows\SysWOW64\WindowsPowerShell\v1.0> "I want get back to old line.pls...

View Article


Using PowerShell to Get Started in Microsoft Azure

Microsoft Azure provides a whole new way to manage your data. Rather than having to buy expensive hardware, configure the operating system, install and configure SQL Server, you can spin up a new...

View Article

Ansible Is Learning Windows

Ansible 1.7, which should be released in a few weeks time, will feature Windows integration in "beta" status.Read More

View Article

compare write time of files

I need to compare a file with today's date.  If the file date is today's date then copy file.  If the file date is 1 day old or older do nothing. (Get-Item...

View Article

How to manipulate multiple files in a folder

I have this code: $whatdate = (Get-Date).Date$today = $whatdate.ToShortDateString()$file = (Get-Item 'C:\pstfiles\file1.pst').LastWriteTime.ToShortDateString()foreach ($pst in $file)  {$today -like...

View Article


Total MemberOf for a user with -LDAPFilter

Hello,This is my first post in the forum, thanks in advance for your help.So, I need to count the total number of groups a user is member of (including nested), but using the LDAPFilter and NOT the...

View Article

Overwhelmed. Can someone help me with this?

I downloaded PowerShell 4 (for Windows 7) yesterday and spent a few hours using Google to try to learn from what other people have done. I got a script working to list a set of URLs that had a certain...

View Article


export ODBC connetctions?

Can I export all ODBCconnections viaPowerShellandimport them later?I need thisforanApp-VProject.

View Article

Automating deployments in Configuration Manager with PowerShell

One of the main responsibilities of being a ConfigMgr administrator is to perform application deployments. After you have all the applications packaged and setup in the ConfigMgr Software Library, you...

View Article


PowerShell – Maintenance Windows and ConfigMgr Console Extensions

It’s been awhile and I’ve been having way to much fun with ConfigMgr 2012. I’ve been working for the last year on large deployment and would like to share some of the items that have made my day just a...

View Article

Practical PowerShell Part 3: Create Custom Objects Quickly

This week we continue our exploration of what we can do with PowerShell. If you are just joining us, take a few minutes to get caught up.Read More

View Article

Debugging A PowerShell String

A friend had asked for some assistance with a script that was adding objects into Active Directory. It was failing to create Active Directory groups – “Invalid DN Syntax” was the descriptive message we...

View Article
Browsing all 8583 articles
Browse latest View live