getting powershell to automate the adding of email address policy
I have a need to pull information from a file and automate the process of adding Email Address PoliciesI am trying to run a script but I'm hitting dead endsthe first part of the script need to launch...
View ArticleUpdate powershell version??
I'm wondering how I go about updating the version of powershell that I have on my computer?Currently it's running version 2 - how do I update this to version 4??thank you
View ArticleHelper Function Module; one or many
I have been doing all my function development in individual ps1 files for ease of testing. I.e. I have a Reg-Functions file, which contains all my Registry manipulation functions, and I have some...
View ArticleUpdate-FormatData won't load my ps1xml ISE theme file
Hi,I've created a ps1xml theme file for Powershell ISE, using the "manage themes" UI in the options of the ISE. This theme loads perfectly when I import it on machines using the "manage themes" UI. But...
View ArticleAdd Additional Aliases to existing Distribtion groups Exchange 2010
Hi Guys,I have a number of distribution lists that I need to add an additional email address to for a secondary domain. I tried this -import-csv "D:\pst\company\import\distalias2.csv" | foreach...
View ArticleFinding What Cmdlets a Role Has
Hybrid Environment - Exchange 2010 & Office 365So I'm trying to find more information about our Role Assignment Policy and found the default obviously to be "Default Role Assignment Policy". I then...
View ArticlePowershell search across multiple domains
Cculd someone advise how to modify this script to search specific domains? My solutions doesn't seem to...
View ArticleRollback IE 11
I am hoping to learn how I canA. Discover all workstations in my domain that are at version 11 of IEB. Utilize a script or GPO to uninstall the IE11 and have IE revert back to previous...
View ArticleRegex to match everything before an underscore
Hi,I am trying to create a regular expression to match part of a file name into a variable but I can't seem to get it to work correctly.Here is a sample from gci:SERVERNAMEAPPUPP01_Baseline20140220.blg...
View Articlenet use
Hi everyone,I am writing a script inside powershell ise. below are the commands.net use * /delete /yes net use R : \\cs\sd /user:"cs\admin" "pw" $file = get-childitem R:\folder1\userthe error returned...
View ArticleReport of ad user based on group member ship
Team, can we get report from AD based on the group member ship, we need to find user's which are not log in ad from 120 days . these users are part of any specific security group. Regards, Triyambak
View ArticleDumping data into a SQL DB
Hi All,We currently use powershell (to call LogParser) to extract data from CSV files and put them them in another CSV file after it has been manupilated. We now have a need to get the data which are...
View ArticleSet-ADUser from a CSV file
Hi GuysJust a quick question. We have an application that daily puts out all the users detailed info into a CSV file. I'm thinking about making a script that can cycle through all the users and compare...
View ArticleReturn Email Address from Array of SIDS
I have an array of SIDS. These SIDS contain AD Users and Groups. What is the best method of returning the e-mail address for these objects?
View ArticleFileID in Get-SMBopenFile
Hello!When I open a file using \\servername\c$\filename (for example, \\host1\c$\Respond.txt) and runGet-SMBopenFile on the server I see the following:Could anybody explain to me1) why are there 3...
View ArticleInvoke-Command - Network connection has been interrupted
Hi,I have been having this problem intermittently, i useinvoke-command -AsJob -computername myserver1 -scriptblock{get-process}WARNING: The network connection to myserver1 has been interrupted....
View ArticleEvent log checking excel
$Date = Get-Date $Range = $Date.addDays(-1) $Unique = $Unique | Select -Unique Get-Winevent -FilterHashtable @{LogName="System","Application"; Level=1,2,3; startTime=$range} | Select-Object @{...
View ArticleFinding text based files containing a keyword/pattern... filtering those that...
I'm looking to see if Powershell can help me solve a common issue I come across dealing with a large code base / set of files.In short I'm very frequently wanting to "grep" for files that contain a...
View ArticleWhile loop using a timer object
Hello Technet,I have a file that gets created every night by a batch job and I need to send that file every night. So, I came up with a method (if there's a better way, I'd like to hear). I created a 2...
View ArticleIE Automation - cannot access frameset
Hi allI'm piecing together some IE automation tools using powershell to bulk process some jobs on one of our intranet sites.I did some initial test runs in VBA and have now moved onto Powershell. One...
View Article