select-string problem
Hello i wonder why the first command delivers desired output but the second doesn't. is there any technical explanation for this issue?1st command:PS C:\>IPConfig | Select-String-Pattern'IPV4'...
View ArticleUsing PowerShell to manage network settings
Just a quick and short post on essential PowerShell cmdlets which you may use to manage network settings. The slide below taken from “Configuring and Managing Windows 8.1″ module of “Preparing for...
View ArticleWhat is -ge ?
Hey Guys, First time listener, long time caller...I'm new at created ps1 scripts and was searching for a way to get a list of newly created AD users.I found this code which does what I need but I wasnt...
View ArticleGetting Started with PowerShell Desired State Configuration (DSC)
Are you keeping up with PowerShell Desired State Configuration (DSC)? It's one of the fastest-moving technologies today. But more than that, it literally transforms how IT Implementers deploy and...
View ArticleAdvanced PowerShell Desired State Configuration (DSC) and Custom Resources:...
Advanced ConfigurationsRead More
View ArticleGroup membership user information
HI I am working on a script to get the user information, specifically I need "Domain\username" back because my app needs domain\username Get-ADGroupMember -identity “Group_Name” | select name |...
View Articleusing same profile for a script for all users
Hello All,I have a powershell script which uses functions loaded into my profile and it all works fine.But if another user want to execute the script he get an error function not recognized as cmdlet...
View ArticlePowershell job step should throw an error is not succesfull
Hi,I have the below code to export some tables into text files. It is part of an sql job. The next step (dropping those tables) should not run, unless the export was successful.This is not a case...
View ArticleRegarding Task Scheduler
How can get the run time(duration) of each Task in Task Scheduler.While opening Task Scheduler for each task under History Tab i need to calculate the time of Task Started and Task Completed time for...
View ArticleGetting values in the registry
Hi allI am trying to write a script that will go through the SYSTEM\\CurrentControlSet\\Control\\Class reg key on remote computers to find the CLSID or GUID of the network card and based off of that...
View ArticlePowershell format output.
Hello everyone.Hope someone could offer some advice on the issue I am trying to solve. I have a PowerShell script that calls a sql script. The SQL scripts checks disk size on the list of servers in the...
View ArticleUnexpected token '' in expression or statement.
Hi, with my PS script got following error relate to this code? $Results=@{"Output"=$Results|Sort-Object-PropertyDisplayName;"Errors"=$ResultsErr}$ResultsUnexpected token '' in expression or...
View Articlepowershell import-csv array
i want to output the only array value's that im sending with the parameter link to pastebinpastebin.com/ZHYWaK0k so if i do Foo 3,4 i want to read the values that are in 3 and 4 how can i do that?
View ArticleSharePoint: PowerShell script for automating daily routine server checks
On a daily basis, I perform a set of checks on customer SharePoint farm servers using a checklist. Items in this checklist include: Read More
View ArticleCreate a scheduled task for Exchange Server 2013 PowerShell scripts
This script creates a new scheduled task for Exchange Server 2013.It is required to have the Exchange Server 2013 Management Tools installed on the server. The scheduled task will create a new...
View ArticlePowerShell & NAV on MSDN Blog
In last few months, Microsoft Dynamics NAV Team Blog publishing excellent articles about using Windows PowerShell with Microsoft Dynamics NAV. I have collected all of them on one ToC. Read, learn and...
View ArticleChange IE settings for Active - x control and plugins
We have several computers where we need to change the Registry setting to ENABLE the Internet Zone setting of "Run Active X Controls & Plugins"Could someone get me started with a script to run this...
View ArticleAdd computer name to output
$Computers = get-content "C:\Temp\servers.txt"Foreach ($Event in $Computers) {Get-Service "Windows Event Log" | Out-File "c:\temp\EventLog.txt"} This code works perfect. It reads servers.txt and tells...
View ArticleUninstall Software (Powerchute) using registry key
Hi. I am working on a script to query Active Directory Servers for the location of the APC Powerchute software Uninstall.exe file. I have pretty much pieced it together but have a problem storing the...
View ArticleRegex help
Hi All,I will below alerts everyday:================Dear inSync user,This is an alert notification from your Druva inSync Private Cloud deployment. Alert : Low User Storage AvailableAlert Time :...
View Article