Deleting and and moving machines lastlogontimestamp older than 90 days
Hi, I'm looking for some assistance, I'm having some difficulty with one aspect of my script and would like to do the following. 1) Find computers with last logontimestamp older than 90 days within...
View ArticleServer 2012 and UAC via PowerShell
Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -Name EnableLUA -Value 1Get-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System...
View ArticleAssign License to Office365
Okay what I'm trying to do is combine a script running on a Schedule Task and a manual script to one Schedule Task script. Each script works by themselves. Here is the script that runs on a...
View ArticleUse PowerShell to Reset Machine Domain Password
How can I easily use PowerShell to reset a machine's domain password that has expired?A: If a machine has its state reset to a previous point in time, such as through a backup restore or more commonly...
View ArticleSplitting tab delimited flat file
I am a newbie to PowerShell. My data looks similar to this with no headers:10422163 3381051 1948248 2014-09-24 2014-10-24 Discount .37 1.00 .37 N10422231 3392947...
View ArticleUpdating and changing AD user properties with powershell
Hey guys, This is my first time posting here. My powershell skills are beginner at best and I am trying to tackle a big project. I have been tasked to update the corporate phone directory for all of...
View ArticlePowershell script to create footer on the sharepoint site collection
Hello, I am looking for a powershell script to create footer across the site collection. Any help is greatly appreciated.Thanks,Raj
View ArticleDelete all empty folders in a directory tree - oops, script deletes files too
I have a large folder that has both empty and full folders. I am using SBS 2008 and PowerShell 2.0. I used the following script (running from within the PowerShell ISE as an administrator) to...
View ArticleShare Permissions
(Please visit the site to view this media)HiI've read a post on your site regarding this topic but I don't believe a solution was ever reached. Is there a way to get 2 specific shares and their...
View ArticleTest-Path from a list
This should be fairly easy and i did similar with test connection. I have a list of home drives, that were established in AD.90% have this set but the folders do not exist. I used $Test = get-content...
View ArticleFind if email does not exist
I need to find a way to discover on a nightly basis if an email is not received in an inbox then send an email of it does not exist. The email come in between 7-8 PM MST from an internal host just...
View ArticleFunction returns numbers before desired values
Hi everyone,So I have a powershell GUI script where the users input stuff, there is a textbox and 9 comboboxes.Everything works fine, I call the function this way:$return myFunction $param1 $param2...
View ArticleWait for powershell script to complete before starting another script
Hi Guys,I have big powershell script (which run another scripts), which run on Jenkins machine, but once ran, Jenkins did not wait till is finished, and give an error message.What I want is that this...
View ArticleNo tiles, no NAP – next Windows for data centre looks promising
Whereas Windows 8 has been mired in controversy from the outset, the parallel Server 2012 and Server 2012 R2 releases (based on the same core code) have been well received.Read More
View ArticlePowerShell Script to Run Before Certain Service
Q: I need a PowerShell script to run every time my server starts, but I need it to start before a certain service; how can I do this?A: I recently had someone ask this question because they wanted to...
View ArticleResetting the Local Administrator Password on Computers
A secure way to reset and store Administrator account passwordsRead More
View ArticleAutomated Server Setup in Windows Server 2012 and Windows 8, Part 1
PowerShell tips for streamlining the processRead More
View ArticleFind disabled users - Remove them from any group they are members of where...
The title pretty much sums up what I'm attempting to script, but...I'm attempting to put together a script that:1. searches for disabled users2. removes any of those disabled users from group that...
View Articlecommand not running
I have this code:$GetBootValue1 = (get-ItemProperty hklm:\SOFTWARE\MGH).OneHourif ($GetBootValue1 = '1') { remove-itemproperty -path HKLM:\Software\MGH -name OneHour | Start-Sleep -s 30 | shutdown.exe...
View ArticleNeed help with reading dynamic columns from csv file
Hello,I am trying to write a script which will accept dynamic columns. Currently, I am using a discrete number of columns specifying the element number. What I ultimately want is to be able to run the...
View Article