Remote Powershell (Create Network Share)?
I have a script that checks where the user is based and then creates a home drive for the user on the correct file server :) but I have two questions? Server 2012 - is there away of changing the NTFS...
View ArticleDelete Temp Internet Files
Hi Everyone I previously got some help on this script, but I have modified it to look in AD for certain computers in specific ou's so I wouldnt have to update a text file.I got that to work, but it is...
View ArticleTest-path not working
I'm trying to test a path that I can visually see both in explorer and in PS. What could be causing it to not see the...
View ArticlePowerShell and runaway disk space
Hey there,I have a 2008 server with Powershell 4.0 installed. I am looking for a way to determine why my C: drive is getting consumed at several hundred megabytes per half-hour. I know this is true...
View ArticleSend As From Outlook using Powershell
Text$OL = New-Object -ComObject outlook.applicationStart-Sleep 5#Create Item$mItem = $OL.CreateItem("olMailItem")$mItem.To = "user@email.com"$mItem.Sender = "distribution@email.com"$mItem.Subject =...
View ArticleNTFS errrrg? Powershell etc?
Hey guys so... here I am thinking wow, it would be great if I could write a script that would insert access rights for an administrative of backup user on NTFS folders without me needing to edit every...
View ArticleLog off Terminal Server user by UserName or ClientName
Hi Guys,I have the following scenario.Terminal Server 200840+ users15 KiosksI've created a Powershell application that allows one of our clients to manage certain aspects of their environment. One of...
View ArticleHow to execute powershell command from Linux on Windows using winRM??
Firstly,let me tell you the things that I have already tried:1. pywinrm 2. ruby for winrm3. winexeApart from the above mentioned things,are there any other methods or ways through which I can execute a...
View ArticleError handling for registry changes
With Try/Catch it is my understanding that the Catch block has to do something with the error. What exactly? I see all kind of examples but I don't get what the code in that block does. Does it just...
View Articlestart services remotely
After reading the help files on get/start service I see that get will allow for -computername. However start does not. So I would assume since you can pass the value from the pipeline to start-service...
View ArticleWho's using PowerShell Desired State Configuration?
Desired State Configuration is without a doubt one of the most important things to be learning in the PowerShell space. Last week, I successfully used it in my lab. Who else is taking the time to learn...
View ArticleRemotely Launch A Program Or A File, And Make It Visable?
Hello,We have a handful of digital signs that the HR dept is responsible for updating on a regular basis. Currently they maintain a PowerPoint file, then they use VNC to remote to each sign and restart...
View Articleissue connecting to exchange 2013 via powershell
In the past few days, i've done something to my computer, not sure what and i'm hoping someone here can point me in the right direction. I have a small PS script that I run every couple of weeks for...
View ArticleHelp exporting all exchange 2007 users to .pst
I'm trying to find a way to export our entire exchange 2007 server user directoy to one folder by using scripts if possible. I've been trying a few things but it seems like the version we have is too...
View ArticlePulling out a substring out of a string
I'm sorry if my questions are more rudimentary than others in here, but I'm searching, I promise.I am pulling data from AD, namely Get-ADUser. I want their first and last names in a normal format, but...
View ArticleIssue with password change script
We're looking to use Event Viewer tied with a task that will send an email alert to myself and my supervisor in the event that someone changes or tried to change key administrator accounts in active...
View ArticleLocate All Folders That Make Use Of XYZ Security Group?
I've been doing a bit of an overhaul to our AD structure and one of things that's really bugging me is duplicate groups. Example, I've come across three groups for HR, the first being named "DEPT -...
View ArticleChecking to see if a person is in a group
I have an if...else statement dependent on whether the user is in the Domain Admins OU or not. If they are it is to execute the script, otherwise it is going to give them a slap on the hand and close...
View ArticlePowershell 101 (question of passing data)
I've been trying to learn Powershell and some of the AD modules. Today I thought of a good learning example and I'm stumped on how to put the pieces together:I have an old software package that...
View ArticleAdvanced Powershell Script
I am new to powershell and have been given a task that has me baffled.I have 3 old domains that we have used the Microsoft Migration tool to basically move all user accounts to a new domain. (Some of...
View Article