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

add access for a user to other mailbox, but check first if the user already...

HiI have a script that traverses all mailboxes and give a specified user [User1] access to all. I run the script whenever new users are added.But I want the script to check if [User1] already is...

View Article


$_.LastWriteTime format different for Write-Host & Write-Debug.

Windows 7, PowerShell v4.Get-Culture = en-GB, Get-UICulture = en-USApparently I cannot change the UICulture to en-UK, to which every other setting in Control Panel is set.So can somebody please explain...

View Article


Sum one column based on another in PowerShell array

I've got a custom object retrieved from a SQL Query which looks like thisThis is basically how I've constructed the object and it works fine but I can't seem to find how to group them.foreach...

View Article

PowerTip: Easily create a PowerShell array

How to create easily a Windows PowerShell arrayRead More

View Article

Serialization and deserialization with Sitecore Powershell Extensions

Every time one asks about automation of processes or tasks in Sitecore I hear one answer: ‘Sitecore Powershell Extensions‘. In most cases it’s really easy to find a script which suits your need, so I...

View Article


Using the New SMB PowerShell Commands in Win Server 2012 R2

Among many other admin improvements in Windows 8.1 and Windows Server 2012 R2 is PowerShell version 4.0. Last month we took a look at the new Test-NetConnection (TNC) cmdlet for network diagnostics,...

View Article

Bug Reported in Get-ADComputer for PowerShell 4.0

A new PowerShell 4.0 bug has been submitted through Microsoft Connect, and is good to know about if you plan on utilizing the functions the bug affects.The report bug covers the Get-ADComputer...

View Article

Powershell Get MSSQL Settings from Multiple Servers

Recently I had to get MSSQL settings from multiple servers (over 100.) Settings such as Data, Log, and Backup path locations. I modified the script (uncertain where the original came from) to use a...

View Article


Image may be NSFW.
Clik here to view.

Not reading variable properly when script run from the shell.

Hello,I think this is probably something I'm doing incorrectly.I'm doing a simple script to send an email with the Net.Mail.MailMessage class. This is because with that it's easy for me to construct...

View Article


Email address to Userr ID

HiIm trying to use powershell to obtain the users samid based on their email address (SMTP)Can someone please help as im new to powershell.

View Article

Search for a file and if it is there output the content, if it is not output...

I am looking to search for a file on a list of computers (Computers.txt) and if the file is found I would like the content (it is only 1 line) to be sent to a text file with the computer name and then...

View Article

Exporting Mailbox Permissions

Hi all,In our Exchange 2007 environment, I have this Powershell script which outputs mailboxes, which users have access to them and the type of access, such as Full Access, Delete Items etc. into a...

View Article

Is it possible to pass an array of filter criteria to ldap filter?

What I'm trying to do is set the filter criteria in the script below.  Instead of having: $strFilter =...

View Article


Changing DPI

Can DPI be changed using powershell?I found a document on how to check the current status; but I need to be able to change itGet-Item -Path Registry::'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows...

View Article

Script Your Database Mail Setup

Whenever I set up a new server, I make sure that SQL Server's Database Mail feature is set up so I can use it to email me notifications when critical alerts fire or when jobs fail. If you've walked...

View Article


Reviewing SCOM 2012 Agent Patchlist using PowerShell

Recently needed to do that at a customer site and found this thread:Read More

View Article

How to import modules in PowerShell and avoid already loaded error

I like adding in the modules I need for each PowerShell script so I know for sure it won’t fail to run related cmdlet’s.Read More

View Article


Getting default account information

Hi,I have been searching the web for a solution to get the email address of the default email account in outlook. I want to have a scipt that i can run on the client...(Pop3 and Exchange)I have not yet...

View Article

bypassing drive isolation in powershell

how can I bypass the drive isolation that powershell has?  I have a removable media drive that will not show that it is mounted in powershell, but shows mounted in windows explorer.  For this portion...

View Article

Install and Use Windows PowerShell Web Access

Windows PowerShell® Web Access, first introduced in Windows Server® 2012, acts as a Windows PowerShell gateway, providing a web-based Windows PowerShell console that is targeted at a remote computer....

View Article
Browsing all 8583 articles
Browse latest View live