Powershell script including IIS configuration commands not running
I am fairly new to Powershell scripting but I cannot find any information on why this problem would be happening. I am trying to write a script that would turn on HTTP redirection for a website and...
View ArticlePowershell & CACLS
Howdy, folks! I am writing a script that moves users from an Active Directory OU to another OU. In the process, it also creates a home directory for them.What I have so far is a way to get a list of...
View ArticlePowershell script not adding group membership Add-ADGroupMember
Having a small issue when my script creates a new user, groups are not added. Import-Module ActiveDirectory $d=@" FirstName,LastName,Password,SchoolId,NextSchool,GradeLevel...
View ArticlePowershell script to read txt file of users and export Group Membership to CSV
Hi all, I am looking for a Powershell script which reads txt file of user ID's, and export their Group Memberships to CSV file, also have a filter to show a specific group name only ?Any help will be...
View ArticlePausing a script...
Just updated an old function that was good for pausing scripts. New updated version of the script now uses Write-Progress and will actually work properly if you pause for more then 99 seconds! Looks a...
View ArticleWhy does this command take so long?
Get-EventLog application -computer excsrv01 |where EventID -eq 1221|where TimeGenerated -ge 08/29/2013|select -Property TimeGenerated,Message|Format-Table -AutoSize This command is slow. I think I...
View ArticlePowerShell Log Script
I have this powershell script to clean up trace/logfiles. Thing is I don't want it to zip / clean "Today's files" but all the others. I'm honestly a terrible programmer, and was just hoping someone...
View ArticlePowershell script email reliability problem
I'm using a script for password expiration notices that emails users when they start getting close to their expiration date. It works really well, well sort of. It works perfectly when I run it...
View ArticlePowershell Script to update a distribtuion group
Hi all, I am trying to learn as much as possible about Powershell and I thought of a potentially useful script. We have a "All User's" distribution group that every mailbox is put in for company wide...
View ArticleIE Automation for relative URL paths in Powershell
Since management doesn't want to pay for API access to a website that generates our reports, I'm tasked to automate downloading these reports which then gets imported into our SQL database. I'm in the...
View ArticleHaving issues with Basic ACL in powershell
I am having issues removing NTFS Privileges on a Windows 2012 server (I want to make learn how use it in command line mode before I roll over my servers to windows 2012 Core) This should be simple,...
View ArticleInstalling Windows Features on remote server 2012
I am wondering which is best practice considering both examples will probably work. Using the built in help examples I have written a script to install windows features on remote servers. Here is my...
View ArticleGet a list of services and their startup account
I'm trying to do a quick inventory of what startup account each of my servers is using. I wrote the following script, but its not working. Can someone help? $servers = get-content 'c:\servers.txt'...
View ArticleERROR: Input redirection is not supproted
I am new to PowerShell, I have never written a script before. So I have found some help off the internet and tried to piece together a script for the task I need to compete. Here is the problem: I am...
View ArticleRun as for program, cmd script
Hey everyone. So after joining my current job I found that there was about 100 local admins, so I've now driddled that to about 5 but the issue is our current VPN requires admin rights to run, so I...
View ArticleDisable/Enable AD account based on group membership
I'd love to be able to disable or re-enable AD accounts based on group membership. This is for a school district and parents must grant or revoke access to the Internet for their students. Based on...
View ArticleInterview with Thomas Lee
Here's where the inability to cross-post is unfortunate! Just ran across this on another forum about a Spiceworks interview with Thomas...
View ArticleUsing Powershell to Check for New Files in a Directory
I'm trying to figure out a good way to incorporate some powershell into a process that I am currently taking care of manually though the use of another application bundled with a MFC that was recently...
View ArticleOutputting Get-DiskInfo to Email
New SpiceHead Wesley asked a question in the comments of this function and I wanted to get it into the forum where we can discuss a bit easier! Here's the script:...
View ArticleGet-ADUser and title property
Get-ADUser -Filter 'enabled -eq $true' -properties Department, Description, enabled -SearchBase "*Insert company*"|export-csv users.csv Hey! It's me again! Ok, I am stuck on a problem. I am trying to...
View Article