Quantcast
Channel: Windows PowerShell forum
Browsing all 21975 articles
Browse latest View live

Email notification on password Expiry ion AD

Hey All I wrote a script (probably since Im fresh with powershell its dirty scripting :(  ) to email users when their password is about to expire.Get-ADUser -filter * -properties...

View Article


Bulk change email addresses in Exchange 2010

We are currently going though a rebranding at work and I am looking for a Powershell script I can run to change everyone's exchange default email address to be the new one. I'd like to keep all...

View Article


Scheduling a Powershell script as a batch job

I need to run a PowerShell script as a batch job to be executed every 5 minutes on a Windows Server 2012 R2 server.I want to use a scheduled task.I read on the web different ways to solve the problem...

View Article

unpersistent drive mapping question

We have a large (200+) set of shares to map to various users based on group membership via PowerShell login script.  I am very familiar with the arguments for using GPP with item level targeting as a...

View Article

Grabbing text in an array between two characters

I have an array of text that contains group memberships for users. Each item in the array is the DN of the group. I want to be able to select everything for each object in the array that looks like...

View Article


Invalid computer name error with remote execution of PowerShell script

Hello there,I am trying to execute some PowerShell code in a remote computer using the following:$session = New-PSSession -Credential "myDomain\myUserName" -ComputerName "remoteCompName" $result =...

View Article

Looking for PowerShell cmdlets to add files in in Anti-Virus Exclusion List...

Hi All,Not sure if this is the right forum for this kind of discussion but may be you can provide me some pointers.I am trying to automate something where I am looking some cmdlets of powershell by...

View Article

import module Active directory

I have multiple domains on my server. I need to check whether a user is a member of which group using powershell. When i try :-Import-Module ActiveDirectory (GET-ADUSER –Identity "Account name"...

View Article


Save output of powershell script to a SharePoint document library?

HiI've got the PS script below which scripts out our SQL replication so disaster recovery.  Is there a way to output this to a SharePoint document library so that way we can version control the file to...

View Article


If Compar-object gets results then...

Hi colleagues. I am comparing 2 text files, one on a server and the other on different hosts.To accomplish this I use compar-object, and as output I get the hostname and below the differences between...

View Article

A and PTR records update under zone's folder..

Hi FriendsI have below power shell script which is working fine if I have single zone But I have domain folder in single zone.I am using below script to add A records and PTR records in zone but This...

View Article

How can i get share permission on network folders from csv file

HiI am using get-acl to get the share permission but its not providing me share permission details. its providing on security permission.is there anything or other way to get the network folder's share...

View Article

Get All mailboxes in Entire Forest script Help required

Hello Powershell experts,I am not a expert and fairly new to the powershell and I need some assistance on my below script. If I run the below script on a exchange 2007 shell it works and sends the...

View Article


Date of most recently installed update

Hi All,I'm looking for a PowerShell script that help me manage my Windows servers who receive updates from our internal WSUS server. We are using WSUS 3.0 running on a single Windows 2012 R2 machine.In...

View Article

Powershell command for adding permissions in the "winrm configsddl wmi" menu

Hello,I was wondering if there was any powershell command that would be the equivalent of adding a user in the menu brought up by typingwinrm configsddl wmiI want to be able to add Read permission for...

View Article


Script -asjob (modified bgping script)

Hello, I liked very much the original bgping script (http://poshtips.com/bgping-a-high-performance-bulk-ping-utility/) I thought, it would be nice to modify the script for query multiple servers (for...

View Article

Script all SQL databases and all objects

HiDoes anyone have a script for all databases on a SQL server and all the database objects, e.g. Tables, Viwes, Procs, Functions, Indexes, P/F Keys, Users ? This is for DR puposes so obviously need as...

View Article


How to add an exclude to this script I'm using

Hello,I'm using the following script to parse out data from an input file.  It's a list of computers that will be moved in our Hyper-V environment to their respective hosts.I want to add an exclude...

View Article

Event Viewer Logs errors

HI All,I written a Script to get the all critical and error messages with latest 50 messages.But i want to run this script for every 30 minutes based on last run time,I don't want to miss any error...

View Article

SharePoint Site Collection size using power shell with email body

Hi,I am getting all the list of site collection information with url and size as a attachment,but i want to get this information as body instead of attached document.Here is my code. $SiteCollurl =...

View Article
Browsing all 21975 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>