How to change the command prompt font size with powershell
I am trying to use the powershell to change the command prompt font size.. Any ideas how to do it?
View Articlevery first ps1 script
hi everyone, My very first post here and am still learning my way around PowerShell. I couldn't find anything that would relate to what I'd like to accomplish on my first ps1 script.So here it goes....
View ArticleSending email using powershell Send-MailMessage in a batch file
If powershell is first started; email can be successfully sent using the PS command line. This is the command line used to send email. It successfully sends email.PS C:\> Send-MailMessage...
View ArticleSet MailboxAutoReplyConfiguration
Hello we are using office 365 exchange online.I need a script to set the autoreply for multiple users please, and if possible with dates as well.I'm not sure why am I facing this error:The term...
View ArticleDuring Foreach read another foreach in powershell
Hi all powershell gurus out there. I have a foreach which opens a URL from URLListl.txt and doing a Measure-command on them. The result from Measure-command writes to event-log. In another text file i...
View ArticlevSphere Environment Reports on the Cheap
In an enterprise vSphere environment, there are times where you need a lot of critical information about various vCenter servers, ESXi hosts and other components. I currently have a customer with an...
View ArticleGet-ADComputer CanonicalName
The first code snippet works. I have 2 machines in machines.txt. One of them is on the 156 subnet and the other is on the 141 subnet. $pc = Get-Content "c:\temp\tmp\machines.txt" foreach...
View ArticleGetting MobileDeviceStats From O365
Hello,I have a script that I have created to pull a list of all the Mobile devices and their statistics from our Office 365 environment. When I execute this script manually, it completes without error...
View ArticleActive Directory Group members
I am new to PS. I recently had to get the user names in multiple groups. I was able to use the simple PS command to find the nested groups. And then use another PS command to get the users in the...
View Articlefind the local admin group from list of servers
Hello Friends.We have a group ad\sr_adm and we have about 50 servers and trying to find if that group exists as a local admin on any of the servers?appreciate your help!
View ArticleCompare File Count in two different folders
I am a newbie with Powershell, but I need to compare two folders, to ensure that the second folder has the same sub-folders as the first folder and that both folders have the same number of files. I...
View ArticleCompare pwdLastSet
We're trying to compare the user's pwdLastSet date to a certain date and would like the output to contain only those users who's pwdLastSet is before 10/15/14.There are 314 users and after pulling...
View ArticlePowerShell and HTML (IE)
Hi all,I can use some help with working with an IE HTML webpage.I've gotten past the initial login screen, but once I get logged in there is a separate of the page (Innerhtml and outerhtml) I believe...
View Articlewmic command hanging powershell script
I wrote a script in powershell that is supposed to delete a printer on the local machine and while this command works, it also causes the powershell script to become unresponsive. How do I actually...
View ArticleMicrosoft Releases Test PowerShell DSC Module for Exchange 2013
Microsoft late last week released an experimental solution for maintaining Exchange Server 2013 configurations.Read More
View ArticleAdding App-V Publishing Information to a XenDesktop Site with PowerShell
Adding Microsoft App-V publishing information to a XenDesktop or XenApp 7.x site is very easy via the Citrix Studio UI, but what if you want to automate this process? Of course, you’ll need to reach...
View ArticleQuickly Get the Data You Need for Troubleshooting Exchange Server 2013
Historically, gathering performance data when troubleshooting Microsoft Exchange Server wasn't much fun. You had to figure out what performance counters you wanted to use, then set up Performance...
View ArticleGet-Content $Path from 2nd line
Hi,I have inserted a pipe-delimiter at certain positions in text file, but i want to skip the first line from inserting the pipe-delimiters, and on creation of new text file copy the first line from...
View Articlepowershell script for combining two csv files
I want to combine two csv files into one like for example:CS1 data: id,name,des 23,wer,qw 14,er,32 2,,wecs2 data: number,next,issues23,weq,23,13,qwe,df45,,ew 2,,treresult csv should be...
View ArticleCompare two csv files and ouput the difference
HiI have two csv filesOldcsv ServerIPStateBox1192.168.25.1EnabledBox2192.168.25.2EnabledBox3192.168.25.3Enabled...
View Article